|
SGT Home | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
LayerChild
defines an interface to allow classes to be
associated with a Layer
. The interface is sufficient to
provide scaling, translation, and mouse selection.
Method Summary | |
LayerChild |
copy()
Create a copy of the LayerChild . |
void |
draw(java.awt.Graphics g)
Draw the LayerChild . |
java.lang.String |
getId()
Get the identifier. |
Layer |
getLayer()
Get the associated Layer . |
AbstractPane |
getPane()
Get AbstractPane of the LayerChild . |
boolean |
isVisible()
Check if LayerChild is visible. |
void |
modified(java.lang.String mess)
Used by sgt internally. |
void |
setId(java.lang.String id)
Set the identifier. |
void |
setLayer(Layer l)
Associate a Layer with the LayerChild . |
void |
setVisible(boolean visible)
Set visibility for a LayerChild . |
java.lang.String |
toString()
Return a string that represents the LayerChild . |
Methods inherited from interface gov.noaa.pmel.sgt.Selectable |
getBounds, isSelectable, isSelected, setSelectable, setSelected |
Method Detail |
public void draw(java.awt.Graphics g) throws LayerNotFoundException
LayerChild
.g
- Graphics contextLayerNotFoundException
- No layer is associated with the LayerChild
.public Layer getLayer()
Layer
.public void setLayer(Layer l)
Layer
with the LayerChild
.l
- Parent layer.public java.lang.String getId()
LayerChild
identification.public void setId(java.lang.String id)
id
- LayerChild
identification.public LayerChild copy()
LayerChild
.LayerChild
.public java.lang.String toString()
LayerChild
.toString
in class java.lang.Object
LayerChild
representation.public boolean isVisible()
LayerChild
is visible.public void setVisible(boolean visible)
LayerChild
.visible
- visible if truepublic AbstractPane getPane()
AbstractPane
of the LayerChild
.public void modified(java.lang.String mess)
|
SGT Home | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |