|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvisual.statik.AbstractTransformableContent
visual.statik.AbstractAggregateContent<C>
public abstract class AbstractAggregateContent<C extends TransformableContent>
A generic piece of static visual content that is a composition of many component parts Note: The bounds are not stored in attributes to make this class easier to understand. To do so would require: (1) Use of the isTransformationRequired() method in the parent; and (2) Changes to the add() and remove() methods in this class.
Field Summary | |
---|---|
protected java.util.LinkedList<C> |
components
|
Fields inherited from class visual.statik.AbstractTransformableContent |
---|
angle, relocated, rerotated, rescaled, x, xRotation, xScale, y, yRotation, yScale |
Constructor Summary | |
---|---|
AbstractAggregateContent()
Default Constructor |
Method Summary | |
---|---|
void |
add(C component)
Add a TransformableContent |
java.awt.geom.Rectangle2D |
getBounds2D(boolean ofTransformed)
Returns a high precision bounding box of the Content either before or after it is transformed |
java.util.Iterator<C> |
iterator()
Return an Iterator containing all of the TransformableContent objects |
void |
remove(C component)
Remove a TransformableContent |
void |
render(java.awt.Graphics g)
Render this AbstractAggregateContent (required by TransformableContent) |
Methods inherited from class visual.statik.AbstractTransformableContent |
---|
getAffineTransform, getBounds2D, isTransformationRequired, setLocation, setRotation, setScale, setScale, setTransformationRequired |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.LinkedList<C extends TransformableContent> components
Constructor Detail |
---|
public AbstractAggregateContent()
Method Detail |
---|
public void add(C component)
component
- The TransformableContent to addpublic java.awt.geom.Rectangle2D getBounds2D(boolean ofTransformed)
getBounds2D
in interface TransformableContent
getBounds2D
in class AbstractTransformableContent
ofTransformed
- true to get the BB of the transformed content
public java.util.Iterator<C> iterator()
public void remove(C component)
component
- The TransformableContent to removepublic void render(java.awt.Graphics g)
g
- The rendering engine to use
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |