Package org.meteoinfo.legend
Class LayerNode
- java.lang.Object
-
- org.meteoinfo.legend.ItemNode
-
- org.meteoinfo.legend.LayerNode
-
public class LayerNode extends ItemNode
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()CloneintgetDrawHeight()Get drawing heightintgetExpandedHeight()Get expanded heightintgetGroupHandle()Get group handleintgetLayerHandle()Get layer handlejava.util.List<LegendNode>getLegendNodes()Get legend node listLegendSchemegetLegendScheme()Get the layer legend schemeMapFramegetMapFrame()Get map frameMapLayergetMapLayer()Get map layerShapeTypesgetShapeType()Get the layer shape typebooleanisEditing()Get if is editingvoidsetEditing(boolean value)Set if is editingvoidsetGroupHandle(int handle)Set group handlevoidsetMapFrame(MapFrame mf)Set map framevoidsetMapLayer(MapLayer layer)Set map layervoidupdate()Update propertiesvoidupdateLegendScheme(LegendScheme aLS)Update legend nodes using a legend scheme-
Methods inherited from class org.meteoinfo.legend.ItemNode
collapse, expand, getBackColor, getForeColor, getHeight, getNodeType, getParentLegend, getText, getTop, isChecked, isExpanded, isSelected, setBackColor, setChecked, setForeColor, setHeight, setNodeType, setParentLegend, setSelected, setText, setTop
-
-
-
-
Constructor Detail
-
LayerNode
public LayerNode(MapLayer aLayer)
Constructor- Parameters:
aLayer-
-
-
Method Detail
-
getMapFrame
public MapFrame getMapFrame()
Get map frame- Returns:
- The map frame
-
setMapFrame
public void setMapFrame(MapFrame mf)
Set map frame- Parameters:
mf- The map frame
-
getLayerHandle
public int getLayerHandle()
Get layer handle- Returns:
- The layer handle
-
getMapLayer
public MapLayer getMapLayer()
Get map layer- Returns:
- The map layer
-
setMapLayer
public void setMapLayer(MapLayer layer)
Set map layer- Parameters:
layer- The map layer
-
getLegendScheme
public LegendScheme getLegendScheme()
Get the layer legend scheme- Returns:
- The legend scheme
-
getShapeType
public ShapeTypes getShapeType()
Get the layer shape type- Returns:
- The shape type
-
getLegendNodes
public java.util.List<LegendNode> getLegendNodes()
Get legend node list- Returns:
- The legend node list
-
getGroupHandle
public int getGroupHandle()
Get group handle- Returns:
- The group handle
-
setGroupHandle
public void setGroupHandle(int handle)
Set group handle- Parameters:
handle-
-
isEditing
public boolean isEditing()
Get if is editing- Returns:
- Boolean
-
setEditing
public void setEditing(boolean value)
Set if is editing- Parameters:
value- Boolean
-
update
public void update()
Update properties
-
updateLegendScheme
public void updateLegendScheme(LegendScheme aLS)
Update legend nodes using a legend scheme- Parameters:
aLS- The legend scheme
-
getDrawHeight
public int getDrawHeight()
Description copied from class:ItemNodeGet drawing height- Specified by:
getDrawHeightin classItemNode- Returns:
- The drawing height
-
getExpandedHeight
public int getExpandedHeight()
Description copied from class:ItemNodeGet expanded height- Specified by:
getExpandedHeightin classItemNode- Returns:
- The expanded height
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionClone- Overrides:
clonein classjava.lang.Object- Returns:
- LayerNode object
- Throws:
java.lang.CloneNotSupportedException
-
-