@Override public Color getWatermarkLightColor(SubstanceColorScheme colorScheme) { return colorScheme.getLightColor(); }
@Override public Color getWatermarkDarkColor(SubstanceColorScheme colorScheme) { return colorScheme.getLightColor(); }
@Override public Color getWatermarkDarkColor() { return this.scheme.getLightColor(); }
/** * Returns the color of the bottom portion of shine in control backgrounds. * * @return The color of the bottom portion of shine in control backgrounds. */ public static Color getBottomShineColor(SubstanceColorScheme scheme) { return scheme.getLightColor(); }
@Override public Color query(SubstanceColorScheme scheme) { return scheme.getLightColor(); } };
@Override public Color query(SubstanceColorScheme scheme) { return scheme.getLightColor(); } };
public Color getWatermarkLightColor() { return this.scheme.getLightColor(); }
/** * Returns the color of the bottom portion of shine in control backgrounds. * * @param scheme1 * The first color scheme. * @param scheme2 * The second color scheme. * @param cycleCoef * Cycle position. Is used for rollover and pulsation effects. * Must be in 0.0 .. 1.0 range. * @param useCyclePosAsInterpolation * Indicates the algorithm to use for computing various colors. * If <code>true</code>, the <code>cyclePos</code> is used to * interpolate colors between different color components of both * color schemes. If <code>false</code>, the * <code>cyclePos</code> is used to interpolate colors between * different color components of the first color scheme. * @return The color of the bottom portion of shine in control backgrounds. */ public static Color getBottomShineColor(SubstanceColorScheme scheme) { return scheme.getLightColor(); }
public static Color getSeparatorLightColor(SubstanceColorScheme scheme) { return scheme.isDark() ? scheme.getLightColor() : SubstanceColorUtilities.getInterpolatedColor(scheme .getLightColor(), scheme.getDarkColor(), 0.8); }
@Override public Color getTextBackgroundFillColor() { return SubstanceColorUtilities.getInterpolatedColor(this.scheme .getMidColor(), this.scheme.getLightColor(), 0.4); } }
@Override public Color getTextBackgroundFillColor(SubstanceColorScheme colorScheme) { return SubstanceColorUtilities.getInterpolatedColor(colorScheme .getMidColor(), colorScheme.getLightColor(), 0.4); } }
protected void paintBackground(final Graphics2D g2) { g2.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_ON); g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); g2.setPaint(GraphicsHelper.buildVerticalGradientPaint(ContentPanel.class.getName(), this.getHeight(), this.colorScheme.getUltraLightColor(), this.colorScheme.getLightColor())); g2.fillRect(0, 0, this.getWidth(), this.getHeight()); }
protected void paintBackground(final Graphics2D g2) { g2.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_ON); g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); g2.setPaint(GraphicsHelper.buildVerticalGradientPaint(ValueHeaderPanel.class.getName(), this.getHeight(), this.colorScheme.getUltraLightColor(), this.colorScheme.getLightColor())); g2.fillRect(0, 0, this.getWidth(), this.getHeight()); }
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); }
private void paintBackground(final Graphics2D g2) { g2.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_ON); g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); g2.setPaint(GraphicsHelper.buildVerticalGradientPaint(TitleFooterPanel.class.getName(), this.getHeight(), this.colorScheme.getUltraLightColor(), this.colorScheme.getLightColor())); g2.fillRect(0, 0, this.getWidth(), this.getHeight()); this.border.paintBorder(this, g2, 0, 0, this.getWidth(), this.getHeight() + 1); }
private void paintBackground(final Graphics2D g2) { g2.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_ON); g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); g2.setPaint(GraphicsHelper.buildVerticalGradientPaint(SummaryFooterPanel.class.getName(), this.getHeight(), this.colorScheme.getUltraLightColor(), this.colorScheme.getLightColor())); g2.fillRect(0, 0, this.getWidth(), this.getHeight()); this.border.paintBorder(this, g2, 0, 0, this.getWidth(), this.getHeight() + 1); }
@Override protected void paintContentBorder(Graphics g, int tabPlacement, int selectedIndex) { SubstanceColorScheme scheme = SubstanceColorSchemeUtilities .getColorScheme(this.tabPane, selectedIndex, ColorSchemeAssociationKind.TAB, ComponentState.ENABLED); this.highlight = scheme.isDark() ? SubstanceColorUtilities .getAlphaColor(scheme.getUltraDarkColor(), 100) : scheme .getLightColor(); super.paintContentBorder(g, tabPlacement, selectedIndex); }
@Override protected void paintContentBorder(Graphics g, int tabPlacement, int selectedIndex) { SubstanceColorScheme scheme = SubstanceColorSchemeUtilities .getColorScheme(this.tabPane, selectedIndex, ColorSchemeAssociationKind.TAB, ComponentState.ENABLED); this.highlight = scheme.isDark() ? SubstanceColorUtilities .getAlphaColor(scheme.getUltraDarkColor(), 100) : scheme .getLightColor(); super.paintContentBorder(g, tabPlacement, selectedIndex); }
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(); }
/** * Creates a new inverted scheme. * * @param origScheme * The original color scheme. */ public NegatedColorScheme(SubstanceColorScheme origScheme) { super("Negated " + origScheme.getDisplayName(), getResolver(origScheme).invert()); this.origScheme = origScheme; this.foregroundColor = SubstanceColorUtilities.invertColor(origScheme .getForegroundColor()); this.mainUltraDarkColor = SubstanceColorUtilities .invertColor(origScheme.getUltraDarkColor()); this.mainDarkColor = SubstanceColorUtilities.invertColor(origScheme .getDarkColor()); this.mainMidColor = SubstanceColorUtilities.invertColor(origScheme .getMidColor()); this.mainLightColor = SubstanceColorUtilities.invertColor(origScheme .getLightColor()); this.mainExtraLightColor = SubstanceColorUtilities .invertColor(origScheme.getExtraLightColor()); this.mainUltraLightColor = SubstanceColorUtilities .invertColor(origScheme.getUltraLightColor()); }