|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bbn.openmap.tools.icon.IconPartList
public class IconPartList
An IconPartList is a group of IconParts that can be rendered together. If you ask an IconPartList for it's geometry, it will combine all its parts into one geometry, and use its DrawingAttributes to render that combined shape. The IconPartList is itself an IconPart, so the recursive possibilities are endless.
Field Summary | |
---|---|
protected java.awt.Shape |
clip
|
protected java.util.List<IconPart> |
parts
|
protected DrawingAttributes |
renderingAttributes
|
Constructor Summary | |
---|---|
IconPartList()
|
Method Summary | |
---|---|
void |
add(IconPart part)
First in drawn on bottom. |
void |
clear()
|
java.lang.Object |
clone()
|
java.awt.Shape |
getClip()
Get a clip area for the IconPart. |
java.awt.Shape |
getGeometry()
If you ask a IconPartList for its geometry, it will combine all its parts to make one Shape object. |
protected java.util.List<IconPart> |
getList()
|
DrawingAttributes |
getRenderingAttributes()
Get the rendering attributes for this IconPart. |
java.util.Iterator<IconPart> |
iterator()
|
boolean |
remove(IconPart part)
|
void |
render(java.awt.Graphics g,
int width,
int height)
Have the IconPart render itself into the Graphic object for a given height and width. |
void |
render(java.awt.Graphics g,
int width,
int height,
DrawingAttributes appDA)
Have the IconPart render itself into the Graphic object for a given height and width. |
void |
setClip(java.awt.Shape clipArea)
Set a clip area for the IconPart to draw only certain parts of the geometry. |
void |
setGeometry(java.awt.Shape shape)
Set the geometry for this IconPart. |
void |
setRenderingAttributes(DrawingAttributes da)
Set the rendering attributes for this IconPart. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.List<IconPart> parts
protected DrawingAttributes renderingAttributes
protected java.awt.Shape clip
Constructor Detail |
---|
public IconPartList()
Method Detail |
---|
protected java.util.List<IconPart> getList()
public java.util.Iterator<IconPart> iterator()
iterator
in interface java.lang.Iterable<IconPart>
public void add(IconPart part)
public boolean remove(IconPart part)
public void clear()
public void render(java.awt.Graphics g, int width, int height)
IconPart
render
in interface IconPart
public void render(java.awt.Graphics g, int width, int height, DrawingAttributes appDA)
IconPart
render
in interface IconPart
appDA
- drawing attributes to use under certain
conditions. Certain IconParts on this list may use these
drawing attributes if they want/should. May be null.public void setClip(java.awt.Shape clipArea)
IconPart
setClip
in interface IconPart
public java.awt.Shape getClip()
IconPart
getClip
in interface IconPart
public void setGeometry(java.awt.Shape shape)
IconPart
setGeometry
in interface IconPart
public java.awt.Shape getGeometry()
getGeometry
in interface IconPart
public void setRenderingAttributes(DrawingAttributes da)
IconPart
setRenderingAttributes
in interface IconPart
public DrawingAttributes getRenderingAttributes()
IconPart
getRenderingAttributes
in interface IconPart
public java.lang.Object clone()
clone
in interface IconPart
clone
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |