/** * Computes the color of the middle portion of the border. Override to * provide different visual. * * @param borderScheme * The border color scheme. * @return The color of the middle portion of the border. */ public Color getMidBorderColor(SubstanceColorScheme borderScheme) { return SubstanceColorUtilities.getMidBorderColor(borderScheme); }
/** * Computes the color of the middle portion of the border. Override to * provide different visual. * * @param borderScheme * The border color scheme. * @return The color of the middle portion of the border. */ public Color getMidBorderColor(SubstanceColorScheme borderScheme) { return SubstanceColorUtilities.getMidBorderColor(borderScheme); }
public static void paintSimpleBorderAliased(Component c, Graphics2D g2d, int width, int height, SubstanceColorScheme colorScheme) { int componentFontSize = SubstanceSizeUtils.getComponentFontSize(c); // int borderDelta = (int) Math.floor(SubstanceSizeUtils // .getBorderStrokeWidth(componentFontSize) / 2.0); // int borderDelta2 = (int) Math.floor(SubstanceSizeUtils // .getBorderStrokeWidth(componentFontSize)); float borderThickness = (float) Math.floor(SubstanceSizeUtils .getBorderStrokeWidth(componentFontSize)); g2d.setColor(SubstanceColorUtilities.getMidBorderColor(colorScheme)); g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_OFF); g2d.setRenderingHint(RenderingHints.KEY_STROKE_CONTROL, RenderingHints.VALUE_STROKE_NORMALIZE); int joinKind = BasicStroke.JOIN_MITER; int capKind = BasicStroke.CAP_SQUARE; g2d.setStroke(new BasicStroke(borderThickness, capKind, joinKind)); g2d.draw(new Rectangle2D.Float(borderThickness / 2.0f, borderThickness / 2.0f, width - borderThickness, height - borderThickness)); }
public static void paintSimpleBorderAliased(Component c, Graphics2D g2d, int width, int height, SubstanceColorScheme colorScheme) { int componentFontSize = SubstanceSizeUtils.getComponentFontSize(c); // int borderDelta = (int) Math.floor(SubstanceSizeUtils // .getBorderStrokeWidth(componentFontSize) / 2.0); // int borderDelta2 = (int) Math.floor(SubstanceSizeUtils // .getBorderStrokeWidth(componentFontSize)); float borderThickness = (float) Math.floor(SubstanceSizeUtils .getBorderStrokeWidth(componentFontSize)); g2d.setColor(SubstanceColorUtilities.getMidBorderColor(colorScheme)); g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_OFF); g2d.setRenderingHint(RenderingHints.KEY_STROKE_CONTROL, RenderingHints.VALUE_STROKE_NORMALIZE); int joinKind = BasicStroke.JOIN_MITER; int capKind = BasicStroke.CAP_SQUARE; g2d.setStroke(new BasicStroke(borderThickness, capKind, joinKind)); g2d.draw(new Rectangle2D.Float(borderThickness / 2.0f, borderThickness / 2.0f, width - borderThickness, height - borderThickness)); }
.getMidBorderColor(borderColorScheme)); g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
.getMidBorderColor(borderColorScheme)); g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
ComponentState.SELECTED); Color darkShadowColor = SubstanceColorUtilities .getMidBorderColor(borderScheme); if (isUnbroken) { g2d.setColor(this.highlight);
ComponentState.SELECTED); Color darkShadowColor = SubstanceColorUtilities .getMidBorderColor(borderScheme); if (isUnbroken) { g2d.setColor(this.highlight);
ComponentState.SELECTED); Color darkShadowColor = SubstanceColorUtilities .getMidBorderColor(borderScheme); if (isUnbroken) { g2d.setColor(this.highlight);
ComponentState.SELECTED); Color darkShadowColor = SubstanceColorUtilities .getMidBorderColor(borderScheme); if (isUnbroken) { g2d.setColor(this.highlight);
ComponentState.SELECTED); Color darkShadowColor = SubstanceColorUtilities .getMidBorderColor(borderScheme); if (isUnbroken) { g2d.setColor(this.highlight);
ComponentState.SELECTED); Color darkShadowColor = SubstanceColorUtilities .getMidBorderColor(borderScheme); if (isUnbroken) { g2d.setColor(this.highlight);
ComponentState.SELECTED); Color darkShadowColor = SubstanceColorUtilities .getMidBorderColor(borderScheme); if (isUnbroken) { g2d.setColor(this.highlight);
ComponentState.SELECTED); Color darkShadowColor = SubstanceColorUtilities .getMidBorderColor(borderScheme); if (isUnbroken) { g2d.setColor(this.highlight);