本文整理汇总了Java中javax.swing.plaf.nimbus.AbstractRegionPainter.PaintContext方法的典型用法代码示例。如果您正苦于以下问题:Java AbstractRegionPainter.PaintContext方法的具体用法?Java AbstractRegionPainter.PaintContext怎么用?Java AbstractRegionPainter.PaintContext使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类javax.swing.plaf.nimbus.AbstractRegionPainter
的用法示例。
在下文中一共展示了AbstractRegionPainter.PaintContext方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: NamedButtonRegionPainter
import javax.swing.plaf.nimbus.AbstractRegionPainter; //导入方法依赖的package包/类
/**
* @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);
}
示例2: getPaintContext
import javax.swing.plaf.nimbus.AbstractRegionPainter; //导入方法依赖的package包/类
@Override
protected AbstractRegionPainter.PaintContext getPaintContext() {
throw new UnsupportedOperationException("Not supported yet.");
}
示例3: getPaintContext
import javax.swing.plaf.nimbus.AbstractRegionPainter; //导入方法依赖的package包/类
@Override
protected final AbstractRegionPainter.PaintContext getPaintContext() {
return ctx;
}
示例4: getPaintContext
import javax.swing.plaf.nimbus.AbstractRegionPainter; //导入方法依赖的package包/类
@Override
protected AbstractRegionPainter.PaintContext getPaintContext() {
return new AbstractRegionPainter.PaintContext(null, null, false);
}
示例5: NamedComboBoxPainter
import javax.swing.plaf.nimbus.AbstractRegionPainter; //导入方法依赖的package包/类
/**
* @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);
}
示例6: NamedTabbedPaneTabAreaPainter
import javax.swing.plaf.nimbus.AbstractRegionPainter; //导入方法依赖的package包/类
/**
* @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);
}
示例7: NamedComboBoxArrowButtonPainter
import javax.swing.plaf.nimbus.AbstractRegionPainter; //导入方法依赖的package包/类
/**
* @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);
}