protected void paintFocus(Graphics g, Rectangle t, Dimension d) { g.setColor(AbstractLookAndFeel.getFocusColor()); BasicGraphicsUtils.drawDashedRect(g, t.x - 3, t.y - 1, t.width + 6, t.height + 2); BasicGraphicsUtils.drawDashedRect(g, t.x - 2, t.y, t.width + 4, t.height); }
protected void paintFocus(Graphics g, Rectangle t, Dimension d) { g.setColor(AbstractLookAndFeel.getFocusColor()); BasicGraphicsUtils.drawDashedRect(g, t.x - 3, t.y - 1, t.width + 6, t.height + 2); BasicGraphicsUtils.drawDashedRect(g, t.x - 2, t.y, t.width + 4, t.height); }
protected void paintFocus(Graphics g, Rectangle textRect, Dimension size) { // Overridden to prevent superclass from painting anything int left=textRect.x-2; int top=textRect.y+1; int right=textRect.x+textRect.width; int bottom=textRect.y+textRect.height-2; if(focusColor==null) focusColor=UIManager.getColor("RadioButton.focusColor"); if(focusColor!=null) { g.setColor(focusColor); BasicGraphicsUtils.drawDashedRect(g, left, top, right-left+1, bottom-top+1); } }
/** * Description of the Method * * @param g Description of Parameter * @param textRect Description of Parameter * @param d Description of Parameter */ protected void paintFocus(Graphics g, Rectangle textRect, Dimension d) { g.setColor(getFocusColor()); BasicGraphicsUtils.drawDashedRect(g, textRect.x, textRect.y, textRect.width, textRect.height); }
public void paintFocus(Graphics g) { g.setColor(getFocusColor()); BasicGraphicsUtils.drawDashedRect(g, focusRect.x, focusRect.y, focusRect.width, focusRect.height); }
public void paintFocus(Graphics g) { g.setColor(getFocusColor()); BasicGraphicsUtils.drawDashedRect(g, focusRect.x, focusRect.y, focusRect.width, focusRect.height); }
protected void paintFocus(Graphics g, Rectangle t, Dimension d) { g.setColor(AbstractLookAndFeel.getFocusColor()); BasicGraphicsUtils.drawDashedRect(g, t.x, t.y - 1, t.width + 1, t.height + 1); } }
protected void paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect) { g.setColor(Color.black); BasicGraphicsUtils.drawDashedRect(g, 3, 3, b.getWidth() - 6, b.getHeight() - 6); } }
protected void paintFocusIndicator(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect, boolean isSelected) { if (tabPane.isRequestFocusEnabled() && tabPane.hasFocus() && isSelected && tabIndex >= 0 && textRect.width > 8) { g.setColor(AbstractLookAndFeel.getTheme().getFocusColor()); BasicGraphicsUtils.drawDashedRect(g, textRect.x - 4, textRect.y, textRect.width + 8, textRect.height); BasicGraphicsUtils.drawDashedRect(g, textRect.x - 3, textRect.y + 1, textRect.width + 6, textRect.height - 2); } }
@Override protected void paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect) { int width = b.getWidth(); int height = b.getHeight(); g.setColor(getFocusColor()); javax.swing.plaf.basic.BasicGraphicsUtils.drawDashedRect(g, dashedRectGapX, dashedRectGapY, width - dashedRectGapWidth, height - dashedRectGapHeight); } });
@Override protected void paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect) { int width = b.getWidth(); int height = b.getHeight(); g.setColor(getFocusColor()); javax.swing.plaf.basic.BasicGraphicsUtils.drawDashedRect(g, dashedRectGapX, dashedRectGapY, width - dashedRectGapWidth, height - dashedRectGapHeight); } });
protected void paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect) { int width = b.getWidth(); int height = b.getHeight(); g.setColor(getFocusColor()); javax.swing.plaf.basic.BasicGraphicsUtils.drawDashedRect(g, dashedRectGapX_Local, dashedRectGapY_Local, width - dashedRectGapWidth_Local, height - dashedRectGapHeight_Local); } });
protected void paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect) { int width = b.getWidth(); int height = b.getHeight(); g.setColor(getFocusColor()); javax.swing.plaf.basic.BasicGraphicsUtils.drawDashedRect(g, dashedRectGapX_Local, dashedRectGapY_Local, width - dashedRectGapWidth_Local, height - dashedRectGapHeight_Local); } });
protected void paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect) { g.setColor(AbstractLookAndFeel.getFocusColor()); BasicGraphicsUtils.drawDashedRect(g, 4, 3, b.getWidth() - 8, b.getHeight() - 6); }
protected void paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect) { g.setColor(AbstractLookAndFeel.getFocusColor()); BasicGraphicsUtils.drawDashedRect(g, 4, 3, b.getWidth() - 8, b.getHeight() - 6); }
/** * Description of the Method * * @param g Description of Parameter * @param b Description of Parameter * @param viewRect Description of Parameter * @param textRect Description of Parameter * @param iconRect Description of Parameter */ protected void paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect) { // focus painted same color as text on Basic?? int width = b.getWidth(); int height = b.getHeight(); g.setColor(getFocusColor()); BasicGraphicsUtils.drawDashedRect(g, dashedRectGapX, dashedRectGapY, width - dashedRectGapWidth, height - dashedRectGapHeight); }
protected void paintFocusIndicator(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect, boolean isSelected) { if (tabPane.isRequestFocusEnabled() && tabPane.hasFocus() && isSelected && tabIndex >= 0 && textRect.width > 8) { g.setColor(AbstractLookAndFeel.getTheme().getFocusColor()); BasicGraphicsUtils.drawDashedRect(g, textRect.x - 4, textRect.y + 1, textRect.width + 8, textRect.height); } }
protected void paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect) { if (!AbstractLookAndFeel.getTheme().doShowFocusFrame()) { g.setColor(AbstractLookAndFeel.getFocusColor()); BasicGraphicsUtils.drawDashedRect(g, 3, 2, b.getWidth() - 6, b.getHeight() - 5); BasicGraphicsUtils.drawDashedRect(g, 4, 3, b.getWidth() - 8, b.getHeight() - 7); } }
protected void paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect) { if (!AbstractLookAndFeel.getTheme().doShowFocusFrame()) { g.setColor(AbstractLookAndFeel.getFocusColor()); BasicGraphicsUtils.drawDashedRect(g, 3, 2, b.getWidth() - 6, b.getHeight() - 5); BasicGraphicsUtils.drawDashedRect(g, 4, 3, b.getWidth() - 8, b.getHeight() - 7); } }
protected void paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect) { if (!AbstractLookAndFeel.getTheme().doShowFocusFrame()) { g.setColor(AbstractLookAndFeel.getFocusColor()); BasicGraphicsUtils.drawDashedRect(g, 3, 2, b.getWidth() - 6, b.getHeight() - 5); BasicGraphicsUtils.drawDashedRect(g, 4, 3, b.getWidth() - 8, b.getHeight() - 7); } }