Java 类javax.swing.plaf.nimbus.AbstractRegionPainter 实例源码

项目:bither-desktop-java    文件:NamedButtonRegionPainter.java   
/**
 * @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);

}
项目:neembuu-uploader    文件:ScrollBarThumbPainter_Modified.java   
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();
    //}

}
项目:bither-desktop-java    文件:NamedButtonRegionPainter.java   
/**
 * @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);

}
项目:openjdk-jdk10    文件:TestAbstractRegionPainter.java   
@Override
protected AbstractRegionPainter.PaintContext getPaintContext() {
    throw new UnsupportedOperationException("Not supported yet.");
}
项目:openjdk9    文件:TestAbstractRegionPainter.java   
@Override
protected AbstractRegionPainter.PaintContext getPaintContext() {
    throw new UnsupportedOperationException("Not supported yet.");
}
项目:yummy-xml-UI    文件:BankComboBoxPainter.java   
@Override
protected final AbstractRegionPainter.PaintContext getPaintContext() {
    return ctx;
}
项目:yummy-xml-UI    文件:BankEditorPanePainter.java   
@Override
protected final AbstractRegionPainter.PaintContext getPaintContext() {
    return ctx;
}
项目:neembuu-uploader    文件:ScrollBarButtonPainter_Modified.java   
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);
}
项目:neembuu-uploader    文件:ScrollBarButtonPainter_Modified.java   
@Override
protected final AbstractRegionPainter.PaintContext getPaintContext() {
    return ctx;
}
项目:MathEOS    文件:LaFFixManager.java   
@Override
protected AbstractRegionPainter.PaintContext getPaintContext() {
    return new AbstractRegionPainter.PaintContext(null, null, false);
}
项目:bither-desktop-java    文件:NamedComboBoxPainter.java   
/**
     * @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);

    }
项目:bither-desktop-java    文件:NamedTabbedPaneTabAreaPainter.java   
/**
 * @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);

}
项目:bither-desktop-java    文件:NamedComboBoxArrowButtonPainter.java   
/**
     * @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);

    }
项目:bither-desktop-java    文件:NamedComboBoxPainter.java   
/**
     * @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);

    }
项目:bither-desktop-java    文件:NamedTabbedPaneTabAreaPainter.java   
/**
 * @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);

}
项目:bither-desktop-java    文件:NamedComboBoxArrowButtonPainter.java   
/**
     * @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);

    }