Java Code Examples for sun.swing.plaf.synth.Paint9Painter

The following examples show how to use sun.swing.plaf.synth.Paint9Painter. These examples are extracted from open source projects. 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 Project: jdk1.8-source-analysis   Source File: ImagePainter.java    License: Apache License 2.0 6 votes vote down vote up
private void paint(SynthContext context, Graphics g, int x, int y, int w,
                   int h) {
    Image image = getImage();
    if (Paint9Painter.validImage(image)) {
        Paint9Painter.PaintType type;
        if (getCenter()) {
            type = Paint9Painter.PaintType.CENTER;
        }
        else if (!getTiles()) {
            type = Paint9Painter.PaintType.PAINT9_STRETCH;
        }
        else {
            type = Paint9Painter.PaintType.PAINT9_TILE;
        }
        int mask = Paint9Painter.PAINT_ALL;
        if (!getCenter() && !getPaintsCenter()) {
            mask |= Paint9Painter.PAINT_CENTER;
        }
        imageCache.paint(context.getComponent(), g, x, y, w, h,
                         image, sInsets, dInsets, type,
                         mask);
    }
}
 
Example 2
Source Project: dragonwell8_jdk   Source File: ImagePainter.java    License: GNU General Public License v2.0 6 votes vote down vote up
private void paint(SynthContext context, Graphics g, int x, int y, int w,
                   int h) {
    Image image = getImage();
    if (Paint9Painter.validImage(image)) {
        Paint9Painter.PaintType type;
        if (getCenter()) {
            type = Paint9Painter.PaintType.CENTER;
        }
        else if (!getTiles()) {
            type = Paint9Painter.PaintType.PAINT9_STRETCH;
        }
        else {
            type = Paint9Painter.PaintType.PAINT9_TILE;
        }
        int mask = Paint9Painter.PAINT_ALL;
        if (!getCenter() && !getPaintsCenter()) {
            mask |= Paint9Painter.PAINT_CENTER;
        }
        imageCache.paint(context.getComponent(), g, x, y, w, h,
                         image, sInsets, dInsets, type,
                         mask);
    }
}
 
Example 3
Source Project: TencentKona-8   Source File: ImagePainter.java    License: GNU General Public License v2.0 6 votes vote down vote up
private void paint(SynthContext context, Graphics g, int x, int y, int w,
                   int h) {
    Image image = getImage();
    if (Paint9Painter.validImage(image)) {
        Paint9Painter.PaintType type;
        if (getCenter()) {
            type = Paint9Painter.PaintType.CENTER;
        }
        else if (!getTiles()) {
            type = Paint9Painter.PaintType.PAINT9_STRETCH;
        }
        else {
            type = Paint9Painter.PaintType.PAINT9_TILE;
        }
        int mask = Paint9Painter.PAINT_ALL;
        if (!getCenter() && !getPaintsCenter()) {
            mask |= Paint9Painter.PAINT_CENTER;
        }
        imageCache.paint(context.getComponent(), g, x, y, w, h,
                         image, sInsets, dInsets, type,
                         mask);
    }
}
 
Example 4
Source Project: jdk8u60   Source File: ImagePainter.java    License: GNU General Public License v2.0 6 votes vote down vote up
private void paint(SynthContext context, Graphics g, int x, int y, int w,
                   int h) {
    Image image = getImage();
    if (Paint9Painter.validImage(image)) {
        Paint9Painter.PaintType type;
        if (getCenter()) {
            type = Paint9Painter.PaintType.CENTER;
        }
        else if (!getTiles()) {
            type = Paint9Painter.PaintType.PAINT9_STRETCH;
        }
        else {
            type = Paint9Painter.PaintType.PAINT9_TILE;
        }
        int mask = Paint9Painter.PAINT_ALL;
        if (!getCenter() && !getPaintsCenter()) {
            mask |= Paint9Painter.PAINT_CENTER;
        }
        imageCache.paint(context.getComponent(), g, x, y, w, h,
                         image, sInsets, dInsets, type,
                         mask);
    }
}
 
