APIdia Launch Partner
Top Inners Fields Constructors Methods
com.sun.prism.j2d

public Class J2DPrismGraphics

extends Object
implements ReadbackGraphics, MaskTextureGraphics
Class Inheritance
All Implemented Interfaces
com.sun.prism.MaskTextureGraphics, com.sun.prism.Graphics, com.sun.prism.ReadbackGraphics
Known Direct Subclasses
com.sun.prism.j2d.PrismPrintGraphics
Imports
java.awt.LinearGradientPaint, java.awt.font.GlyphVector, java.awt.geom.NoninvertibleTransformException, .Rectangle2D, java.lang.ref.WeakReference, java.util.List, java.util.concurrent.ConcurrentHashMap, com.sun.glass.ui.Screen, com.sun.javafx.PlatformUtil, com.sun.javafx.font.CompositeGlyphMapper, .CompositeStrike, .FontResource, .FontStrike, .Metrics, com.sun.javafx.geom.PathIterator, .RectBounds, .Rectangle, .Shape, com.sun.javafx.geom.transform.Affine2D, .BaseTransform, .GeneralTransform3D, com.sun.javafx.scene.text.GlyphList, com.sun.javafx.sg.prism.NGCamera, .NGLightBase, .NodePath, com.sun.prism.BasicStroke, .CompositeMode, .MaskTextureGraphics, .RTTexture, .ReadbackGraphics, .RenderTarget, .ResourceFactory, .Texture, .Texture.WrapMode, com.sun.prism.impl.PrismSettings, com.sun.prism.j2d.paint.MultipleGradientPaint.ColorSpaceType, .RadialGradientPaint, com.sun.prism.paint.Color, .Gradient, .ImagePattern, .LinearGradient, .Paint, .RadialGradient, .Stop

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private static class
pack-priv abstract static class
pack-priv static class
pack-priv static class

Field Summary

Modifier and TypeField and Description
private boolean
private static volatile int
pack-priv Rectangle
private int
pack-priv boolean
private static final Paint
private static final BasicStroke
pack-priv RectBounds
pack-priv RectBounds
private static ConcurrentHashMap<Font, WeakReference<Font>>
pack-priv Graphics2D
private boolean
pack-priv static AffineTransform
pack-priv static final MultipleGradientPaint.CycleMethod[]
pack-priv Rectangle2D
pack-priv Paint
pack-priv boolean
private float
private float
private NodePath
pack-priv static final MultipleGradientPaint.CycleMethod[]
pack-priv BasicStroke
pack-priv J2DPresentable
private static J2DPrismGraphics.AdaptorShape
private static AffineTransform
private static Ellipse2D
private static Line2D
private static Path2D
private static Rectangle2D.Float
private static RoundRectangle2D
pack-priv Affine2D

Constructor Summary

AccessConstructor and Description
pack-priv
pack-priv
J2DPrismGraphics(Graphics2D g2d, int width, int height)

Method Summary

Modifier and TypeMethod and Description
public void
blit(RTTexture srcTex, RTTexture dstTex, int srcX0, int srcY0, int srcX1, int srcY1, int dstX0, int dstY0, int dstX1, int dstY1)

Implements com.sun.prism.Graphics.blit.

public boolean
protected void
captureTransform(Graphics2D g2d)

Needed only by printing subclass, which over-rides it.

public void
clear()

Implements com.sun.prism.Graphics.clear.

Clears the current RenderTarget with transparent pixels.

public void
clear(Color color)

Implements com.sun.prism.Graphics.clear.

Clears the current RenderTarget with the given Color.

pack-priv void
public void
clearQuad(float x1, float y1, float x2, float y2)

Implements com.sun.prism.Graphics.clearQuad.

Clears the region represented by the given quad with transparent pixels.

private void
doDrawMaskTexture(J2DRTTexture imgtex, J2DRTTexture masktex, int dx, int dy, int dw, int dh, int ix, int iy, int mx, int my, boolean srcover)

pack-priv void
draw(Shape shape)

public void
public void
drawEllipse(float x, float y, float width, float height)

Implements com.sun.prism.Graphics.drawEllipse.

public void
drawLine(float x1, float y1, float x2, float y2)

Implements com.sun.prism.Graphics.drawLine.

public void
drawMappedTextureRaw(Texture tex, float dx1, float dy1, float dx2, float dy2, float tx11, float ty11, float tx21, float ty21, float tx12, float ty12, float tx22, float ty22)

Implements com.sun.prism.Graphics.drawMappedTextureRaw.

public void
drawPixelsMasked(RTTexture imgtex, RTTexture masktex, int dx, int dy, int dw, int dh, int ix, int iy, int mx, int my)

Implements com.sun.prism.MaskTextureGraphics.drawPixelsMasked.

Apply a mask to the pixels of an image and render the results onto the destination in device space.

public void
drawRect(float x, float y, float width, float height)

Implements com.sun.prism.Graphics.drawRect.

public void
drawRoundRect(float x, float y, float width, float height, float arcw, float arch)

Implements com.sun.prism.Graphics.drawRoundRect.

private void
drawString(GlyphList gl, int start, int end, FontStrike strike, float x, float y)

public void
drawString(GlyphList gl, FontStrike strike, float x, float y, Color selectColor, int start, int end)

Implements com.sun.prism.Graphics.drawString.

