/** * Sets the decoration type of the specified component and all its children. * * @param comp * Component. * @param type * Decoration type of the component and all its children. */ public static void setDecorationType(JComponent comp, DecorationAreaType type) { DecorationPainterUtils.setDecorationType(comp, type); }
@Override public Color getBottomFillColor(SubstanceColorScheme fillScheme) { return super.getTopFillColor(fillScheme); } }
/** * Returns the immediate decoration area type of the specified component. * The component is checked for the registered decoration area type. If * {@link #setDecorationType(javax.swing.JComponent, DecorationAreaType)} was * not called on this component, this method returns <code>null</code>. * * @param comp * Component. * @return Immediate decoration area type of the component. */ public static DecorationAreaType getImmediateDecorationType(Component comp) { return DecorationPainterUtils.getImmediateDecorationType(comp); }
@Override protected void uninstallDefaults() { DecorationPainterUtils.clearDecorationType(this.toolBar); super.uninstallDefaults(); }
/** * Paints a separator. * * @param c * Component. * @param graphics * Graphics context. * @param width * Separator width. * @param height * Separator height. * @param orientation * Separator orientation. */ public static void paintSeparator(Component c, Graphics graphics, int width, int height, int orientation) { paintSeparator(c, graphics, width, height, orientation, true, 10); }
@Override public void paint(Graphics g, JComponent c) { BackgroundPaintingUtils.updateIfOpaque(g, c); }
public void paint(Graphics2D g, JXHeader jxHeader, int width, int height) { // SubstanceDecorationUtilities.paintDecorationBackground(g, // jxHeader, false); BackgroundPaintingUtils.update(g, jxHeader, false); // g.translate(0, height - 2); // SubstanceTheme decorationTheme = SubstanceThemeUtilities // .getDecorationTheme(jxHeader); // SubstanceCoreUtilities.paintSeparator(jxHeader, g, // decorationTheme.getColorScheme(), // SubstanceCoreUtilities.isThemeDark(decorationTheme), // width, 1, JSeparator.HORIZONTAL); // g.translate(0, 2 - height); } });
@Override public Color getTopFillColor(SubstanceColorScheme fillScheme) { return super.getBottomFillColor(fillScheme); }
@Override protected void uninstallDefaults(JXStatusBar sb) { DecorationPainterUtils.clearDecorationType(sb); super.uninstallDefaults(sb); }
/** * Paints a separator. * * @param c * Component. * @param graphics * Graphics context. * @param width * Separator width. * @param height * Separator height. * @param orientation * Separator orientation. */ public static void paintSeparator(Component c, Graphics graphics, int width, int height, int orientation) { paintSeparator(c, graphics, width, height, orientation, true, 10); }
@Override public void paint(Graphics g, JComponent c) { BackgroundPaintingUtils.updateIfOpaque(g, c); }
@Override public void update(Graphics g, JComponent c) { BackgroundPaintingUtils.update(g, this.monthView, false); this.paint(g, c); }
/** * Sets the decoration type of the specified component and all its children. * * @param comp * Component. * @param type * Decoration type of the component and all its children. */ public static void setDecorationType(JComponent comp, DecorationAreaType type) { DecorationPainterUtils.setDecorationType(comp, type); }
@Override public Color getBottomFillColor(SubstanceColorScheme fillScheme) { return super.getTopFillColor(fillScheme); } }
/** * Returns the immediate decoration area type of the specified component. * The component is checked for the registered decoration area type. If * {@link #setDecorationType(JComponent, DecorationAreaType, boolean)} was * not called on this component, this method returns <code>null</code>. * * @param comp * Component. * @return Immediate decoration area type of the component. */ public static DecorationAreaType getImmediateDecorationType(Component comp) { return DecorationPainterUtils.getImmediateDecorationType(comp); }
@Override public Color getTopFillColor(SubstanceColorScheme fillScheme) { return super.getBottomFillColor(fillScheme); }
@Override public void uninstallUI(JComponent c) { DecorationPainterUtils.clearDecorationType(this.titleBar); super.uninstallUI(c); }
@Override protected void paintSeparator(Graphics2D g, JXStatusBar bar, int x, int y, int w, int h) { g.translate(x, y); SeparatorPainterUtils.paintSeparator(bar, g, w, h, JSlider.VERTICAL, true, 4); g.translate(-x, -y); }
@Override protected void uninstallDefaults() { DecorationPainterUtils.clearDecorationType(this.menuBar); super.uninstallDefaults(); }
@Override protected void uninstallDefaults() { DecorationPainterUtils.clearDecorationType(this.menuBar); super.uninstallDefaults(); }