当前位置: 首页>>代码示例>>Java>>正文


Java AbstractRegionPainter类代码示例

本文整理汇总了Java中javax.swing.plaf.nimbus.AbstractRegionPainter的典型用法代码示例。如果您正苦于以下问题:Java AbstractRegionPainter类的具体用法?Java AbstractRegionPainter怎么用?Java AbstractRegionPainter使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


AbstractRegionPainter类属于javax.swing.plaf.nimbus包,在下文中一共展示了AbstractRegionPainter类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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);

}
 
开发者ID:bither,项目名称:bither-desktop-java,代码行数:12,代码来源:NamedButtonRegionPainter.java

示例2: ScrollBarThumbPainter_Modified

import javax.swing.plaf.nimbus.AbstractRegionPainter; //导入依赖的package包/类
public ScrollBarThumbPainter_Modified(int state) {
    this(new PaintContext(new Insets(0, 15, 0, 15), new Dimension(38, 15), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, 2.0),state);
    
    //if(state==BACKGROUND_ENABLED){
        color1 = color1.brighter().brighter();
        //color2 = color2.brighter();//.brighter();
    //}
    
}
 
开发者ID:Neembuu-Uploader,项目名称:neembuu-uploader,代码行数:10,代码来源:ScrollBarThumbPainter_Modified.java

示例3: getPaintContext

import javax.swing.plaf.nimbus.AbstractRegionPainter; //导入依赖的package包/类
@Override
protected AbstractRegionPainter.PaintContext getPaintContext() {
    throw new UnsupportedOperationException("Not supported yet.");
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:5,代码来源:TestAbstractRegionPainter.java

示例4: getPaintContext

import javax.swing.plaf.nimbus.AbstractRegionPainter; //导入依赖的package包/类
@Override
protected final AbstractRegionPainter.PaintContext getPaintContext() {
    return ctx;
}
 
开发者ID:toyboxman,项目名称:yummy-xml-UI,代码行数:5,代码来源:BankComboBoxPainter.java

示例5: ScrollBarButtonPainter_Modified

import javax.swing.plaf.nimbus.AbstractRegionPainter; //导入依赖的package包/类
public ScrollBarButtonPainter_Modified(int state) {
    super();
    this.state = state;
    this.ctx = new PaintContext(
            new Insets(1, 1, 1, 1), new Dimension(25, 15), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0);
}
 
开发者ID:Neembuu-Uploader,项目名称:neembuu-uploader,代码行数:7,代码来源:ScrollBarButtonPainter_Modified.java

示例6: getPaintContext

import javax.swing.plaf.nimbus.AbstractRegionPainter; //导入依赖的package包/类
@Override
protected AbstractRegionPainter.PaintContext getPaintContext() {
    return new AbstractRegionPainter.PaintContext(null, null, false);
}
 
开发者ID:Sharcoux,项目名称:MathEOS,代码行数:5,代码来源:LaFFixManager.java

示例7: 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);

    }
 
开发者ID:bither,项目名称:bither-desktop-java,代码行数:14,代码来源:NamedComboBoxPainter.java

示例8: 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);

}
 
开发者ID:bither,项目名称:bither-desktop-java,代码行数:11,代码来源:NamedTabbedPaneTabAreaPainter.java

示例9: 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);

    }
 
开发者ID:bither,项目名称:bither-desktop-java,代码行数:14,代码来源:NamedComboBoxArrowButtonPainter.java


注:本文中的javax.swing.plaf.nimbus.AbstractRegionPainter类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。