break; BufferedImage arrowImage = SubstanceImageCreator.getRotated( downArrowImage, quadrantCounterClockwise);
break; BufferedImage arrowImage = SubstanceImageCreator.getRotated( downArrowImage, quadrantCounterClockwise);
break; BufferedImage rotatedImage = SubstanceImageCreator.getRotated( arrowImage, quadrantCounterClockwise);
break; BufferedImage rotatedImage = SubstanceImageCreator.getRotated( arrowImage, quadrantCounterClockwise);
stateImage = SubstanceImageCreator.getRotated(stateImage, 1); else stateImage = SubstanceImageCreator.getRotated(stateImage, 3); stateImage = SubstanceImageCreator.getRotated(stateImage, 2);
stateImage = SubstanceImageCreator.getRotated(stateImage, 1); else stateImage = SubstanceImageCreator.getRotated(stateImage, 3); stateImage = SubstanceImageCreator.getRotated(stateImage, 2);
private Icon getSingleLayer(JSlider slider, int width, int delta, SubstanceFillPainter fillPainter, SubstanceBorderPainter borderPainter, SubstanceColorScheme fillScheme, SubstanceColorScheme borderScheme) { int borderDelta = (int) Math.floor(SubstanceSizeUtils .getBorderStrokeWidth(SubstanceSizeUtils .getComponentFontSize(slider)) / 2.0); Shape contour = SubstanceOutlineUtilities.getTriangleButtonOutline( width, this.size - 1, 2, borderDelta); BufferedImage stateImage = SubstanceCoreUtilities.getBlankImage( this.size - 1, this.size - 1); Graphics2D g2d = stateImage.createGraphics(); g2d.translate(delta, 0); fillPainter.paintContourBackground(g2d, slider, width, this.size - 1, contour, false, fillScheme, true); int borderThickness = (int) SubstanceSizeUtils .getBorderStrokeWidth(SubstanceSizeUtils .getComponentFontSize(slider)); GeneralPath contourInner = SubstanceOutlineUtilities .getTriangleButtonOutline(width, this.size - 1, 2, borderThickness + borderDelta); borderPainter.paintBorder(g2d, slider, width, this.size - 1, contour, contourInner, borderScheme); g2d.translate(-delta, 0); if (this.isMirrorred) stateImage = SubstanceImageCreator.getRotated(stateImage, 2); return new ImageIcon(stateImage); }
private Icon getSingleLayer(JSlider slider, int width, int delta, SubstanceFillPainter fillPainter, SubstanceBorderPainter borderPainter, SubstanceColorScheme fillScheme, SubstanceColorScheme borderScheme) { int borderDelta = (int) Math.floor(SubstanceSizeUtils .getBorderStrokeWidth(SubstanceSizeUtils .getComponentFontSize(slider)) / 2.0); Shape contour = SubstanceOutlineUtilities.getTriangleButtonOutline( width, this.size - 1, 2, borderDelta); BufferedImage stateImage = SubstanceCoreUtilities.getBlankImage( this.size - 1, this.size - 1); Graphics2D g2d = stateImage.createGraphics(); g2d.translate(delta, 0); fillPainter.paintContourBackground(g2d, slider, width, this.size - 1, contour, false, fillScheme, true); int borderThickness = (int) SubstanceSizeUtils .getBorderStrokeWidth(SubstanceSizeUtils .getComponentFontSize(slider)); GeneralPath contourInner = SubstanceOutlineUtilities .getTriangleButtonOutline(width, this.size - 1, 2, borderThickness + borderDelta); borderPainter.paintBorder(g2d, slider, width, this.size - 1, contour, contourInner, borderScheme); g2d.translate(-delta, 0); if (this.isMirrorred) stateImage = SubstanceImageCreator.getRotated(stateImage, 2); return new ImageIcon(stateImage); }
result = SubstanceImageCreator.getRotated(result, 3); else result = SubstanceImageCreator.getRotated(result, 1);
result = SubstanceImageCreator.getRotated(result, 3); else result = SubstanceImageCreator.getRotated(result, 1);
/** * Retrieves stripe image. * * @param baseSize * Stripe base in pixels. * @param isRotated * if <code>true</code>, the resulting stripe image will be * rotated. * @param colorScheme * Color scheme to paint the stripe image. * @return Stripe image. */ private static BufferedImage getStripe(int baseSize, boolean isRotated, SubstanceColorScheme colorScheme) { HashMapKey key = SubstanceCoreUtilities.getHashKey(baseSize, isRotated, colorScheme.getDisplayName()); BufferedImage result = SubstanceProgressBarUI.stripeMap.get(key); if (result == null) { result = SubstanceImageCreator.getStripe(baseSize, colorScheme .getUltraLightColor()); if (isRotated) { result = SubstanceImageCreator.getRotated(result, 1); } SubstanceProgressBarUI.stripeMap.put(key, result); } return result; }
/** * Retrieves stripe image. * * @param baseSize * Stripe base in pixels. * @param isRotated * if <code>true</code>, the resulting stripe image will be * rotated. * @param colorScheme * Color scheme to paint the stripe image. * @return Stripe image. */ private static BufferedImage getStripe(int baseSize, boolean isRotated, SubstanceColorScheme colorScheme) { HashMapKey key = SubstanceCoreUtilities.getHashKey(baseSize, isRotated, colorScheme.getDisplayName()); BufferedImage result = SubstanceProgressBarUI.stripeMap.get(key); if (result == null) { result = SubstanceImageCreator.getStripe(baseSize, colorScheme .getUltraLightColor()); if (isRotated) { result = SubstanceImageCreator.getRotated(result, 1); } SubstanceProgressBarUI.stripeMap.put(key, result); } return result; }
return SubstanceImageCreator.getRotated( getFinalTabBackgroundImage(tabPane, tabIndex, x, y, width, height, isSelected, SwingConstants.TOP,
return SubstanceImageCreator.getRotated( getFinalTabBackgroundImage(tabPane, tabIndex, x, y, width, height, isSelected, SwingConstants.TOP,
borderPainter.paintBorder(result.getGraphics(), scrollBar, height, width, contour, null, mainBorderScheme); result = SubstanceImageCreator.getRotated(result, 3);
result = SubstanceImageCreator.getRotated(result, 3);
borderPainter.paintBorder(result.getGraphics(), scrollBar, height, width, contour, null, mainBorderScheme); result = SubstanceImageCreator.getRotated(result, 3);
result = SubstanceImageCreator.getRotated(result, 3);