Searched refs:PaintContext (Results 1 - 21 of 21) sorted by relevance

/openjdk7/jdk/src/share/classes/java/awt/
H A DPaintContext.java32 * The <code>PaintContext</code> interface defines the encapsulated
35 * {@link Graphics2D}. The <code>PaintContext</code> provides
38 * The <code>PaintContext</code> maintains state for a particular paint
44 public interface PaintContext { interface
56 * <code>Paint</code>. Not all <code>PaintContext</code> objects are
H A DPaint.java44 * @see PaintContext
54 * Creates and returns a {@link PaintContext} used to
65 * {@code PaintContext}, even if it is not {@code null}.
93 * @return the {@code PaintContext} for
95 * @see PaintContext
102 public PaintContext createContext(ColorModel cm,
H A DColorPaintContext.java36 class ColorPaintContext implements PaintContext {
H A DTexturePaint.java97 * Creates and returns a {@link PaintContext} used to
114 * @return the {@code PaintContext} for
117 * @see PaintContext
124 public PaintContext createContext(ColorModel cm,
H A DGradientPaint.java229 * Creates and returns a {@link PaintContext} used to
246 * @return the {@code PaintContext} for
249 * @see PaintContext
256 public PaintContext createContext(ColorModel cm,
H A DLinearGradientPaint.java306 * Creates and returns a {@link PaintContext} used to
323 * @return the {@code PaintContext} for
326 * @see PaintContext
333 public PaintContext createContext(ColorModel cm,
H A DRadialGradientPaint.java566 * Creates and returns a {@link PaintContext} used to
582 * @return the {@code PaintContext} for
585 * @see PaintContext
592 public PaintContext createContext(ColorModel cm,
H A DGradientPaintContext.java37 class GradientPaintContext implements PaintContext {
H A DMultipleGradientPaintContext.java53 abstract class MultipleGradientPaintContext implements PaintContext {
56 * The PaintContext's ColorModel. This is ARGB if colors are not all
H A DTexturePaintContext.java41 abstract class TexturePaintContext implements PaintContext {
69 public static PaintContext getContext(BufferedImage bufImg,
H A DColor.java1189 * Creates and returns a {@link PaintContext} used to
1206 * @return the {@code PaintContext} for
1209 * @see PaintContext
1216 public synchronized PaintContext createContext(ColorModel cm, Rectangle r,
/openjdk7/jdk/src/share/classes/javax/swing/plaf/nimbus/
H A DToolBarSeparatorPainter.java28 import javax.swing.plaf.nimbus.AbstractRegionPainter.PaintContext.CacheMode;
48 protected PaintContext getPaintContext() {
52 //only need to indicate in our PaintContext that we don't want this
54 return new PaintContext(
H A DPainterImpl.template42 private PaintContext ctx;
58 public ${PAINTER_NAME}(PaintContext ctx, int state) {
78 protected final PaintContext getPaintContext() {
H A DLoweredBorder.java49 private static final PaintContext PAINT_CONTEXT = new PaintContext(INSETS,
51 PaintContext.CacheMode.NINE_SQUARE_SCALE,
128 * <p>Gets the PaintContext for this painting operation. This method is
130 * PaintContext contains information such as cache hints. It also contains
139 * @return a PaintContext associated with this paint operation.
141 protected PaintContext getPaintContext() {
H A DAbstractRegionPainter.java44 * PaintContext, which holds a lot of the state needed for cache hinting and x/y value decoding
50 * to the subclass to compute and cache the PaintContext over multiple calls.
52 private PaintContext ctx;
61 On each call to paint, we first ask the subclass for the PaintContext.
149 PaintContext.CacheMode cacheMode = ctx == null ? PaintContext.CacheMode.NO_CACHING : ctx.cacheMode;
150 if (cacheMode == PaintContext.CacheMode.NO_CACHING ||
155 } else if (cacheMode == PaintContext.CacheMode.FIXED_SIZES) {
176 * <p>Gets the PaintContext for this painting operation. This method is called on every
177 * paint, and so should be fast and produce no garbage. The PaintContext contain
489 protected static class PaintContext { class in class:AbstractRegionPainter
522 public PaintContext(Insets insets, Dimension canvasSize, boolean inverted) { method in class:AbstractRegionPainter.PaintContext
544 public PaintContext(Insets insets, Dimension canvasSize, boolean inverted, method in class:AbstractRegionPainter.PaintContext
[all...]
H A DDefaults.template367 private AbstractRegionPainter.PaintContext ctx;
379 this.ctx = new AbstractRegionPainter.PaintContext(
385 AbstractRegionPainter.PaintContext.CacheMode cacheMode,
394 this.ctx = new AbstractRegionPainter.PaintContext(
416 AbstractRegionPainter.PaintContext.class, int.class);
/openjdk7/jdk/src/share/classes/sun/java2d/pipe/
H A DAlphaPaintPipe.java31 import java.awt.PaintContext;
57 PaintContext paintCtxt;
65 public TileContext(SunGraphics2D sg, PaintContext pc) {
83 PaintContext paintContext =
102 PaintContext paintCtxt = context.paintCtxt;
H A DGeneralCompositePipe.java30 import java.awt.PaintContext;
48 PaintContext paintCtxt;
53 public TileContext(SunGraphics2D sg, PaintContext pCtx,
66 PaintContext paintContext =
88 PaintContext paintCtxt = context.paintCtxt;
/openjdk7/jdk/test/java/awt/Paint/
H A DPgramUserBoundsTest.java35 import java.awt.PaintContext;
113 public PaintContext createContext(ColorModel cm,
/openjdk7/jdk/src/share/classes/sun/java2d/loops/
H A DMaskFill.java29 import java.awt.PaintContext;
/openjdk7/jdk/src/macosx/classes/sun/java2d/
H A DOSXSurfaceData.java589 PaintContext context = sg2d.paint.createContext(sg2d.getDeviceColorModel(), userBounds, userBounds, sIdentityMatrix, sg2d.getRenderingHints());

Completed in 1652 milliseconds