Top Inners Fields Constructors Methods
com.sun.prism.j2d

public final Class PrismPrintGraphics

extends J2DPrismGraphics
implements PrinterGraphics
Class Inheritance
All Implemented Interfaces
com.sun.prism.PrinterGraphics
Imports
com.sun.javafx.geom.Rectangle, com.sun.prism.PresentableState, .PrinterGraphics

Nested and Inner Type Summary

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

Field Summary

Modifier and TypeField and Description
private AffineTransform
Inherited from com.sun.prism.j2d.J2DPrismGraphics:
clipRectculldevClipRectfinalClipRectg2dJ2D_IDENTITYLGP_CYCLE_METHODSnodeBoundspaintpaintWasProportionalRGP_CYCLE_METHODSstroketargettransform

Constructor Summary

AccessConstructor and Description
public
PrismPrintGraphics(Graphics2D g2d, int width, int height)

pack-priv

Method Summary

Modifier and TypeMethod and Description
protected void
captureTransform(Graphics2D g2d)

Overrides com.sun.prism.j2d.J2DPrismGraphics.captureTransform.

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

protected void
setTransformG2D(AffineTransform tx)

Overrides com.sun.prism.j2d.J2DPrismGraphics.setTransformG2D.

Overridden by printing subclass to preserve the printer graphics transform.

Inherited from com.sun.prism.j2d.J2DPrismGraphics:
blitcanReadBackclearclearclearclearQuaddrawdrawdrawEllipsedrawLinedrawMappedTextureRawdrawPixelsMaskeddrawRectdrawRoundRectdrawStringdrawTexturedrawTexturedrawTexture3SliceHdrawTexture3SliceVdrawTexture9SlicedrawTextureRawdrawTextureVOfillfillfillEllipsefillQuadfillRectfillRoundRectfixFractionsgetAssociatedScreengetCameraNoClonegetClipRectgetClipRectIndexgetClipRectNoClonegetCompositeModegetExtraAlphagetFinalClipNoClonegetLightsgetPaintgetPixelScaleFactorXgetPixelScaleFactorYgetRenderRootgetRenderTargetgetResourceFactorygetStrokegetTransformNoClonehasPreCullingBitsisAlphaTestShaderisAntialiasedShapeisCullingisDepthBufferisDepthTestisState3DmaskInterpolatePixelsreadBackreleaseReadBackBufferresetscalescalesetAntialiasedShapesetCamerasetClipRectsetClipRectIndexsetCompositeModesetCullingsetDepthBuffersetDepthTestsetExtraAlphasetHasPreCullingBitssetLightssetNodeBoundssetPaintsetPerspectiveTransformsetPixelScaleFactorssetRenderRootsetState3DsetStrokesetTransformsetTransformsetTransform3Dsetup3DRenderingsynctmpJ2DTransformtoJ2DColortoJ2DPainttoJ2DStroketoJ2DTransformtoPrRecttoPrTransformtransformtranslatetranslate

Field Detail

origTx2Dback to summary
private AffineTransform origTx2D

Constructor Detail

PrismPrintGraphicsback to summary
public PrismPrintGraphics(Graphics2D g2d, int width, int height)
PrismPrintGraphicsback to summary
pack-priv PrismPrintGraphics(J2DPresentable target, Graphics2D g2d)

Method Detail

captureTransformback to summary
protected void captureTransform(Graphics2D g2d)

Overrides com.sun.prism.j2d.J2DPrismGraphics.captureTransform.

Doc from com.sun.prism.j2d.J2DPrismGraphics.captureTransform.

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

Annotations
@Override
setTransformG2Dback to summary
protected void setTransformG2D(AffineTransform tx)

Overrides com.sun.prism.j2d.J2DPrismGraphics.setTransformG2D.

Doc from com.sun.prism.j2d.J2DPrismGraphics.setTransformG2D.

Overridden by printing subclass to preserve the printer graphics transform.

Annotations
@Override
com.sun.prism.j2d back to summary

pack-priv Class PrismPrintGraphics.PagePresentable

extends J2DPresentable
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv static J2DResourceFactory
private int
private boolean
private int
Inherited from com.sun.prism.j2d.J2DPresentable:
bufferibneedsResizereadbackBuffer

Constructor Summary

AccessConstructor and Description
pack-priv
PagePresentable(int width, int height)

Method Summary

Modifier and TypeMethod and Description
public BufferedImage
public int
public int
public boolean
public boolean
lockResources(PresentableState pState)

Implements com.sun.prism.Presentable.lockResources.

Locks any underlying resources needed for a createGraphics/prepare/present sequence and returns a boolean indicating if the presentable needs to be recreated.

public boolean
prepare(Rectangle dirtyregion)

Implements com.sun.prism.Presentable.prepare.

display the indicated region to the user.

public boolean
present()

Implements com.sun.prism.Presentable.present.

present the prepared region to the user.

public void
Inherited from com.sun.prism.j2d.J2DPresentable:
createcreatecreateGraphicsgetAssociatedScreengetBackBuffergetContentXgetContentYgetPhysicalHeightgetPhysicalWidthgetPixelScaleFactorXgetPixelScaleFactorYgetReadbackBuffergetResourceFactoryisMSAA

Field Detail

factoryback to summary
pack-priv static J2DResourceFactory factory

Hides com.sun.prism.j2d.J2DPresentable.factory.

heightback to summary
private int height
opaqueback to summary
private boolean opaque
widthback to summary
private int width

Constructor Detail

PagePresentableback to summary
pack-priv PagePresentable(int width, int height)

Method Detail

createBufferback to summary
public BufferedImage createBuffer(int w, int h)

Implements abstract com.sun.prism.j2d.J2DPresentable.createBuffer.

Annotations
@Override
getContentHeightback to summary
public int getContentHeight()

Implements com.sun.prism.Surface.getContentHeight.

Annotations
@Override
getContentWidthback to summary
public int getContentWidth()

Implements com.sun.prism.Surface.getContentWidth.

Annotations
@Override
isOpaqueback to summary
public boolean isOpaque()

Implements com.sun.prism.RenderTarget.isOpaque.

Annotations
@Override
lockResourcesback to summary
public boolean lockResources(PresentableState pState)

Implements com.sun.prism.Presentable.lockResources.

Doc from com.sun.prism.Presentable.lockResources.

Locks any underlying resources needed for a createGraphics/prepare/present sequence and returns a boolean indicating if the presentable needs to be recreated. If the method returns true and the Presentable implements GraphicsResource then its dispose() method will be called prior to recreating a new Presentable object and so no resource should need to be locked in that case. The resources will be unlocked in either prepare() or present().

Annotations
@Override
prepareback to summary
public boolean prepare(Rectangle dirtyregion)

Implements com.sun.prism.Presentable.prepare.

Doc from com.sun.prism.Presentable.prepare.

display the indicated region to the user.

Annotations
@Override
presentback to summary
public boolean present()

Implements com.sun.prism.Presentable.present.

Doc from com.sun.prism.Presentable.present.

present the prepared region to the user.

Annotations
@Override
setOpaqueback to summary
public void setOpaque(boolean opaque)

Implements com.sun.prism.RenderTarget.setOpaque.

Annotations
@Override
com.sun.prism.j2d back to summary

pack-priv Class PrismPrintGraphics.PrintResourceFactory

extends J2DResourceFactory
Class Inheritance

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv J2DPrismGraphics
Inherited from com.sun.prism.j2d.J2DResourceFactory:
canClampToZerocreateArcRepcreateEllipseRepcreateMeshcreateMeshViewcreatePathRepcreatePhongMaterialcreatePresentablecreateRoundRectRepcreateRTTexturecreateRTTexturecreateTexturecreateTexturecreateTexturedisposegetMaximumTextureSizegetRTTHeightgetRTTWidthgetScreengetTextureResourcePoolisCompatibleTextureisFormatSupported

Constructor Detail

PrintResourceFactoryback to summary
pack-priv PrintResourceFactory()

Method Detail

createJ2DPrismGraphicsback to summary
pack-priv J2DPrismGraphics createJ2DPrismGraphics(J2DPresentable target, Graphics2D g2d)

Overrides com.sun.prism.j2d.J2DResourceFactory.createJ2DPrismGraphics.

Annotations
@Override