sgtplot
Interface LayerChild
-
- All Superinterfaces:
- Selectable
- All Known Subinterfaces:
- DataKey
- All Known Implementing Classes:
- ColorKey, LineKey, Logo, PointCollectionKey, Ruler, SGLabel, UserIcon, ValueIcon, VectorKey
public interface LayerChild extends Selectable
LayerChilddefines an interface to allow classes to be associated with aLayer. The interface is sufficient to provide scaling, translation, and mouse selection.- Since:
- 1.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description LayerChildcopy()Create a copy of theLayerChild.voiddraw(org.freehep.graphics2d.VectorGraphics g)Draw theLayerChild.java.lang.StringgetId()Get the identifier.LayergetLayer()Get the associatedLayer.AbstractPanegetPane()GetAbstractPaneof theLayerChild.booleanisVisible()Check ifLayerChildis visible.voidmodified(java.lang.String mess)Used by sgtplot internally.voidsetId(java.lang.String id)Set the identifier.voidsetLayer(Layer l)Associate aLayerwith theLayerChild.voidsetVisible(boolean visible)Set visibility for aLayerChild.java.lang.StringtoString()Return a string that represents theLayerChild.-
Methods inherited from interface sgtplot.Selectable
getBounds, isSelectable, isSelected, setSelectable, setSelected
-
-
-
-
Method Detail
-
draw
void draw(org.freehep.graphics2d.VectorGraphics g) throws LayerNotFoundException
Draw theLayerChild.- Parameters:
g- Graphics context- Throws:
LayerNotFoundException- No layer is associated with theLayerChild.
-
getLayer
Layer getLayer()
Get the associatedLayer.- Returns:
- Associated layer
-
setLayer
void setLayer(Layer l)
Associate aLayerwith theLayerChild.- Parameters:
l- Parent layer.
-
getId
java.lang.String getId()
Get the identifier.- Returns:
LayerChildidentification.
-
setId
void setId(java.lang.String id)
Set the identifier.- Parameters:
id-LayerChildidentification.
-
copy
LayerChild copy()
Create a copy of theLayerChild.- Returns:
- A copy of the
LayerChild.
-
toString
java.lang.String toString()
Return a string that represents theLayerChild.- Overrides:
toStringin classjava.lang.Object- Returns:
- Stringified
LayerChildrepresentation.
-
isVisible
boolean isVisible()
Check ifLayerChildis visible.- Returns:
- true if visible
- Since:
- 2.0
-
setVisible
void setVisible(boolean visible)
Set visibility for aLayerChild.- Parameters:
visible- visible if true- Since:
- 2.0
-
getPane
AbstractPane getPane()
GetAbstractPaneof theLayerChild.- Since:
- 2.0
-
modified
void modified(java.lang.String mess)
Used by sgtplot internally.- Since:
- 2.0
-
-
DMelt 3.0 © DataMelt by jWork.ORG