|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
ilog.views.maps.beans.IlvMapLegend
public class IlvMapLegend
Class for displaying a legend. A legend is a visual summary of the layers
a map displays. This class is designed to work
with a IlvMapLayerTreeModel which holds the IlvMapLayer
displayed by this legend. The items of the legend can be displayed in categories.
The control of the categories, the text displayed and the grouping of legend items
is made from the values found in the IlvMapStyle of each IlvMapLayer
displayed. The values of the properties IlvMapStyle.CATEGORY and IlvMapStyle.LEGEND_GROUP
controls the category in which the layer will fit, the aggregation of layers and
the text displayed in the legend.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
IlvMapLegend()
Constructs an IlvMapLegend. |
|
| Method Summary | |
|---|---|
String |
getDescription(IlvMapLayer layer)
Returns the description of the layer. |
IlvManagerView |
getView()
Retrieves the view attached to this legend. |
boolean |
isDoRasters()
Returns true if raster layers should be shown in legend. |
void |
setDoRasters(boolean dor)
Displays or hide raster layers in the legend. |
void |
setView(IlvManagerView v)
Sets the IlvManagerView seen by this legend. |
void |
treeNodesChanged(TreeModelEvent e)
Invoked after a node (or a set of siblings) has changed in some way. |
void |
treeNodesInserted(TreeModelEvent e)
Invoked after layers have been inserted into the tree. |
void |
treeNodesRemoved(TreeModelEvent e)
Invoked after layers have been removed from the tree. |
void |
treeStructureChanged(TreeModelEvent e)
Invoked after the tree has drastically changed structure from a given node down. |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public IlvMapLegend()
IlvMapLegend.
| Method Detail |
|---|
public void setView(IlvManagerView v)
IlvManagerView seen by this legend. The list of layers
displayed by the legend is found on the IlvMapLayerTreeModel of
the IlvMapLayerTreeProperty attached to the manager associated with the
view.
v - The IlvManagerView to attach.public IlvManagerView getView()
IlvManagerView attached to this legend.public void treeNodesChanged(TreeModelEvent e)
treeNodesChanged in interface TreeModelListenerTreeModelListener.treeNodesChanged(javax.swing.event.TreeModelEvent)public void treeNodesInserted(TreeModelEvent e)
treeNodesInserted in interface TreeModelListenerTreeModelListener.treeNodesInserted(javax.swing.event.TreeModelEvent)public void treeNodesRemoved(TreeModelEvent e)
treeNodesRemoved in interface TreeModelListenerTreeModelListener.treeNodesRemoved(javax.swing.event.TreeModelEvent)public void treeStructureChanged(TreeModelEvent e)
treeStructureChanged in interface TreeModelListenerDefault implementation does nothing.public String getDescription(IlvMapLayer layer)
layer - The layer whose description is returned.
public boolean isDoRasters()
public void setDoRasters(boolean dor)
dor - indicates whether raster layers should be shown in legend.
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||