public void
drawTexture(Texture tex, float x, float y, float w, float h)

Implements com.sun.prism.Graphics.drawTexture.

public void
drawTexture(Texture tex, float dx1, float dy1, float dx2, float dy2, float sx1, float sy1, float sx2, float sy2)

Implements com.sun.prism.Graphics.drawTexture.

public void
drawTexture3SliceH(Texture tex, float dx1, float dy1, float dx2, float dy2, float sx1, float sy1, float sx2, float sy2, float dh1, float dh2, float sh1, float sh2)

Implements com.sun.prism.Graphics.drawTexture3SliceH.

public void
drawTexture3SliceV(Texture tex, float dx1, float dy1, float dx2, float dy2, float sx1, float sy1, float sx2, float sy2, float dv1, float dv2, float sv1, float sv2)

Implements com.sun.prism.Graphics.drawTexture3SliceV.

public void
drawTexture9Slice(Texture tex, float dx1, float dy1, float dx2, float dy2, float sx1, float sy1, float sx2, float sy2, float dh1, float dv1, float dh2, float dv2, float sh1, float sv1, float sh2, float sv2)

Implements com.sun.prism.Graphics.drawTexture9Slice.

public void
drawTextureRaw(Texture tex, float dx1, float dy1, float dx2, float dy2, float tx1, float ty1, float tx2, float ty2)

Implements com.sun.prism.Graphics.drawTextureRaw.

public void
drawTextureVO(Texture tex, float topopacity, float botopacity, float dx1, float dy1, float dx2, float dy2, float sx1, float sy1, float sx2, float sy2)

Implements com.sun.prism.Graphics.drawTextureVO.

pack-priv void
fill(Shape shape)

public void
public void
fillEllipse(float x, float y, float width, float height)

Implements com.sun.prism.Graphics.fillEllipse.

public void
fillQuad(float x1, float y1, float x2, float y2)

Implements com.sun.prism.Graphics.fillQuad.

public void
fillRect(float x, float y, float width, float height)

Implements com.sun.prism.Graphics.fillRect.

public void
fillRoundRect(float x, float y, float width, float height, float arcw, float arch)

Implements com.sun.prism.Graphics.fillRoundRect.

pack-priv static int
fixFractions(float[] fractions, Color[] colors)

public Screen
private AlphaComposite
public NGCamera
public Rectangle
public int
public Rectangle
public CompositeMode
public float
public RectBounds
public NGLightBase[]
public Paint
public float
public float
public NodePath
public RenderTarget
public ResourceFactory
public BasicStroke
public BaseTransform
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public void
maskInterpolatePixels(RTTexture imgtex, RTTexture masktex, int dx, int dy, int dw, int dh, int ix, int iy, int mx, int my)

Implements com.sun.prism.MaskTextureGraphics.maskInterpolatePixels.

Use a mask to determine which pixels of an image are to be rendered onto the destination in device space.

public RTTexture
public void
public void
public void
scale(float sx, float sy)

Implements com.sun.prism.Graphics.scale.

public void
scale(float sx, float sy, float sz)

Implements com.sun.prism.Graphics.scale.

public void
public void
public void
public void
public void
public void
setCulling(boolean cull)

public void
setDepthBuffer(boolean depthBuffer)

Implements com.sun.prism.Graphics.setDepthBuffer.

public void
setDepthTest(boolean depthTest)

Implements com.sun.prism.Graphics.setDepthTest.

public void
public void
public void
public void
setNodeBounds(RectBounds bounds)

Implements com.sun.prism.Graphics.setNodeBounds.

Set the node bounds for any node that would like to render objects of a different size to self.

public void
public void
public void
setPixelScaleFactors(float pixelScaleX, float pixelScaleY)

Implements com.sun.prism.Graphics.setPixelScaleFactors.

public void
public void
public void
public void
public void
setTransform(double m00, double m10, double m01, double m11, double m02, double m12)

Implements com.sun.prism.Graphics.setTransform.

public void
setTransform3D(double mxx, double mxy, double mxz, double mxt, double myx, double myy, double myz, double myt, double mzx, double mzy, double mzz, double mzt)

Implements com.sun.prism.Graphics.setTransform3D.

protected void
setTransformG2D(AffineTransform tx)

Overridden by printing subclass to preserve the printer graphics transform.

public void
public void
sync()

Implements com.sun.prism.Graphics.sync.

Synchronize, or flush, any outstanding rendering operations to the destination in preparation for some caller potentially reusing or disposing a resource that has been used as the source of a recently invoked rendering operation.

private static Shape
tmpEllipse(float x, float y, float w, float h)

pack-priv static AffineTransform
private static Shape
tmpLine(float x1, float y1, float x2, float y2)

private static Shape
tmpQuad(float x1, float y1, float x2, float y2)

private static Rectangle2D
tmpRect(float x, float y, float w, float h)

private static Shape
tmpRRect(float x, float y, float w, float h, float aw, float ah)

private static Shape
pack-priv static Color
private static Font
pack-priv Paint
pack-priv static Stroke
public static AffineTransform
pack-priv static Rectangle
pack-priv static BaseTransform
public void
public void
translate(float tx, float ty)

Implements com.sun.prism.Graphics.translate.

public void
translate(float tx, float ty, float tz)

Implements com.sun.prism.Graphics.translate.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait