Java Code Examples for javax.swing.plaf.nimbus.AbstractRegionPainter#PaintContext
The following examples show how to use
javax.swing.plaf.nimbus.AbstractRegionPainter#PaintContext .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: NamedButtonRegionPainter.java From bither-desktop-java with Apache License 2.0 | 5 votes |
/** * @param color The color to use as the basis for the painter * @param state The state of the button to which this painter will apply */ public NamedButtonRegionPainter(Color color, int state) { super(color, Themes.currentTheme.detailPanelBackground(), state); Insets insets = new Insets(7, 7, 7, 7); this.ctx = new AbstractRegionPainter.PaintContext(insets, new Dimension(10, 20), false); }
Example 2
Source File: NamedButtonRegionPainter.java From bither-desktop-java with Apache License 2.0 | 5 votes |
/** * @param color The color to use as the basis for the painter * @param state The state of the button to which this painter will apply */ public NamedButtonRegionPainter(Color color, int state) { super(color, Themes.currentTheme.detailPanelBackground(), state); Insets insets = new Insets(7, 7, 7, 7); this.ctx = new AbstractRegionPainter.PaintContext(insets, new Dimension(10, 20), false); }
Example 3
Source File: TestAbstractRegionPainter.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
@Override protected AbstractRegionPainter.PaintContext getPaintContext() { throw new UnsupportedOperationException("Not supported yet."); }
Example 4
Source File: ScrollBarButtonPainter_Modified.java From neembuu-uploader with GNU General Public License v3.0 | 4 votes |
@Override protected final AbstractRegionPainter.PaintContext getPaintContext() { return ctx; }
Example 5
Source File: NamedComboBoxPainter.java From bither-desktop-java with Apache License 2.0 | 3 votes |
/** * @param color The color to use as the basis for the painter * @param state The state of the button to which this painter will apply */ public NamedComboBoxPainter(Color color, int state) { // super(color, Themes.currentTheme.buttonBackground(), state); super(Color.RED, Color.BLUE, state); Insets insets = new Insets(8, 9, 8, 19); this.ctx = new AbstractRegionPainter.PaintContext(insets, new Dimension(83, 24), false); }
Example 6
Source File: NamedTabbedPaneTabAreaPainter.java From bither-desktop-java with Apache License 2.0 | 3 votes |
/** * @param color The color to use as the basis for the painter * @param state The state of the button to which this painter will apply */ public NamedTabbedPaneTabAreaPainter(Color color, int state) { super(color, Themes.currentTheme.detailPanelBackground(), state); this.ctx = new AbstractRegionPainter.PaintContext(new Insets(0, 5, 6, 5), new Dimension(5, 24), false); }
Example 7
Source File: NamedComboBoxArrowButtonPainter.java From bither-desktop-java with Apache License 2.0 | 3 votes |
/** * @param color The color to use as the basis for the painter * @param state The state of the button to which this painter will apply */ public NamedComboBoxArrowButtonPainter(Color color, int state) { // super(color, Themes.currentTheme.buttonBackground(), state); super(Color.RED, Color.BLUE, state); Insets insets = new Insets(8, 1, 8, 8); this.ctx = new AbstractRegionPainter.PaintContext(insets, new Dimension(20, 24), false); }
Example 8
Source File: NamedComboBoxPainter.java From bither-desktop-java with Apache License 2.0 | 3 votes |
/** * @param color The color to use as the basis for the painter * @param state The state of the button to which this painter will apply */ public NamedComboBoxPainter(Color color, int state) { // super(color, Themes.currentTheme.buttonBackground(), state); super(Color.RED, Color.BLUE, state); Insets insets = new Insets(8, 9, 8, 19); this.ctx = new AbstractRegionPainter.PaintContext(insets, new Dimension(83, 24), false); }
Example 9
Source File: NamedTabbedPaneTabAreaPainter.java From bither-desktop-java with Apache License 2.0 | 3 votes |
/** * @param color The color to use as the basis for the painter * @param state The state of the button to which this painter will apply */ public NamedTabbedPaneTabAreaPainter(Color color, int state) { super(color, Themes.currentTheme.detailPanelBackground(), state); this.ctx = new AbstractRegionPainter.PaintContext(new Insets(0, 5, 6, 5), new Dimension(5, 24), false); }
Example 10
Source File: NamedComboBoxArrowButtonPainter.java From bither-desktop-java with Apache License 2.0 | 3 votes |
/** * @param color The color to use as the basis for the painter * @param state The state of the button to which this painter will apply */ public NamedComboBoxArrowButtonPainter(Color color, int state) { // super(color, Themes.currentTheme.buttonBackground(), state); super(Color.RED, Color.BLUE, state); Insets insets = new Insets(8, 1, 8, 8); this.ctx = new AbstractRegionPainter.PaintContext(insets, new Dimension(20, 24), false); }