Example 5
Source Project: JDKSourceCode1.8   Source File: ImagePainter.java    License: MIT License 6 votes vote down vote up
private void paint(SynthContext context, Graphics g, int x, int y, int w,
                   int h) {
    Image image = getImage();
    if (Paint9Painter.validImage(image)) {
        Paint9Painter.PaintType type;
        if (getCenter()) {
            type = Paint9Painter.PaintType.CENTER;
        }
        else if (!getTiles()) {
            type = Paint9Painter.PaintType.PAINT9_STRETCH;
        }
        else {
            type = Paint9Painter.PaintType.PAINT9_TILE;
        }
        int mask = Paint9Painter.PAINT_ALL;
        if (!getCenter() && !getPaintsCenter()) {
            mask |= Paint9Painter.PAINT_CENTER;
        }
        imageCache.paint(context.getComponent(), g, x, y, w, h,
                         image, sInsets, dInsets, type,
                         mask);
    }
}
 
Example 6
Source Project: openjdk-jdk8u   Source File: ImagePainter.java    License: GNU General Public License v2.0 6 votes vote down vote up
private void paint(SynthContext context, Graphics g, int x, int y, int w,
                   int h) {
    Image image = getImage();
    if (Paint9Painter.validImage(image)) {
        Paint9Painter.PaintType type;
        if (getCenter()) {
            type = Paint9Painter.PaintType.CENTER;
        }
        else if (!getTiles()) {
            type = Paint9Painter.PaintType.PAINT9_STRETCH;
        }
        else {
            type = Paint9Painter.PaintType.PAINT9_TILE;
        }
        int mask = Paint9Painter.PAINT_ALL;
        if (!getCenter() && !getPaintsCenter()) {
            mask |= Paint9Painter.PAINT_CENTER;
        }
        imageCache.paint(context.getComponent(), g, x, y, w, h,
                         image, sInsets, dInsets, type,
                         mask);
    }
}
 
Example 7
private void paint(SynthContext context, Graphics g, int x, int y, int w,
                   int h) {
    Image image = getImage();
    if (Paint9Painter.validImage(image)) {
        Paint9Painter.PaintType type;
        if (getCenter()) {
            type = Paint9Painter.PaintType.CENTER;
        }
        else if (!getTiles()) {
            type = Paint9Painter.PaintType.PAINT9_STRETCH;
        }
        else {
            type = Paint9Painter.PaintType.PAINT9_TILE;
        }
        int mask = Paint9Painter.PAINT_ALL;
        if (!getCenter() && !getPaintsCenter()) {
            mask |= Paint9Painter.PAINT_CENTER;
        }
        imageCache.paint(context.getComponent(), g, x, y, w, h,
                         image, sInsets, dInsets, type,
                         mask);
    }
}
 
Example 8
Source Project: Bytecoder   Source File: ImagePainter.java    License: Apache License 2.0 6 votes vote down vote up
private void paint(SynthContext context, Graphics g, int x, int y, int w,
                   int h) {
    Image image = getImage();
    if (Paint9Painter.validImage(image)) {
        Paint9Painter.PaintType type;
        if (getCenter()) {
            type = Paint9Painter.PaintType.CENTER;
        }
        else if (!getTiles()) {
            type = Paint9Painter.PaintType.PAINT9_STRETCH;
        }
        else {
            type = Paint9Painter.PaintType.PAINT9_TILE;
        }
        int mask = Paint9Painter.PAINT_ALL;
        if (!getCenter() && !getPaintsCenter()) {
            mask |= Paint9Painter.PAINT_CENTER;
        }
        imageCache.paint(context.getComponent(), g, x, y, w, h,
                         image, sInsets, dInsets, type,
                         mask);
    }
}
 
