|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.image.renderable.RenderContext | +--org.apache.batik.gvt.GraphicsNodeRenderContext
This class captures the rendering context. It is typically created by a GVT Renderer
Field Summary | |
static java.awt.RenderingHints.Key |
KEY_FONT_RENDER_CONTEXT
Key for the FontRenderContext hint |
static java.awt.RenderingHints.Key |
KEY_GRAPHICS_NODE_RABLE_FACTORY
Key for the GraphicsNodeRableFactory hint |
static java.awt.RenderingHints.Key |
KEY_TEXT_PAINTER
Key for the TextPainter hint |
Constructor Summary | |
GraphicsNodeRenderContext(java.awt.geom.AffineTransform transform,
java.awt.Shape aoi,
java.awt.RenderingHints hints,
java.awt.font.FontRenderContext frc,
TextPainter textPainter,
GraphicsNodeRableFactory gnrFactory)
|
|
GraphicsNodeRenderContext(java.awt.image.renderable.RenderContext ctx)
|
Method Summary | |
java.awt.font.FontRenderContext |
getFontRenderContext()
Returns the context needed to correctly measure text. |
GraphicsNodeRableFactory |
getGraphicsNodeRableFactory()
Returns the factory that can be used to build GraphicsNodeRable instances. |
static GraphicsNodeRenderContext |
getGraphicsNodeRenderContext(java.awt.Graphics2D g2d)
Given a Graphics2D, this convenience method will build a GraphicsNodeRenderContext |
static GraphicsNodeRenderContext |
getGraphicsNodeRenderContext(java.awt.image.renderable.RenderContext ctx)
Given a RenderContext, this convenience method will build a GraphicsNodeRenderContext |
TextPainter |
getTextPainter()
Returns a text painter object that can be used to render TextNode. |
void |
setFontRenderContext(java.awt.font.FontRenderContext frc)
Sets the context needed to correctly measure text metrics |
void |
setGraphicsNodeRableFactory(GraphicsNodeRableFactory factory)
Sets the factory to use to build GraphicsNodeRable instances |
void |
setTextPainter(TextPainter textPainter)
Sets the text painter object which can be used by GraphicsNode to render text, for example in a TextNode |
Methods inherited from class java.awt.image.renderable.RenderContext |
clone, concatenateTransform, concetenateTransform, getAreaOfInterest, getRenderingHints, getTransform, preConcatenateTransform, preConcetenateTransform, setAreaOfInterest, setRenderingHints, setTransform |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static java.awt.RenderingHints.Key KEY_FONT_RENDER_CONTEXT
public static java.awt.RenderingHints.Key KEY_TEXT_PAINTER
public static java.awt.RenderingHints.Key KEY_GRAPHICS_NODE_RABLE_FACTORY
Constructor Detail |
public GraphicsNodeRenderContext(java.awt.image.renderable.RenderContext ctx)
ctx
- the RenderContext to use as a base for constructing
this instance.public GraphicsNodeRenderContext(java.awt.geom.AffineTransform transform, java.awt.Shape aoi, java.awt.RenderingHints hints, java.awt.font.FontRenderContext frc, TextPainter textPainter, GraphicsNodeRableFactory gnrFactory)
transform
- user space to device space transformaoi
- area of interesthints
- hintsMethod Detail |
public java.awt.font.FontRenderContext getFontRenderContext()
public void setFontRenderContext(java.awt.font.FontRenderContext frc)
public TextPainter getTextPainter()
public void setTextPainter(TextPainter textPainter)
public GraphicsNodeRableFactory getGraphicsNodeRableFactory()
public void setGraphicsNodeRableFactory(GraphicsNodeRableFactory factory)
public static GraphicsNodeRenderContext getGraphicsNodeRenderContext(java.awt.image.renderable.RenderContext ctx)
public static GraphicsNodeRenderContext getGraphicsNodeRenderContext(java.awt.Graphics2D g2d)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |