@Override protected void paintBackground(Graphics2D g, JXStatusBar statusBar) { if (leftImage == null || middleImage == null || rightImage == null) { log.severe("Failed to initialize necessary assets. Set logging to FINE to see more details."); return; } //if bidi, reverse the image painting order //TODO need to handle vertical stretching better g.drawImage(leftImage, 0, 0, leftImage.getWidth(), statusBar.getHeight(), null); if (statusBar.isResizeHandleEnabled()) { g.drawImage(middleImage, leftImage.getWidth(), 0, statusBar.getWidth() - leftImage.getWidth() - rightImage.getWidth(), statusBar.getHeight(), null); g.drawImage(rightImage, statusBar.getWidth() - rightImage.getWidth(), 0, rightImage.getWidth(), statusBar.getHeight(), null); } else { g.drawImage(middleImage, leftImage.getWidth(), 0, statusBar.getWidth() - leftImage.getWidth(), statusBar.getHeight(), null); } }
@Override protected void paintBackground(Graphics2D g, JXStatusBar statusBar) { if (leftImage == null || middleImage == null || rightImage == null) { log.severe("Failed to initialize necessary assets. Set logging to FINE to see more details."); return; } //if bidi, reverse the image painting order //TODO need to handle vertical stretching better g.drawImage(leftImage, 0, 0, leftImage.getWidth(), statusBar.getHeight(), null); if (statusBar.isResizeHandleEnabled()) { g.drawImage(middleImage, leftImage.getWidth(), 0, statusBar.getWidth() - leftImage.getWidth() - rightImage.getWidth(), statusBar.getHeight(), null); g.drawImage(rightImage, statusBar.getWidth() - rightImage.getWidth(), 0, rightImage.getWidth(), statusBar.getHeight(), null); } else { g.drawImage(middleImage, leftImage.getWidth(), 0, statusBar.getWidth() - leftImage.getWidth(), statusBar.getHeight(), null); } }
@Override protected void paintBackground(Graphics2D g, JXStatusBar statusBar) { if (leftImage == null || middleImage == null || rightImage == null) { log.severe("Failed to initialize necessary assets. Set logging to FINE to see more details."); return; } //if bidi, reverse the image painting order //TODO need to handle vertical stretching better g.drawImage(leftImage, 0, 0, leftImage.getWidth(), statusBar.getHeight(), null); if (statusBar.isResizeHandleEnabled()) { g.drawImage(middleImage, leftImage.getWidth(), 0, statusBar.getWidth() - leftImage.getWidth() - rightImage.getWidth(), statusBar.getHeight(), null); g.drawImage(rightImage, statusBar.getWidth() - rightImage.getWidth(), 0, rightImage.getWidth(), statusBar.getHeight(), null); } else { g.drawImage(middleImage, leftImage.getWidth(), 0, statusBar.getWidth() - leftImage.getWidth(), statusBar.getHeight(), null); } }
@Override protected void paintBackground(Graphics2D g, JXStatusBar statusBar) { if (leftImage == null || middleImage == null || rightImage == null) { log.severe("Failed to initialize necessary assets. Set logging to FINE to see more details."); return; } //if bidi, reverse the image painting order //TODO need to handle vertical stretching better g.drawImage(leftImage, 0, 0, leftImage.getWidth(), statusBar.getHeight(), null); if (statusBar.isResizeHandleEnabled()) { g.drawImage(middleImage, leftImage.getWidth(), 0, statusBar.getWidth() - leftImage.getWidth() - rightImage.getWidth(), statusBar.getHeight(), null); g.drawImage(rightImage, statusBar.getWidth() - rightImage.getWidth(), 0, rightImage.getWidth(), statusBar.getHeight(), null); } else { g.drawImage(middleImage, leftImage.getWidth(), 0, statusBar.getWidth() - leftImage.getWidth(), statusBar.getHeight(), null); } }
@Override protected void paintBackground(Graphics2D g, JXStatusBar statusBar) { if (leftImage == null || middleImage == null || rightImage == null) { log.severe("Failed to initialize necessary assets. Set logging to FINE to see more details."); return; } //if bidi, reverse the image painting order //TODO need to handle vertical stretching better g.drawImage(leftImage, 0, 0, leftImage.getWidth(), statusBar.getHeight(), null); if (statusBar.isResizeHandleEnabled()) { g.drawImage(middleImage, leftImage.getWidth(), 0, statusBar.getWidth() - leftImage.getWidth() - rightImage.getWidth(), statusBar.getHeight(), null); g.drawImage(rightImage, statusBar.getWidth() - rightImage.getWidth(), 0, rightImage.getWidth(), statusBar.getHeight(), null); } else { g.drawImage(middleImage, leftImage.getWidth(), 0, statusBar.getWidth() - leftImage.getWidth(), statusBar.getHeight(), null); } }
protected void paintBackground(Graphics2D g, JXStatusBar bar) { if (bar.isOpaque()) { g.setColor(bar.getBackground()); g.fillRect(0, 0, bar.getWidth(), bar.getHeight()); } }
protected void paintBackground(Graphics2D g, JXStatusBar bar) { if (bar.isOpaque()) { g.setColor(bar.getBackground()); g.fillRect(0, 0, bar.getWidth(), bar.getHeight()); } }
protected void paintBackground(Graphics2D g, JXStatusBar bar) { if (bar.isOpaque()) { g.setColor(bar.getBackground()); g.fillRect(0, 0, bar.getWidth(), bar.getHeight()); } }
protected void paintBackground(Graphics2D g, JXStatusBar bar) { if (bar.isOpaque()) { g.setColor(bar.getBackground()); g.fillRect(0, 0, bar.getWidth(), bar.getHeight()); } }
protected void paintBackground(Graphics2D g, JXStatusBar bar) { if (bar.isOpaque()) { g.setColor(bar.getBackground()); g.fillRect(0, 0, bar.getWidth(), bar.getHeight()); } }
private boolean isHandleAreaPoint(Point point) { if (window == null || window.isMaximumSizeSet()) { return false; } if (statusBar.getComponentOrientation().isLeftToRight()) { return point.x >= statusBar.getWidth() - handleBoundary; } else { return point.x <= handleBoundary; } }
private boolean isHandleAreaPoint(Point point) { if (window == null || window.isMaximumSizeSet()) { return false; } if (statusBar.getComponentOrientation().isLeftToRight()) { return point.x >= statusBar.getWidth() - handleBoundary; } else { return point.x <= handleBoundary; } }
private boolean isHandleAreaPoint(Point point) { if (window == null || window.isMaximumSizeSet()) { return false; } if (statusBar.getComponentOrientation().isLeftToRight()) { return point.x >= statusBar.getWidth() - handleBoundary; } else { return point.x <= handleBoundary; } }
private boolean isHandleAreaPoint(Point point) { if (window == null || window.isMaximumSizeSet()) { return false; } if (statusBar.getComponentOrientation().isLeftToRight()) { return point.x >= statusBar.getWidth() - handleBoundary; } else { return point.x <= handleBoundary; } }
private boolean isHandleAreaPoint(Point point) { if (window == null || window.isMaximumSizeSet()) { return false; } if (statusBar.getComponentOrientation().isLeftToRight()) { return point.x >= statusBar.getWidth() - handleBoundary; } else { return point.x <= handleBoundary; } }
@Override protected void paintBackground(Graphics2D g, JXStatusBar bar) { g.setColor(bar.getBackground()); g.fillRect(0, 0, bar.getWidth(), bar.getHeight()); //paint an inset border around each component. This suggests that //there is an extra border around the status bar...! Border b = BorderFactory.createBevelBorder(BevelBorder.LOWERED, Color.WHITE, bar.getBackground(), bar.getBackground(), Color.GRAY); Insets insets = new Insets(0, 0, 0, 0); for (Component c : bar.getComponents()) { getSeparatorInsets(insets); int x = c.getX() - insets.right; int y = c.getY() - 2; int w = c.getWidth() + insets.left + insets.right; int h = c.getHeight() + 4; b.paintBorder(c, g, x, y, w, h); } }
@Override protected void paintBackground(Graphics2D g, JXStatusBar bar) { g.setColor(bar.getBackground()); g.fillRect(0, 0, bar.getWidth(), bar.getHeight()); //paint an inset border around each component. This suggests that //there is an extra border around the status bar...! Border b = BorderFactory.createBevelBorder(BevelBorder.LOWERED, Color.WHITE, bar.getBackground(), bar.getBackground(), Color.GRAY); Insets insets = new Insets(0, 0, 0, 0); for (Component c : bar.getComponents()) { getSeparatorInsets(insets); int x = c.getX() - insets.right; int y = c.getY() - 2; int w = c.getWidth() + insets.left + insets.right; int h = c.getHeight() + 4; b.paintBorder(c, g, x, y, w, h); } }
@Override protected void paintBackground(Graphics2D g, JXStatusBar bar) { g.setColor(bar.getBackground()); g.fillRect(0, 0, bar.getWidth(), bar.getHeight()); //paint an inset border around each component. This suggests that //there is an extra border around the status bar...! Border b = BorderFactory.createBevelBorder(BevelBorder.LOWERED, Color.WHITE, bar.getBackground(), bar.getBackground(), Color.GRAY); Insets insets = new Insets(0, 0, 0, 0); for (Component c : bar.getComponents()) { getSeparatorInsets(insets); int x = c.getX() - insets.right; int y = c.getY() - 2; int w = c.getWidth() + insets.left + insets.right; int h = c.getHeight() + 4; b.paintBorder(c, g, x, y, w, h); } }
@Override protected void paintBackground(Graphics2D g, JXStatusBar bar) { g.setColor(bar.getBackground()); g.fillRect(0, 0, bar.getWidth(), bar.getHeight()); //paint an inset border around each component. This suggests that //there is an extra border around the status bar...! Border b = BorderFactory.createBevelBorder(BevelBorder.LOWERED, Color.WHITE, bar.getBackground(), bar.getBackground(), Color.GRAY); Insets insets = new Insets(0, 0, 0, 0); for (Component c : bar.getComponents()) { getSeparatorInsets(insets); int x = c.getX() - insets.right; int y = c.getY() - 2; int w = c.getWidth() + insets.left + insets.right; int h = c.getHeight() + 4; b.paintBorder(c, g, x, y, w, h); } }
@Override protected void paintBackground(Graphics2D g, JXStatusBar bar) { g.setColor(bar.getBackground()); g.fillRect(0, 0, bar.getWidth(), bar.getHeight()); //paint an inset border around each component. This suggests that //there is an extra border around the status bar...! Border b = BorderFactory.createBevelBorder(BevelBorder.LOWERED, Color.WHITE, bar.getBackground(), bar.getBackground(), Color.GRAY); Insets insets = new Insets(0, 0, 0, 0); for (Component c : bar.getComponents()) { getSeparatorInsets(insets); int x = c.getX() - insets.right; int y = c.getY() - 2; int w = c.getWidth() + insets.left + insets.right; int h = c.getHeight() + 4; b.paintBorder(c, g, x, y, w, h); } }