public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { ((Graphics2D) g).setStroke(VERTEX_SELECTION_STROKE); super.paintBorder(c, g, x, y, width, height); } };
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { ((Graphics2D) g).setStroke(VERTEX_SELECTION_STROKE); super.paintBorder(c, g, x, y, width, height); } };
public void paintBorder(Component comp,Graphics g, int x1,int x2, int y1,int y2){ Stroke old=((Graphics2D)g).getStroke(); BasicStroke bs=new BasicStroke(2.0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER, 10.0f, new float[]{5.0f}, 0.0f); ((Graphics2D)g).setStroke(bs); super.paintBorder(comp,g, x1,x2, y1,y2); ((Graphics2D)g).setStroke(old); }
@Override public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { updateColor(c); super.paintBorder(c, g, x, y, width, height); }
super.paintBorder(c, g, x, y, width, height);
@Override public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { Color color = UIManager.getColor("Tree.selectionBorderColor"); if (color != null) { lineColor = color; } if (isDashed()) { if (treeBackground != c.getBackground()) { treeBackground = c.getBackground(); focusColor = new Color(~treeBackground.getRGB()); } Color old = g.getColor(); g.setColor(focusColor); BasicGraphicsUtils.drawDashedRect(g, x, y, width, height); g.setColor(old); } else { super.paintBorder(c, g, x, y, width, height); } }
@Override public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { Color color = UIManager.getColor("Tree.selectionBorderColor"); if (color != null) { lineColor = color; } if (isDashed()) { if (treeBackground != c.getBackground()) { treeBackground = c.getBackground(); focusColor = new Color(~treeBackground.getRGB()); } Color old = g.getColor(); g.setColor(focusColor); BasicGraphicsUtils.drawDashedRect(g, x, y, width, height); g.setColor(old); } else { super.paintBorder(c, g, x, y, width, height); } }
@Override public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { Color color = UIManager.getColor("Tree.selectionBorderColor"); if (color != null) { lineColor = color; } if (isDashed()) { if (treeBackground != c.getBackground()) { treeBackground = c.getBackground(); focusColor = new Color(~treeBackground.getRGB()); } Color old = g.getColor(); g.setColor(focusColor); BasicGraphicsUtils.drawDashedRect(g, x, y, width, height); g.setColor(old); } else { super.paintBorder(c, g, x, y, width, height); } }
@Override public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { Color color = UIManager.getColor("Tree.selectionBorderColor"); if (color != null) { lineColor = color; } if (isDashed()) { if (treeBackground != c.getBackground()) { treeBackground = c.getBackground(); focusColor = new Color(~treeBackground.getRGB()); } Color old = g.getColor(); g.setColor(focusColor); BasicGraphicsUtils.drawDashedRect(g, x, y, width, height); g.setColor(old); } else { super.paintBorder(c, g, x, y, width, height); } }
@Override public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { Color color = UIManager.getColor("Tree.selectionBorderColor"); if (color != null) { lineColor = color; } if (isDashed()) { if (treeBackground != c.getBackground()) { treeBackground = c.getBackground(); focusColor = new Color(~treeBackground.getRGB()); } Color old = g.getColor(); g.setColor(focusColor); BasicGraphicsUtils.drawDashedRect(g, x, y, width, height); g.setColor(old); } else { super.paintBorder(c, g, x, y, width, height); } }