|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LayerChild
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 |
---|
void draw(java.awt.Graphics g) throws LayerNotFoundException
LayerChild
.
g
- Graphics context
LayerNotFoundException
- No layer is associated with the LayerChild
.Layer getLayer()
Layer
.
void setLayer(Layer l)
Layer
with the LayerChild
.
l
- Parent layer.java.lang.String getId()
LayerChild
identification.void setId(java.lang.String id)
id
- LayerChild
identification.LayerChild copy()
LayerChild
.
LayerChild
.java.lang.String toString()
LayerChild
.
toString
in class java.lang.Object
LayerChild
representation.boolean isVisible()
LayerChild
is visible.
void setVisible(boolean visible)
LayerChild
.
visible
- visible if trueAbstractPane getPane()
AbstractPane
of the LayerChild
.
void modified(java.lang.String mess)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |