g.setPaint(getForegroundPaint(getPaint(), component)); g.setStroke(new BasicStroke((float) getStripeWidth())); g.rotate(toRadians(getAngle()));
g.setPaint(getForegroundPaint(getPaint(), component)); g.setStroke(new BasicStroke((float) getStripeWidth())); g.rotate(toRadians(getAngle()));
private Paint calculateStrokePaint(Object component, int width, int height) { Paint p = getForegroundPaint(getBorderPaint(), component); if(isPaintStretched()) { p = calculateSnappedPaint(p, width, height); } return p; }
g.setPaint(getForegroundPaint(getPaint(), component)); g.setStroke(new BasicStroke((float) getStripeWidth())); g.rotate(toRadians(getAngle()));
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; }
Paint paint = getForegroundPaint(getFillPaint(), component); String t = calculateText(component);
Paint paint = getForegroundPaint(getFillPaint(), component); String t = calculateText(component);
Paint paint = getForegroundPaint(getFillPaint(), component); String t = calculateText(component);
Paint paint = getForegroundPaint(getFillPaint(), component); String t = calculateText(component);
/** * Helper method that creates and returns the Paint that incorporates the * sizes and light and dark Paints in one TexturePaint. I may want to cache * this value in the future for performance reasons */ private Paint getCheckerPaint(Object c) { if (checkerPaint == null) { Paint p1 = PainterUtils.getForegroundPaint(getLightPaint(), c); Paint p2 = PainterUtils.getBackgroundPaint(getDarkPaint(), c); checkerPaint = PaintUtils.getCheckerPaint(p1, p2, (int)(getSquareSize() * 2)); } return checkerPaint; }
/** * Helper method that creates and returns the Paint that incorporates the * sizes and light and dark Paints in one TexturePaint. I may want to cache * this value in the future for performance reasons */ private Paint getCheckerPaint(Object c) { if (checkerPaint == null) { Paint p1 = PainterUtils.getForegroundPaint(getLightPaint(), c); Paint p2 = PainterUtils.getBackgroundPaint(getDarkPaint(), c); checkerPaint = PaintUtils.getCheckerPaint(p1, p2, (int)(getSquareSize() * 2)); } return checkerPaint; }
/** * Helper method that creates and returns the Paint that incorporates the * sizes and light and dark Paints in one TexturePaint. I may want to cache * this value in the future for performance reasons */ private Paint getCheckerPaint(Object c) { if (checkerPaint == null) { Paint p1 = PainterUtils.getForegroundPaint(getLightPaint(), c); Paint p2 = PainterUtils.getBackgroundPaint(getDarkPaint(), c); checkerPaint = PaintUtils.getCheckerPaint(p1, p2, (int)(getSquareSize() * 2)); } return checkerPaint; }