Example 9
Source Project: openjdk-jdk9   Source File: ImagePainter.java    License: GNU General Public License v2.0 6 votes vote down vote up
private void paint(SynthContext context, Graphics g, int x, int y, int w,
                   int h) {
    Image image = getImage();
    if (Paint9Painter.validImage(image)) {
        Paint9Painter.PaintType type;
        if (getCenter()) {
            type = Paint9Painter.PaintType.CENTER;
        }
        else if (!getTiles()) {
            type = Paint9Painter.PaintType.PAINT9_STRETCH;
        }
        else {
            type = Paint9Painter.PaintType.PAINT9_TILE;
        }
        int mask = Paint9Painter.PAINT_ALL;
        if (!getCenter() && !getPaintsCenter()) {
            mask |= Paint9Painter.PAINT_CENTER;
        }
        imageCache.paint(context.getComponent(), g, x, y, w, h,
                         image, sInsets, dInsets, type,
                         mask);
    }
}
 
Example 10
Source Project: jdk8u-jdk   Source File: ImagePainter.java    License: GNU General Public License v2.0 6 votes vote down vote up
private void paint(SynthContext context, Graphics g, int x, int y, int w,
                   int h) {
    Image image = getImage();
    if (Paint9Painter.validImage(image)) {
        Paint9Painter.PaintType type;
        if (getCenter()) {
            type = Paint9Painter.PaintType.CENTER;
        }
        else if (!getTiles()) {
            type = Paint9Painter.PaintType.PAINT9_STRETCH;
        }
        else {
            type = Paint9Painter.PaintType.PAINT9_TILE;
        }
        int mask = Paint9Painter.PAINT_ALL;
        if (!getCenter() && !getPaintsCenter()) {
            mask |= Paint9Painter.PAINT_CENTER;
        }
        imageCache.paint(context.getComponent(), g, x, y, w, h,
                         image, sInsets, dInsets, type,
                         mask);
    }
}
 
Example 11
Source Project: Java8CN   Source File: ImagePainter.java    License: Apache License 2.0 6 votes vote down vote up
private void paint(SynthContext context, Graphics g, int x, int y, int w,
                   int h) {
    Image image = getImage();
    if (Paint9Painter.validImage(image)) {
        Paint9Painter.PaintType type;
        if (getCenter()) {
            type = Paint9Painter.PaintType.CENTER;
        }
        else if (!getTiles()) {
            type = Paint9Painter.PaintType.PAINT9_STRETCH;
        }
        else {
            type = Paint9Painter.PaintType.PAINT9_TILE;
        }
        int mask = Paint9Painter.PAINT_ALL;
        if (!getCenter() && !getPaintsCenter()) {
            mask |= Paint9Painter.PAINT_CENTER;
        }
        imageCache.paint(context.getComponent(), g, x, y, w, h,
                         image, sInsets, dInsets, type,
                         mask);
    }
}
 
Example 12
Source Project: hottub   Source File: ImagePainter.java    License: GNU General Public License v2.0 6 votes vote down vote up
private void paint(SynthContext context, Graphics g, int x, int y, int w,
                   int h) {
    Image image = getImage();
    if (Paint9Painter.validImage(image)) {
        Paint9Painter.PaintType type;
        if (getCenter()) {
            type = Paint9Painter.PaintType.CENTER;
        }
        else if (!getTiles()) {
            type = Paint9Painter.PaintType.PAINT9_STRETCH;
        }
        else {
            type = Paint9Painter.PaintType.PAINT9_TILE;
        }
        int mask = Paint9Painter.PAINT_ALL;
        if (!getCenter() && !getPaintsCenter()) {
            mask |= Paint9Painter.PAINT_CENTER;
        }
        imageCache.paint(context.getComponent(), g, x, y, w, h,
                         image, sInsets, dInsets, type,
                         mask);
    }
}
 
Example 13
private void paint(SynthContext context, Graphics g, int x, int y, int w,
                   int h) {
    Image image = getImage();
    if (Paint9Painter.validImage(image)) {
        Paint9Painter.PaintType type;
        if (getCenter()) {
            type = Paint9Painter.PaintType.CENTER;
        }
        else if (!getTiles()) {
            type = Paint9Painter.PaintType.PAINT9_STRETCH;
        }
        else {
            type = Paint9Painter.PaintType.PAINT9_TILE;
        }
        int mask = Paint9Painter.PAINT_ALL;
        if (!getCenter() && !getPaintsCenter()) {
            mask |= Paint9Painter.PAINT_CENTER;
        }
        imageCache.paint(context.getComponent(), g, x, y, w, h,
                         image, sInsets, dInsets, type,
                         mask);
    }
}
 
