Java Code Examples for sun.swing.plaf.synth.Paint9Painter#validImage()
The following examples show how to use
sun.swing.plaf.synth.Paint9Painter#validImage() .
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: ImagePainter.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
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 File: ImagePainter.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 6 votes |
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 File: ImagePainter.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
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 File: ImagePainter.java From jdk8u_jdk with GNU General Public License v2.0 | 6 votes |
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 File: ImagePainter.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
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 File: ImagePainter.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
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
Source File: ImagePainter.java From hottub with GNU General Public License v2.0 | 6 votes |
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 File: ImagePainter.java From Java8CN with Apache License 2.0 | 6 votes |
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 File: ImagePainter.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
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 File: ImagePainter.java From jdk1.8-source-analysis with Apache License 2.0 | 6 votes |
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 File: ImagePainter.java From Bytecoder with Apache License 2.0 | 6 votes |
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 File: ImagePainter.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
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
Source File: ImagePainter.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
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 File: ImagePainter.java From JDKSourceCode1.8 with MIT License | 6 votes |
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 File: ImagePainter.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
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 File: ImagePainter.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
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 File: ImagePainter.java From dragonwell8_jdk with GNU General Public License v2.0 | 6 votes |
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); } }