private Paint calculateFillPaint(Object component, int width, int height) { //set the fillPaint Paint p = getBackgroundPaint(getFillPaint(), component); if(isPaintStretched()) { p = calculateSnappedPaint(p, width, height); } return p; }
private Paint calculateStrokePaint(Object component, int width, int height) { Paint p = getBorderPaint(); if (p == null) { if(component instanceof JComponent) { p = ((JComponent)component).getForeground(); } } if(isPaintStretched()) { p = calculateSnappedPaint(p, width, height); } return p; }
private Paint calculateFillPaint(Object component, int width, int height) { //set the fillPaint Paint p = getBackgroundPaint(getFillPaint(), component); if(isPaintStretched()) { p = calculateSnappedPaint(p, width, height); } return p; }
private Paint calculateStrokePaint(Object component, int width, int height) { Paint p = getForegroundPaint(getBorderPaint(), component); if(isPaintStretched()) { p = calculateSnappedPaint(p, width, height); } return p; }
private Paint calculateFillPaint(Object component, int width, int height) { //set the fillPaint Paint p = getBackgroundPaint(getFillPaint(), component); if(isPaintStretched()) { p = calculateSnappedPaint(p, width, height); } return p; }
private Paint calculateStrokePaint(Object component, int width, int height) { Paint p = getForegroundPaint(getBorderPaint(), component); if(isPaintStretched()) { p = calculateSnappedPaint(p, width, height); } return p; }
private Paint calculateStrokePaint(Object component, int width, int height) { Paint p = getForegroundPaint(getBorderPaint(), component); if(isPaintStretched()) { p = calculateSnappedPaint(p, width, height); } return p; }
private Paint calculateFillPaint(Object component, int width, int height) { //set the fillPaint Paint p = getFillPaint(); if(isPaintStretched()) { p = calculateSnappedPaint(p, width, height); } else { } if (p == null) { if(component instanceof JComponent) { p = ((JComponent)component).getBackground(); } } return p; }