|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.batik.refimpl.gvt.AbstractGraphicsNode | +--org.apache.batik.refimpl.gvt.ConcreteTextNode
A graphics node that represents text.
Inner classes inherited from class org.apache.batik.gvt.TextNode |
TextNode.Anchor |
Field Summary | |
protected java.text.AttributedCharacterIterator |
aci
Attributed Character Iterator describing the text |
protected TextNode.Anchor |
anchor
Text Anchor |
protected java.awt.geom.Point2D |
location
Location of this text node |
Fields inherited from class org.apache.batik.refimpl.gvt.AbstractGraphicsNode |
clip, composite, cursor, eventFilter, filter, hints, hitDetector, isVisible, listeners, mask, mememtos, parent, root, transform |
Fields inherited from interface org.apache.batik.gvt.GraphicsNode |
KEY_AREA_OF_INTEREST |
Constructor Summary | |
ConcreteTextNode()
|
Method Summary | |
boolean |
contains(java.awt.geom.Point2D p)
Returns whether a given point is enclosed by the text node's bounds. |
TextNode.Anchor |
getAnchor()
Returns the anchor of this text node. |
java.text.AttributedCharacterIterator |
getAttributedCharacterIterator()
Returns the attributed character iterator of this text node. |
java.awt.geom.Rectangle2D |
getGeometryBounds()
Geometric bounds are in user space. |
java.awt.Shape |
getHighlightShape(GraphicsNodeRenderContext rc)
Return a shape in user coords which encloses the current selection. |
java.awt.geom.Point2D |
getLocation()
Returns the location of this raster image node. |
java.awt.Shape |
getOutline()
Returns the outline of this node. |
java.awt.geom.Rectangle2D |
getPrimitiveBounds()
Primitive bounds are in user space. |
java.lang.Object |
getSelection(GraphicsNodeRenderContext rc)
Get the current text selection. |
boolean |
hasProgressivePaint()
Returns true if this node needs a progressive paint, false otherwise. |
protected void |
invalidateGeometryCache()
Invalidates the cached geometric bounds. |
void |
primitivePaint(java.awt.Graphics2D g2d,
GraphicsNodeRenderContext rc)
Paints this node without applying Filter, Mask, Composite and clip. |
void |
progressivePaint(java.awt.Graphics2D g2d,
GraphicsNodeRenderContext rc)
Paints one step of this node rendering operations. |
void |
selectAll(double x,
double y,
GraphicsNodeRenderContext rc)
Extends the current selection to the character at (x, y).. |
void |
selectAt(double x,
double y,
GraphicsNodeRenderContext rc)
Initializes the current selection to begin with the character at (x, y). |
void |
selectTo(double x,
double y,
GraphicsNodeRenderContext rc)
Extends the current selection to the character at (x, y).. |
void |
setAnchor(TextNode.Anchor newAnchor)
Sets the anchor of this text node. |
void |
setAttributedCharacterIterator(java.text.AttributedCharacterIterator newAci)
Sets the attributed character iterator of this text node. |
void |
setLocation(java.awt.geom.Point2D newLocation)
Sets the location of this raster text node. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.awt.geom.Point2D location
protected java.text.AttributedCharacterIterator aci
protected TextNode.Anchor anchor
Constructor Detail |
public ConcreteTextNode()
Method Detail |
public void setLocation(java.awt.geom.Point2D newLocation)
setLocation
in interface TextNode
newLocation
- the new location of this raster image nodepublic java.awt.geom.Point2D getLocation()
getLocation
in interface TextNode
public void setAttributedCharacterIterator(java.text.AttributedCharacterIterator newAci)
setAttributedCharacterIterator
in interface TextNode
newAci
- the new attributed character iteratorpublic java.text.AttributedCharacterIterator getAttributedCharacterIterator()
getAttributedCharacterIterator
in interface TextNode
public void setAnchor(TextNode.Anchor newAnchor)
setAnchor
in interface TextNode
newAnchor
- the new anchor of this text nodepublic TextNode.Anchor getAnchor()
getAnchor
in interface TextNode
protected void invalidateGeometryCache()
AbstractGraphicsNode
invalidateGeometryCache
in class AbstractGraphicsNode
public java.awt.geom.Rectangle2D getPrimitiveBounds()
getPrimitiveBounds
in interface GraphicsNode
public java.awt.geom.Rectangle2D getGeometryBounds()
getGeometryBounds
in interface GraphicsNode
public boolean contains(java.awt.geom.Point2D p)
contains
in interface GraphicsNode
contains
in class AbstractGraphicsNode
org.apache.batik.gvt.GraphicsNode
p
- the specified Point2D in the user spacepublic java.awt.Shape getOutline()
GraphicsNode
getOutline
in interface GraphicsNode
public void selectAt(double x, double y, GraphicsNodeRenderContext rc)
selectAt
in interface Selectable
the
- anchor of this nodepublic void selectTo(double x, double y, GraphicsNodeRenderContext rc)
selectTo
in interface Selectable
the
- anchor of this nodepublic void selectAll(double x, double y, GraphicsNodeRenderContext rc)
selectAll
in interface Selectable
the
- anchor of this nodepublic java.lang.Object getSelection(GraphicsNodeRenderContext rc)
getSelection
in interface Selectable
public java.awt.Shape getHighlightShape(GraphicsNodeRenderContext rc)
Selectable
getHighlightShape
in interface Selectable
public boolean hasProgressivePaint()
GraphicsNode
hasProgressivePaint
in interface GraphicsNode
org.apache.batik.gvt.GraphicsNode
public void progressivePaint(java.awt.Graphics2D g2d, GraphicsNodeRenderContext rc)
GraphicsNode
progressivePaint
in interface GraphicsNode
org.apache.batik.gvt.GraphicsNode
g2d
- the Graphics2D to userc
- the GraphicsNodeRenderContext to usepublic void primitivePaint(java.awt.Graphics2D g2d, GraphicsNodeRenderContext rc)
GraphicsNode
primitivePaint
in interface GraphicsNode
org.apache.batik.gvt.GraphicsNode
g2d
- the Graphics2D to userc
- the GraphicsNodeRenderContext to use
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |