public class IconPartList extends java.lang.Object implements IconPart, java.lang.Iterable<IconPart>, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
protected java.awt.Shape |
clip |
protected java.util.List<IconPart> |
parts |
protected DrawingAttributes |
renderingAttributes |
Constructor and Description |
---|
IconPartList() |
Modifier and Type | Method and Description |
---|---|
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.
|
protected java.util.List<IconPart> parts
protected DrawingAttributes renderingAttributes
protected java.awt.Shape clip
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
public void render(java.awt.Graphics g, int width, int height, DrawingAttributes appDA)
IconPart
public void setClip(java.awt.Shape clipArea)
IconPart
public java.awt.Shape getClip()
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
Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details