Example 14
Source Project: openjdk-8   Source File: ImagePainter.java    License: GNU General Public License v2.0 6 votes vote down vote up
private void paint(SynthContext context, Graphics g, int x, int y, int w,
                   int h) {
    Image image = getImage();
    if (Paint9Painter.validImage(image)) {
        Paint9Painter.PaintType type;
        if (getCenter()) {
            type = Paint9Painter.PaintType.CENTER;
        }
        else if (!getTiles()) {
            type = Paint9Painter.PaintType.PAINT9_STRETCH;
        }
        else {
            type = Paint9Painter.PaintType.PAINT9_TILE;
        }
        int mask = Paint9Painter.PAINT_ALL;
        if (!getCenter() && !getPaintsCenter()) {
            mask |= Paint9Painter.PAINT_CENTER;
        }
        imageCache.paint(context.getComponent(), g, x, y, w, h,
                         image, sInsets, dInsets, type,
                         mask);
    }
}
 
Example 15
Source Project: jdk8u_jdk   Source File: ImagePainter.java    License: GNU General Public License v2.0 6 votes vote down vote up
private void paint(SynthContext context, Graphics g, int x, int y, int w,
                   int h) {
    Image image = getImage();
    if (Paint9Painter.validImage(image)) {
        Paint9Painter.PaintType type;
        if (getCenter()) {
            type = Paint9Painter.PaintType.CENTER;
        }
        else if (!getTiles()) {
            type = Paint9Painter.PaintType.PAINT9_STRETCH;
        }
        else {
            type = Paint9Painter.PaintType.PAINT9_TILE;
        }
        int mask = Paint9Painter.PAINT_ALL;
        if (!getCenter() && !getPaintsCenter()) {
            mask |= Paint9Painter.PAINT_CENTER;
        }
        imageCache.paint(context.getComponent(), g, x, y, w, h,
                         image, sInsets, dInsets, type,
                         mask);
    }
}
 
Example 16
Source Project: jdk8u-jdk   Source File: ImagePainter.java    License: GNU General Public License v2.0 6 votes vote down vote up
private void paint(SynthContext context, Graphics g, int x, int y, int w,
                   int h) {
    Image image = getImage();
    if (Paint9Painter.validImage(image)) {
        Paint9Painter.PaintType type;
        if (getCenter()) {
            type = Paint9Painter.PaintType.CENTER;
        }
        else if (!getTiles()) {
            type = Paint9Painter.PaintType.PAINT9_STRETCH;
        }
        else {
            type = Paint9Painter.PaintType.PAINT9_TILE;
        }
        int mask = Paint9Painter.PAINT_ALL;
        if (!getCenter() && !getPaintsCenter()) {
            mask |= Paint9Painter.PAINT_CENTER;
        }
        imageCache.paint(context.getComponent(), g, x, y, w, h,
                         image, sInsets, dInsets, type,
                         mask);
    }
}
 
Example 17
Source Project: jdk8u-dev-jdk   Source File: ImagePainter.java    License: GNU General Public License v2.0 6 votes vote down vote up
private void paint(SynthContext context, Graphics g, int x, int y, int w,
                   int h) {
    Image image = getImage();
    if (Paint9Painter.validImage(image)) {
        Paint9Painter.PaintType type;
        if (getCenter()) {
            type = Paint9Painter.PaintType.CENTER;
        }
        else if (!getTiles()) {
            type = Paint9Painter.PaintType.PAINT9_STRETCH;
        }
        else {
            type = Paint9Painter.PaintType.PAINT9_TILE;
        }
        int mask = Paint9Painter.PAINT_ALL;
        if (!getCenter() && !getPaintsCenter()) {
            mask |= Paint9Painter.PAINT_CENTER;
        }
        imageCache.paint(context.getComponent(), g, x, y, w, h,
                         image, sInsets, dInsets, type,
                         mask);
    }
}