@Override public Color query(SubstanceColorScheme scheme) { return scheme.getMidColor(); } };
/** * Returns the color of the middle portion of fill in control backgrounds. * * @return The color of the middle portion of fill in control backgrounds. */ public static Color getMidFillColor(SubstanceColorScheme scheme) { return scheme.getMidColor(); }
@Override public Color query(SubstanceColorScheme scheme) { return scheme.getMidColor(); } };
@Override public Color getLineColor() { return this.scheme.getMidColor(); }
@Override public Color getLineColor(SubstanceColorScheme colorScheme) { return colorScheme.getMidColor(); }
private void paintSolidBackground(Graphics2D graphics, Component comp, int width, int height, SubstanceColorScheme scheme) { graphics.setColor(scheme.getMidColor()); graphics.fillRect(0, 0, width, height); } }
@Override public Color getWatermarkStampColor() { return SubstanceColorUtilities.getAlphaColor(this.scheme.getMidColor(), 50); }
@Override public Color getWatermarkStampColor(SubstanceColorScheme colorScheme) { return SubstanceColorUtilities.getAlphaColor(colorScheme.getMidColor(), 50); }
@Override public Color getTextBackgroundFillColor() { return SubstanceColorUtilities.getInterpolatedColor(this.scheme .getMidColor(), this.scheme.getLightColor(), 0.4); } }
/** * Returns the color of the bottom portion of border in control backgrounds. * * @param scheme * The color scheme. * @return The color of the bottom portion of border in control backgrounds. */ public static Color getBottomBorderColor(SubstanceColorScheme scheme) { return SubstanceColorUtilities.getInterpolatedColor(scheme .getDarkColor(), scheme.getMidColor(), 0.5); }
/** * Returns the color of the bottom portion of border in control backgrounds. * * @param scheme * The color scheme. * @return The color of the bottom portion of border in control backgrounds. */ public static Color getBottomBorderColor(SubstanceColorScheme scheme) { return SubstanceColorUtilities.getInterpolatedColor(scheme .getDarkColor(), scheme.getMidColor(), 0.5); }
@Override public Color getTextBackgroundFillColor(SubstanceColorScheme colorScheme) { return SubstanceColorUtilities.getInterpolatedColor(colorScheme .getMidColor(), colorScheme.getLightColor(), 0.4); } }
public Color getLineColor() { return SubstanceColorUtilities.getInterpolatedColor(this.scheme .getMidColor(), this.scheme.getDarkColor(), 0.7); }
/** * Returns the color of the top portion of fill in control backgrounds. * * @return The color of the top portion of fill in control backgrounds. */ public static Color getTopFillColor(SubstanceColorScheme scheme) { Color c = SubstanceColorUtilities.getInterpolatedColor(scheme .getDarkColor(), scheme.getMidColor(), 0.4); return c; }
@Override public Color getLineColor(SubstanceColorScheme colorScheme) { return SubstanceColorUtilities.getInterpolatedColor(colorScheme .getMidColor(), colorScheme.getDarkColor(), 0.7); }
private void paintCellBackground(final int columnIndex, final Graphics2D graphics, final Rectangle rectangleToPaint) { final LocalDate date = super.parent.getColumnDefinitionAt(columnIndex); if (date.getDayOfWeek() == DateTimeConstants.SATURDAY || date.getDayOfWeek() == DateTimeConstants.SUNDAY) { graphics.setPaint(GraphicsHelper.buildVerticalGradientPaint(TimelineFooterPanel.class.getName() + "_day_weekEnd", super.configurationContext.getCellHeight(), super.colorScheme.getLightColor(), super.colorScheme.getMidColor())); } else { graphics.setPaint(GraphicsHelper.buildVerticalGradientPaint(TimelineFooterPanel.class.getName() + "_day_normal", super.configurationContext.getCellHeight(), super.colorScheme.getUltraLightColor(), super.colorScheme.getLightColor())); } graphics.fillRect(rectangleToPaint.x, rectangleToPaint.y, rectangleToPaint.width, rectangleToPaint.height); }
public static Color getSeparatorDarkColor(SubstanceColorScheme scheme) { return scheme.isDark() ? scheme.getExtraLightColor() : SubstanceColorUtilities.getInterpolatedColor(scheme .getMidColor(), scheme.getDarkColor(), 0.4); }
public CopyMutableColorScheme(String name, SubstanceColorScheme copy) { super(name, copy.isDark()); foregroundColor = copy.getForegroundColor(); ultraLightColor = copy.getUltraLightColor(); extraLightColor = copy.getExtraLightColor(); lightColor = copy.getLightColor(); midColor = copy.getMidColor(); darkColor = copy.getDarkColor(); ultraDarkColor = copy.getUltraDarkColor(); }
/** * Returns the highlight color for the specified component. * * @param c * Component. * @return Matching highlight color. */ public Color getHighlightColor(Component c) { SubstanceColorScheme colorScheme = SubstanceColorSchemeUtilities .getColorScheme(c, ColorSchemeAssociationKind.SEPARATOR, ComponentState.ENABLED); boolean isDark = colorScheme.isDark(); Color foreDark = isDark ? colorScheme.getExtraLightColor() : SubstanceColorUtilities.getInterpolatedColor(colorScheme .getMidColor(), colorScheme.getDarkColor(), 0.4); return SubstanceColorUtilities.getAlphaColor(foreDark, 196); }
/** * Returns the highlight color for the specified component. * * @param c * Component. * @return Matching highlight color. */ public Color getHighlightColor(Component c) { SubstanceColorScheme colorScheme = SubstanceColorSchemeUtilities .getColorScheme(c, ColorSchemeAssociationKind.SEPARATOR, ComponentState.ENABLED); boolean isDark = colorScheme.isDark(); Color foreDark = isDark ? colorScheme.getExtraLightColor() : SubstanceColorUtilities.getInterpolatedColor(colorScheme .getMidColor(), colorScheme.getDarkColor(), 0.4); return SubstanceColorUtilities.getAlphaColor(foreDark, 196); }