|
||||||||||
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.ConcreteCompositeGraphicsNode
An implementation of the CompositeGraphicsNode interface.
Field Summary | |
protected java.awt.geom.Rectangle2D |
backgroundEnableRgn
This flag indicates if this node has BackgroundEnable = 'new'. |
protected GraphicsNode[] |
children
The children of this composite graphics node. |
protected int |
count
The number of children of this composite graphics node. |
protected int |
modCount
The number of times the children list has been structurally modified. |
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.CompositeGraphicsNode |
VIEWPORT |
Fields inherited from interface org.apache.batik.gvt.GraphicsNode |
KEY_AREA_OF_INTEREST |
Constructor Summary | |
ConcreteCompositeGraphicsNode()
Constructs a new empty composite graphics node. |
Method Summary | |
void |
add(int index,
java.lang.Object o)
Inserts the specified graphics node at the specified position in this children list. |
boolean |
add(java.lang.Object o)
Adds the specified graphics node to this composite graphics node. |
boolean |
addAll(java.util.Collection c)
Not supported - Throws UnsupportedOperationException exception. |
boolean |
addAll(int index,
java.util.Collection c)
Not supported - Throws UnsupportedOperationException exception. |
void |
addCompositeGraphicsNodeListener(CompositeGraphicsNodeListener l)
Adds the specified composite graphics node listener to receive composite graphics node events from this node. |
void |
clear()
Not supported - Throws UnsupportedOperationException exception. |
boolean |
contains(java.lang.Object node)
Returns true if this composite graphics node contains the specified graphics node, false otherwise. |
boolean |
contains(java.awt.geom.Point2D p)
Tests if the specified Point2D is inside the boundary of this node. |
boolean |
containsAll(java.util.Collection c)
Returns true if this composite graphics node contains all the graphics node in the specified collection, false otherwise. |
void |
ensureCapacity(int minCapacity)
Increases the capacity of the children list, if necessary, to ensure that it can hold at least the number of graphics nodes specified by the minimum capacity argument. |
java.lang.Object |
get(int index)
Returns the graphics node at the specified position in the children list. |
java.awt.geom.Rectangle2D |
getBackgroundEnable()
Returns the Rectangle defined as background. |
java.util.List |
getChildren()
Returns the list of children or null if any. |
java.awt.geom.Rectangle2D |
getGeometryBounds()
Returns the bounds of the area covered by this node, without taking any of its rendering attribute into account, i.e., exclusive of any clipping, masking, filtering or stroking, for example. |
protected java.awt.geom.Rectangle2D |
getGlobalBounds()
|
java.awt.Shape |
getOutline()
Returns the outline of this node. |
java.awt.geom.Rectangle2D |
getPrimitiveBounds()
Returns the bounds of the area covered by this node's primitive paint. |
boolean |
hasProgressivePaint()
Returns true if this node needs a progressive paint, false otherwise. |
int |
indexOf(java.lang.Object node)
Returns the index in the children list of the specified graphics node or -1 if the children list does not contain this graphics node. |
protected void |
invalidateGeometryCache()
Invalidates the cached geometric bounds. |
boolean |
isEmpty()
Returns true if this composite graphics node does not contain graphics node, false otherwise. |
java.util.Iterator |
iterator()
Returns an iterator over the children of this graphics node. |
int |
lastIndexOf(java.lang.Object node)
Returns the index in this children list of the last occurence of the specified graphics node, or -1 if the list does not contain this graphics node. |
java.util.ListIterator |
listIterator()
Returns an iterator over the children of this graphics node. |
java.util.ListIterator |
listIterator(int index)
Returns an iterator over the children of this graphics node, starting at the specified position in the children list. |
GraphicsNode |
nodeHitAt(java.awt.geom.Point2D p)
Returns the GraphicsNode containing point p if this node or one of its children is sensitive to mouse events at p. |
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. |
java.lang.Object |
remove(int index)
Removes the graphics node at the specified position in the children list. |
boolean |
remove(java.lang.Object o)
Removes the specified graphics node from the children list. |
boolean |
removeAll(java.util.Collection c)
Not supported - Throws UnsupportedOperationException exception. |
void |
removeCompositeGraphicsNodeListener(CompositeGraphicsNodeListener l)
Removes the specified composite graphics node listener so that it no longer receives composite graphics node events from this node. |
boolean |
retainAll(java.util.Collection c)
Not supported - Throws UnsupportedOperationException exception. |
java.lang.Object |
set(int index,
java.lang.Object o)
Replaces the graphics node at the specified position in the children list with the specified graphics node. |
void |
setBackgroundEnable(java.awt.geom.Rectangle2D bgRgn)
If bgRgn == VIEWPORT then background enable is activated for the entire viewable region. |
protected void |
setRoot(RootGraphicsNode newRoot)
|
int |
size()
Returns the number of children of this composite graphics node. |
java.util.List |
subList(int fromIndex,
int toIndex)
Not supported - Throws UnsupportedOperationException exception. |
java.lang.Object[] |
toArray()
Returns an array containing all of the graphics node in the children list of this composite graphics node in the correct order. |
java.lang.Object[] |
toArray(java.lang.Object[] a)
Returns an array containing all of the graphics node in the children list of this composite graphics node in the correct order. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.List |
equals, hashCode |
Field Detail |
protected GraphicsNode[] children
protected int count
protected int modCount
protected java.awt.geom.Rectangle2D backgroundEnableRgn
Constructor Detail |
public ConcreteCompositeGraphicsNode()
Method Detail |
public java.util.List getChildren()
CompositeGraphicsNode
getChildren
in interface CompositeGraphicsNode
public void setBackgroundEnable(java.awt.geom.Rectangle2D bgRgn)
CompositeGraphicsNode
setBackgroundEnable
in interface CompositeGraphicsNode
public java.awt.geom.Rectangle2D getBackgroundEnable()
CompositeGraphicsNode
getBackgroundEnable
in interface CompositeGraphicsNode
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 usepublic void addCompositeGraphicsNodeListener(CompositeGraphicsNodeListener l)
CompositeGraphicsNode
addCompositeGraphicsNodeListener
in interface CompositeGraphicsNode
org.apache.batik.gvt.CompositeGraphicsNode
l
- the composite graphics node listener to addpublic void removeCompositeGraphicsNodeListener(CompositeGraphicsNodeListener l)
CompositeGraphicsNode
removeCompositeGraphicsNodeListener
in interface CompositeGraphicsNode
org.apache.batik.gvt.CompositeGraphicsNode
l
- the composite graphics node listener to removeprotected void invalidateGeometryCache()
AbstractGraphicsNode
invalidateGeometryCache
in class AbstractGraphicsNode
public boolean contains(java.awt.geom.Point2D p)
GraphicsNode
contains
in interface GraphicsNode
contains
in class AbstractGraphicsNode
org.apache.batik.gvt.GraphicsNode
p
- the specified Point2D in the user spacepublic GraphicsNode nodeHitAt(java.awt.geom.Point2D p)
GraphicsNode
nodeHitAt
in interface GraphicsNode
nodeHitAt
in class AbstractGraphicsNode
org.apache.batik.gvt.GraphicsNode
p
- the specified Point2D in the user spaceprotected java.awt.geom.Rectangle2D getGlobalBounds()
getGlobalBounds
in class AbstractGraphicsNode
public java.awt.geom.Rectangle2D getPrimitiveBounds()
GraphicsNode
getPrimitiveBounds
in interface GraphicsNode
public java.awt.geom.Rectangle2D getGeometryBounds()
GraphicsNode
getGeometryBounds
in interface GraphicsNode
public java.awt.Shape getOutline()
GraphicsNode
getOutline
in interface GraphicsNode
org.apache.batik.gvt.GraphicsNode
protected void setRoot(RootGraphicsNode newRoot)
setRoot
in class AbstractGraphicsNode
public int size()
size
in interface java.util.List
public boolean isEmpty()
isEmpty
in interface java.util.List
public boolean contains(java.lang.Object node)
contains
in interface java.util.List
node
- the node to checkpublic java.util.Iterator iterator()
iterator
in interface java.util.List
public java.lang.Object[] toArray()
toArray
in interface java.util.List
public java.lang.Object[] toArray(java.lang.Object[] a)
toArray
in interface java.util.List
a
- the array to fit if possiblepublic java.lang.Object get(int index)
get
in interface java.util.List
index
- the index of the graphics node to returnjava.lang.IndexOutOfBoundsException
- if the index is out of rangepublic java.lang.Object set(int index, java.lang.Object o)
set
in interface java.util.List
index
- the index of the graphics node to replaceo
- the graphics node to be stored at the specified positionjava.lang.IndexOutOfBoundsException
- if the index is out of rangejava.lang.IllegalArgumentException
- if the node is not an
instance of GraphicsNodepublic boolean add(java.lang.Object o)
add
in interface java.util.List
o
- the graphics node to addjava.lang.IllegalArgumentException
- if the node is not an
instance of GraphicsNodepublic void add(int index, java.lang.Object o)
add
in interface java.util.List
index
- the position at which the specified graphics node is to
be inserted.o
- the graphics node to be inserted.java.lang.IndexOutOfBoundsException
- if the index is out of rangejava.lang.IllegalArgumentException
- if the node is not an
instance of GraphicsNodepublic boolean addAll(java.util.Collection c)
addAll
in interface java.util.List
public boolean addAll(int index, java.util.Collection c)
addAll
in interface java.util.List
public boolean remove(java.lang.Object o)
remove
in interface java.util.List
o
- the node the removejava.lang.IllegalArgumentException
- if the node is not an
instance of GraphicsNodepublic java.lang.Object remove(int index)
remove
in interface java.util.List
index
- the position of the graphics node to removejava.lang.IndexOutOfBoundsException
- if index out of range public boolean removeAll(java.util.Collection c)
removeAll
in interface java.util.List
public boolean retainAll(java.util.Collection c)
retainAll
in interface java.util.List
public void clear()
clear
in interface java.util.List
public boolean containsAll(java.util.Collection c)
containsAll
in interface java.util.List
c
- the collection to be checked for containmentpublic int indexOf(java.lang.Object node)
indexOf
in interface java.util.List
node
- the graphics node to search forpublic int lastIndexOf(java.lang.Object node)
lastIndexOf
in interface java.util.List
node
- the graphics node to search forpublic java.util.ListIterator listIterator()
listIterator
in interface java.util.List
public java.util.ListIterator listIterator(int index)
listIterator
in interface java.util.List
index
- the index of the first graphics node to return
from the children listpublic java.util.List subList(int fromIndex, int toIndex)
subList
in interface java.util.List
public void ensureCapacity(int minCapacity)
minCapacity
- the desired minimum capacity.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |