LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view.win.swing
Class LySwingMapNode

java.lang.Object
  extended by leon.view.graphic.LyGraphicalObject
      extended by leon.view.win.swing.LySwingObject
          extended by leon.view.win.swing.LySwingMapObject
              extended by leon.view.win.swing.LySwingMapNode
All Implemented Interfaces:
LyGetIdInterface, LyGraphicalComponent, LyGraphicalMapNode, LyViewComponent, LyFreeInterface, LySetHiddenInterface, LySetImageInterface, LySetLabelInterface, LySetSelectedInterface, LySwingComponent, leon.view.win.swing.map.LyLayElement, leon.view.win.swing.map.LyMapElement

public class LySwingMapNode
extends LySwingMapObject
implements LyGraphicalMapNode, leon.view.win.swing.map.LyLayElement

This class implements the Map node object (as described in the dtd) for swing viewer.

See Also:
LyMapNode

Field Summary
static java.lang.String __VERSION
           
static int DEFAULT_SIZE
          Default size of the image node.
 
Fields inherited from interface leon.view.win.swing.map.LyMapElement
NORMAL_MODE, REDUCED_MODE
 
Constructor Summary
LySwingMapNode(LyMapNode mapNode)
          Class constructor of a Map node object for the Swing target.
 
Method Summary
 void draw(leon.view.win.swing.map.LyAbstractMapComponentManager map, java.awt.Graphics g, int mode)
          (non-Javadoc).
 void drawInViewer(leon.view.win.swing.map.LyAbstractMapComponentManager map, java.awt.Graphics g)
          (non-Javadoc).
 void free()
          Free the map node.
 leon.view.win.swing.map.LyMapNodeBeanInterface getBean()
          Build the bean associated to this node.
 java.lang.String getBottomLabel()
          Implementation of LyMapElement.
 java.awt.Dimension getBottomLabelSize(leon.view.win.swing.map.LyAbstractMapComponentManager map, java.awt.Graphics g)
          Returns the dimension of the bottom label part of the node.
 java.awt.Dimension getBottomLabelSize(leon.view.win.swing.map.LyAbstractMapComponentManager map, java.awt.Graphics g, boolean recalculate)
          Returns the dimension of the bottom label part of the node.
 Ly3DBox getBoundingBox(leon.view.win.swing.map.LyAbstractMapComponentManager map)
          (non-Javadoc).
 java.awt.Rectangle getBoundingRectangle(leon.view.win.swing.map.LyAbstractMapComponentManager map)
          (non-Javadoc).
 java.awt.Rectangle getBoundingRectangleOfChild(leon.view.win.swing.map.LyAbstractMapComponentManager map, double alpha)
          Returns the rectangle of the largest child node.
 LyPoint getCenter()
          Returns the center of the node.
 java.util.Vector<LySwingMapNode> getChildren()
          Returns all children of the node.
 java.awt.Shape getClippingArea(leon.view.win.swing.map.LyAbstractMapComponentManager map, java.awt.Image image)
          Gets the clipping area of this node.
 java.awt.Color getCrossColor(LyEnvironment environment)
          Returns the cross color of the node or null if there is none.
 java.awt.Color getExternalFrameColor(LyEnvironment environment)
          Returns the external frame color of the node or null if there is none.
 java.awt.Color getFontColor(LyEnvironment environment)
          Returns the font color of the node.
 java.lang.String getId()
          Return current component identification (LyGetIdInterface interface).
 java.awt.Image getImage(LyEnvironment environment)
          Returns the image of the node in the specified environment.
 java.awt.Image[] getImages()
          Returns the image and small image of this node.
 java.awt.Dimension getImageSize(java.awt.Component comp)
          Returns the dimension of the image part of the node.
 java.awt.Dimension getImageSize(java.awt.Component comp, boolean recalculate)
          Returns the dimension of the image part of the node.
 java.awt.Color getInactiveSelectedColor(LyEnvironment environment)
          Returns the inactive selected color of the node.
 java.awt.Color getInternalFrameColor(LyEnvironment environment)
          Returns the internal frame color of the node or null if there is none.
 java.lang.String getLabel()
          (non-Javadoc).
 java.awt.Dimension getLabelSize(leon.view.win.swing.map.LyAbstractMapComponentManager map, java.awt.Graphics g)
          Returns the dimension of the label part of the node.
 java.awt.Dimension getLabelSize(leon.view.win.swing.map.LyAbstractMapComponentManager map, java.awt.Graphics g, boolean recalculate)
          Returns the dimension of the label part of the node.
 int getLayer()
          (non-Javadoc).
 java.lang.String getLayoutInfo()
          Returns the layout info of the node.
 java.lang.String getLeftLabel()
          Implementation of LyMapElement.
 java.awt.Dimension getLeftLabelSize(leon.view.win.swing.map.LyAbstractMapComponentManager map, java.awt.Graphics g)
          Returns the dimension of the left label part of the node.
 java.awt.Dimension getLeftLabelSize(leon.view.win.swing.map.LyAbstractMapComponentManager map, java.awt.Graphics g, boolean recalculate)
          Returns the dimension of the left label part of the node.
 LyMapNode.Style getMapNodeStyle()
          getMapNodeStyle
 java.awt.Color getNodeColor(LyEnvironment environment)
          Returns the current node color or null if there is none.
 int getNumberOfChildren()
          Returns the children count.
 java.awt.Point getOffset()
          Returns the shift between the node and his parent.
 java.awt.Color getOutlineColor(LyEnvironment environment)
          Returns the outline color of the node.
 LySwingMapNode getParentNode()
          Returns the parent node of the node.
 java.lang.String getRightLabel()
          Implementation of LyMapElement.
 java.awt.Dimension getRightLabelSize(leon.view.win.swing.map.LyAbstractMapComponentManager map, java.awt.Graphics g)
          Returns the dimension of the right label part of the node.
 java.awt.Dimension getRightLabelSize(leon.view.win.swing.map.LyAbstractMapComponentManager map, java.awt.Graphics g, boolean recalculate)
          Returns the dimension of the right label part of the node.
 java.awt.Color getSelectedColor(LyEnvironment environment)
          Returns the selected color of the node.
 java.awt.Image getSmallImage(LyEnvironment environment)
          Returns the small image of the node or null if there is none.
 java.awt.Dimension getSymbolSize(java.awt.Component comp)
          Returns the dimension of the image part of the node (without the frame).
 java.lang.String getTooltip()
          (non-Javadoc).
 java.lang.String getTopLabel()
          Implementation of LyMapElement.
 java.awt.Dimension getTopLabelSize(leon.view.win.swing.map.LyAbstractMapComponentManager map, java.awt.Graphics g)
          Returns the dimension of the top label part of the node.
 java.awt.Dimension getTopLabelSize(leon.view.win.swing.map.LyAbstractMapComponentManager map, java.awt.Graphics g, boolean recalculate)
          Returns the dimension of the top label part of the node.
 boolean isAtPosition(leon.view.win.swing.map.LyAbstractMapComponentManager map, java.awt.Graphics g, int x, int y)
          (non-Javadoc).
 boolean isHidden()
          Indicates whether this element is hidden or not.
 boolean isLabelZoomable()
          Return true is displayed label should be zoom dependant.
 boolean isMovable()
          Checks if value of attribute movable is set.
 boolean isOverlay()
          A map node has always the overlay property.
 boolean isSelected()
          (non-Javadoc).
 boolean isSensitive()
          (non-Javadoc).
 void setBottomLabel(java.lang.String label)
          Sets attribute bottom label to the given value.
 void setChild(LySwingMapNode node)
          Sets the child node of this node if the child element is not already in the children list.
 void setColorFrameExt(java.lang.String colorFrameExt)
          Updates attribute colorFrameExt to the given value.
 void setColorFrameInt(java.lang.String colorFrameInt)
          Updates attribute colorFrameInt to the given value.
 void setFontColor(java.lang.String labelColor)
          Updates attribute fontColor to the given value.
 void setHidden(boolean hidden)
          Updates attribute hidden to the given value.
 void setImage(java.lang.String image)
          Sets this node image name to null to get rid of cache.
 void setLabel(java.lang.String label)
          Sets the label attribute and its offset to null in order to get rid of cache.
 void setLayer(int layer)
          (non-Javadoc).
 void setLeftLabel(java.lang.String label)
          Sets attribute left label to the given value.
 void setMovable(boolean movable)
          Initializes attribute movable to the given value.
 void setOffset(java.awt.Point offset)
          Sets the offset between this component and its parent.
 void setParentNode(LySwingMapNode node)
          Sets the parent node of this node.
 void setPosition(LyPoint point3D)
          (non-Javadoc).
 void setRightLabel(java.lang.String label)
          Sets attribute right label to the given value.
 void setSelected(boolean selected)
          Updates attribute selected to the given value.
 void setTooltip(java.lang.String tooltip)
          Do not set tooltips of a map node as it is not used.
 void setTopLabel(java.lang.String label)
          Sets attribute top label to the given value.
 void setViewerImage(java.lang.String viewerImage)
          Updates attribute viewerImage to the given value.
 void setX(float x)
          Updates attribute x to the given value.
 void setY(float y)
          Updates attribute y to the given value.
 void setZ(float z)
          Updates attribute z to the given value.
 java.lang.String toString()
           
 void translate(float dx, float dy, float dz)
          (non-Javadoc).
 
Methods inherited from class leon.view.win.swing.LySwingObject
getBounds, getChildrenBounds, getComponent, getDefaultFrame
 
Methods inherited from class leon.view.graphic.LyGraphicalObject
expand, getController, getEnv, getEnvironment, getIdCode, getIntResource, getMessage, getMessage, getResource, getString, getString, getString, getViewComponent, getViewManager, isFreed, isFreeing, isImageAnimated, processDemand, processDemand, testResource, translate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface leon.view.graphic.LyGraphicalComponent
getViewComponent
 

Field Detail

__VERSION

public static final java.lang.String __VERSION
See Also:
Constant Field Values

DEFAULT_SIZE

public static int DEFAULT_SIZE
Default size of the image node.

Constructor Detail

LySwingMapNode

public LySwingMapNode(LyMapNode mapNode)
Class constructor of a Map node object for the Swing target.

Parameters:
mapNode - a MAP_NODE component defined for every type of view targets. This map node is initialized for the swing view.
Method Detail

getImages

public java.awt.Image[] getImages()
Returns the image and small image of this node.

Specified by:
getImages in interface leon.view.win.swing.map.LyMapElement
Returns:
the list of images used in the node
See Also:
setImage(String), LyMapElement.getImages()

getImage

public java.awt.Image getImage(LyEnvironment environment)
Returns the image of the node in the specified environment.

Parameters:
environment - the environment
Returns:
the image of the node
See Also:
setImage(String)

getSmallImage

public java.awt.Image getSmallImage(LyEnvironment environment)
Returns the small image of the node or null if there is none.

Parameters:
environment - the environment is not needed to find the small image. This parameter is not used in this implementation.
Returns:
the small image of the node

getNodeColor

public java.awt.Color getNodeColor(LyEnvironment environment)
Returns the current node color or null if there is none.

Parameters:
environment - the environment is not needed to find this node color. This parameter is not used in this implementation.
Returns:
the color of the current node

getCrossColor

public java.awt.Color getCrossColor(LyEnvironment environment)
Returns the cross color of the node or null if there is none.

Parameters:
environment - the environment is not needed to find this node cross color. This parameter is not used in this implementation.
Returns:
the cross color of the node

getInternalFrameColor

public java.awt.Color getInternalFrameColor(LyEnvironment environment)
Returns the internal frame color of the node or null if there is none.

Parameters:
environment - the environment is not needed to find this node's internal frame color. This parameter is not used in this implementation.
Returns:
the internal frame color

getExternalFrameColor

public java.awt.Color getExternalFrameColor(LyEnvironment environment)
Returns the external frame color of the node or null if there is none.

Parameters:
environment - the environment is not needed to find this node's external frame color. This parameter is not used in this implementation.
Returns:
the external frame color

getSelectedColor

public java.awt.Color getSelectedColor(LyEnvironment environment)
Returns the selected color of the node.

Parameters:
environment - the environment is not needed to find the selected color of this node. This parameter is not used in this implementation.
Returns:
the selected color

getInactiveSelectedColor

public java.awt.Color getInactiveSelectedColor(LyEnvironment environment)
Returns the inactive selected color of the node.

Parameters:
environment - the environment is not needed to find the inactive selected color of this node. This parameter is not used in this implementation.
Returns:
the inactive selected color

getOutlineColor

public java.awt.Color getOutlineColor(LyEnvironment environment)
Returns the outline color of the node.

Parameters:
environment - the environment is not needed to find the outline color of this node. This parameter is not used in this implementation.
Returns:
the outline color

getFontColor

public java.awt.Color getFontColor(LyEnvironment environment)
Returns the font color of the node.

Parameters:
environment - the environment is not needed to find the font color of this node. This parameter is not used in this implementation.
Returns:
the font color

getImageSize

public java.awt.Dimension getImageSize(java.awt.Component comp)
Returns the dimension of the image part of the node.

Parameters:
comp - the map
Returns:
the dimension of the image part of the node
See Also:
getImageSize(Component, boolean)

getSymbolSize

public java.awt.Dimension getSymbolSize(java.awt.Component comp)
Returns the dimension of the image part of the node (without the frame).

Parameters:
comp - the map
Returns:
the dimension of the image part of the node (without the frame)

getImageSize

public java.awt.Dimension getImageSize(java.awt.Component comp,
                                       boolean recalculate)
Returns the dimension of the image part of the node.

Parameters:
comp - the map
recalculate - Indicates if the size must be recalculated.
Returns:
the dimension of the image part of the node

getLabelSize

public java.awt.Dimension getLabelSize(leon.view.win.swing.map.LyAbstractMapComponentManager map,
                                       java.awt.Graphics g)
Returns the dimension of the label part of the node.

Parameters:
map - the map representing the node
g - the graphics context
Returns:
the dimension of the label part of the node
See Also:
#getLabelSize(Graphics, boolean)

getLabelSize

public java.awt.Dimension getLabelSize(leon.view.win.swing.map.LyAbstractMapComponentManager map,
                                       java.awt.Graphics g,
                                       boolean recalculate)
Returns the dimension of the label part of the node.

Parameters:
map - the map representing the node
g - the graphics context
recalculate - indicates if the size must be recalculated
Returns:
the dimension of the label part of the node

getLeftLabelSize

public java.awt.Dimension getLeftLabelSize(leon.view.win.swing.map.LyAbstractMapComponentManager map,
                                           java.awt.Graphics g)
Returns the dimension of the left label part of the node.

Parameters:
map - the map representing the node
g - the graphics context

getLeftLabelSize

public java.awt.Dimension getLeftLabelSize(leon.view.win.swing.map.LyAbstractMapComponentManager map,
                                           java.awt.Graphics g,
                                           boolean recalculate)
Returns the dimension of the left label part of the node.

Parameters:
map - the map representing the node
g - the graphics context
recalculate - indicates if the size must be recalculated

getRightLabelSize

public java.awt.Dimension getRightLabelSize(leon.view.win.swing.map.LyAbstractMapComponentManager map,
                                            java.awt.Graphics g)
Returns the dimension of the right label part of the node.

Parameters:
map - the map representing the node
g - the graphics context

getRightLabelSize

public java.awt.Dimension getRightLabelSize(leon.view.win.swing.map.LyAbstractMapComponentManager map,
                                            java.awt.Graphics g,
                                            boolean recalculate)
Returns the dimension of the right label part of the node.

Parameters:
map - the map representing the node
g - the graphics context
recalculate - indicates if the size must be recalculated

getTopLabelSize

public java.awt.Dimension getTopLabelSize(leon.view.win.swing.map.LyAbstractMapComponentManager map,
                                          java.awt.Graphics g)
Returns the dimension of the top label part of the node.

Parameters:
map - the map representing the node
g - the graphics context

getTopLabelSize

public java.awt.Dimension getTopLabelSize(leon.view.win.swing.map.LyAbstractMapComponentManager map,
                                          java.awt.Graphics g,
                                          boolean recalculate)
Returns the dimension of the top label part of the node.

Parameters:
map - the map representing the node
g - the graphics context
recalculate - indicates if the size must be recalculated

getBottomLabelSize

public java.awt.Dimension getBottomLabelSize(leon.view.win.swing.map.LyAbstractMapComponentManager map,
                                             java.awt.Graphics g)
Returns the dimension of the bottom label part of the node.

Parameters:
map - the map representing the node
g - the graphics context

getBottomLabelSize

public java.awt.Dimension getBottomLabelSize(leon.view.win.swing.map.LyAbstractMapComponentManager map,
                                             java.awt.Graphics g,
                                             boolean recalculate)
Returns the dimension of the bottom label part of the node.

Parameters:
map - the map representing the node
g - the graphics context
recalculate - indicates if the size must be recalculated

draw

public void draw(leon.view.win.swing.map.LyAbstractMapComponentManager map,
                 java.awt.Graphics g,
                 int mode)
(non-Javadoc).

Specified by:
draw in interface leon.view.win.swing.map.LyMapElement
Parameters:
map - the map to draw
g - the graphical context
mode - the drawing mode
See Also:
LyMapElement.draw(leon.view.win.swing.map.LyAbstractMapComponentManager, java.awt.Graphics, int)

drawInViewer

public void drawInViewer(leon.view.win.swing.map.LyAbstractMapComponentManager map,
                         java.awt.Graphics g)
(non-Javadoc).

Specified by:
drawInViewer in interface leon.view.win.swing.map.LyMapElement
Parameters:
map - the map
g - the graphical context
See Also:
LyMapElement.drawInViewer(leon.view.win.swing.map.LyAbstractMapComponentManager, java.awt.Graphics)

getBoundingBox

public Ly3DBox getBoundingBox(leon.view.win.swing.map.LyAbstractMapComponentManager map)
(non-Javadoc).

Specified by:
getBoundingBox in interface leon.view.win.swing.map.LyMapElement
Parameters:
map - the map component to retrieve its bounding box
Returns:
the bounding box of the specified elements in the 3D space
See Also:
LyMapElement.getBoundingBox(leon.view.win.swing.map.LyAbstractMapComponentManager)

getBoundingRectangle

public java.awt.Rectangle getBoundingRectangle(leon.view.win.swing.map.LyAbstractMapComponentManager map)
(non-Javadoc).

Specified by:
getBoundingRectangle in interface leon.view.win.swing.map.LyMapElement
Parameters:
map - the map component to retrieve its bounding rectangle
Returns:
the bounding rectangle of the specified elements in the 2D plan
See Also:
LyMapElement.getBoundingRectangle(leon.view.win.swing.map.LyAbstractMapComponentManager)

getClippingArea

public java.awt.Shape getClippingArea(leon.view.win.swing.map.LyAbstractMapComponentManager map,
                                      java.awt.Image image)
Gets the clipping area of this node.

Specified by:
getClippingArea in interface leon.view.win.swing.map.LyMapElement
Parameters:
map - the map manager
image - the image to clip. This image is not used in this implementation.
Returns:
the bounding rectangle of the map manager.
See Also:
getBoundingRectangle(LyAbstractMapComponentManager), LyMapElement.getClippingArea(LyAbstractMapComponentManager, Image)

getBoundingRectangleOfChild

public java.awt.Rectangle getBoundingRectangleOfChild(leon.view.win.swing.map.LyAbstractMapComponentManager map,
                                                      double alpha)
Returns the rectangle of the largest child node.

Parameters:
map - the map representing the node
alpha - angle of node points alignment
Returns:
the rectangle of the largest child node

getLayer

public int getLayer()
(non-Javadoc).

Specified by:
getLayer in interface leon.view.win.swing.map.LyMapElement
Returns:
the layer number
See Also:
LyMapElement.getLayer()

getLabel

public java.lang.String getLabel()
(non-Javadoc).

Specified by:
getLabel in interface leon.view.win.swing.map.LyMapElement
Returns:
the label text
See Also:
LyMapElement.getLabel()

getLeftLabel

public java.lang.String getLeftLabel()
Implementation of LyMapElement.


getRightLabel

public java.lang.String getRightLabel()
Implementation of LyMapElement.


getTopLabel

public java.lang.String getTopLabel()
Implementation of LyMapElement.


getBottomLabel

public java.lang.String getBottomLabel()
Implementation of LyMapElement.


setLabel

public void setLabel(java.lang.String label)
Sets the label attribute and its offset to null in order to get rid of cache.

Specified by:
setLabel in interface LyGraphicalMapNode
Specified by:
setLabel in interface LySetLabelInterface
Parameters:
label - This attribute is not used in this implementation.
See Also:
getLabel()

setLeftLabel

public void setLeftLabel(java.lang.String label)
Sets attribute left label to the given value.

Specified by:
setLeftLabel in interface LyGraphicalMapNode
Parameters:
label - New value of left label

setRightLabel

public void setRightLabel(java.lang.String label)
Sets attribute right label to the given value.

Specified by:
setRightLabel in interface LyGraphicalMapNode
Parameters:
label - New value of right label

setTopLabel

public void setTopLabel(java.lang.String label)
Sets attribute top label to the given value.

Specified by:
setTopLabel in interface LyGraphicalMapNode
Parameters:
label - New value of top label

setBottomLabel

public void setBottomLabel(java.lang.String label)
Sets attribute bottom label to the given value.

Specified by:
setBottomLabel in interface LyGraphicalMapNode
Parameters:
label - New value of bottom label

getTooltip

public java.lang.String getTooltip()
(non-Javadoc).

Specified by:
getTooltip in interface leon.view.win.swing.map.LyMapElement
Returns:
the tooltip text
See Also:
LyMapElement.getTooltip()

setTooltip

public void setTooltip(java.lang.String tooltip)
Do not set tooltips of a map node as it is not used.

Parameters:
tooltip - This attribute is not used in this implementation.
See Also:
getTooltip()

isAtPosition

public boolean isAtPosition(leon.view.win.swing.map.LyAbstractMapComponentManager map,
                            java.awt.Graphics g,
                            int x,
                            int y)
(non-Javadoc).

Specified by:
isAtPosition in interface leon.view.win.swing.map.LyMapElement
Parameters:
map - the map
g - the graphical context
x - the x coordinate
y - the y coordinate
Returns:
true if this element is at the specified point in the map, false otherwise
See Also:
LyMapElement.isAtPosition(leon.view.win.swing.map.LyAbstractMapComponentManager, java.awt.Graphics, int, int)

getId

public java.lang.String getId()
Description copied from interface: LyGetIdInterface
Return current component identification (LyGetIdInterface interface).

Specified by:
getId in interface LyGetIdInterface

setSelected

public void setSelected(boolean selected)
Description copied from interface: LyGraphicalMapNode
Updates attribute selected to the given value.

Specified by:
setSelected in interface LyGraphicalMapNode
Specified by:
setSelected in interface LySetSelectedInterface
Specified by:
setSelected in interface leon.view.win.swing.map.LyMapElement
Parameters:
selected - Boolean indicating if attribute selected is set or unset.

isHidden

public boolean isHidden()
Description copied from interface: leon.view.win.swing.map.LyMapElement
Indicates whether this element is hidden or not.

Specified by:
isHidden in interface leon.view.win.swing.map.LyMapElement
Returns:
true if this element is hidden, false otherwise

setHidden

public void setHidden(boolean hidden)
Description copied from interface: LyGraphicalMapNode
Updates attribute hidden to the given value.

Specified by:
setHidden in interface LyGraphicalMapNode
Specified by:
setHidden in interface LySetHiddenInterface
Parameters:
hidden - Boolean indicating if attribute hidden is set or unset.

isMovable

public boolean isMovable()
Checks if value of attribute movable is set.

Returns:
true if movable is set, false otherwise.

setMovable

public void setMovable(boolean movable)
Initializes attribute movable to the given value.

Parameters:
movable - Boolean indicating if attribute movable is set or unset.

setImage

public void setImage(java.lang.String image)
Sets this node image name to null to get rid of cache.

Specified by:
setImage in interface LyGraphicalMapNode
Specified by:
setImage in interface LySetImageInterface
Parameters:
image - This attribute is not used in this implementation.
See Also:
getImage(LyEnvironment), LySetImageInterface.setImage(java.lang.String)

setX

public void setX(float x)
Description copied from interface: LyGraphicalMapNode
Updates attribute x to the given value.

Specified by:
setX in interface LyGraphicalMapNode
Parameters:
x - New value of x.

setY

public void setY(float y)
Description copied from interface: LyGraphicalMapNode
Updates attribute y to the given value.

Specified by:
setY in interface LyGraphicalMapNode
Parameters:
y - New value of y.

setZ

public void setZ(float z)
Description copied from interface: LyGraphicalMapNode
Updates attribute z to the given value.

Specified by:
setZ in interface LyGraphicalMapNode
Parameters:
z - New value of z.

setLayer

public void setLayer(int layer)
(non-Javadoc).

Specified by:
setLayer in interface LyGraphicalMapNode
Parameters:
layer - New value of layer.
See Also:
LyGraphicalMapNode.setLayer(int)

setColorFrameInt

public void setColorFrameInt(java.lang.String colorFrameInt)
Description copied from interface: LyGraphicalMapNode
Updates attribute colorFrameInt to the given value.

Specified by:
setColorFrameInt in interface LyGraphicalMapNode
Parameters:
colorFrameInt - New value of colorFrameInt.

setColorFrameExt

public void setColorFrameExt(java.lang.String colorFrameExt)
Description copied from interface: LyGraphicalMapNode
Updates attribute colorFrameExt to the given value.

Specified by:
setColorFrameExt in interface LyGraphicalMapNode
Parameters:
colorFrameExt - New value of colorFrameExt.

setFontColor

public void setFontColor(java.lang.String labelColor)
Description copied from interface: LyGraphicalMapNode
Updates attribute fontColor to the given value.

Specified by:
setFontColor in interface LyGraphicalMapNode
Parameters:
labelColor - New value of fontColor.

isSelected

public boolean isSelected()
(non-Javadoc).

Specified by:
isSelected in interface leon.view.win.swing.map.LyMapElement
Returns:
true if this element is selected, false otherwise
See Also:
LyMapElement.isSelected()

translate

public void translate(float dx,
                      float dy,
                      float dz)
(non-Javadoc).

Specified by:
translate in interface leon.view.win.swing.map.LyMapElement
Parameters:
dx - the x translation delta.
dy - the y translation delta.
dz - the z translation delta.
See Also:
LyMapElement.translate(float, float, float)

setPosition

public void setPosition(LyPoint point3D)
(non-Javadoc).

Specified by:
setPosition in interface leon.view.win.swing.map.LyLayElement
Parameters:
point3D - the position of the element in the 3D space.
See Also:
LyLayElement.setPosition(leon.view.LyPoint)

isOverlay

public boolean isOverlay()
A map node has always the overlay property.

Specified by:
isOverlay in interface leon.view.win.swing.map.LyMapElement
Returns:
true
See Also:
LyMapElement.isOverlay()

isSensitive

public boolean isSensitive()
(non-Javadoc).

Specified by:
isSensitive in interface leon.view.win.swing.map.LyMapElement
Returns:
true if this element is sensitive, false otherwise
See Also:
LyMapElement.isSensitive()

setOffset

public void setOffset(java.awt.Point offset)
Sets the offset between this component and its parent.

Parameters:
offset - the new value of the offset
See Also:
getOffset()

setParentNode

public void setParentNode(LySwingMapNode node)
Sets the parent node of this node.

Parameters:
node - the parent node
See Also:
getParentNode()

setChild

public void setChild(LySwingMapNode node)
Sets the child node of this node if the child element is not already in the children list.

Parameters:
node - the child node
See Also:
getChildren()

getCenter

public LyPoint getCenter()
Returns the center of the node.

Returns:
the center of the node

getOffset

public java.awt.Point getOffset()
Returns the shift between the node and his parent.

Returns:
the offset between the node and its parent
See Also:
setOffset(Point)

getParentNode

public LySwingMapNode getParentNode()
Returns the parent node of the node.

Returns:
the parent node
See Also:
setParentNode(LySwingMapNode)

getChildren

public java.util.Vector<LySwingMapNode> getChildren()
Returns all children of the node.

Returns:
the children of the node
See Also:
setChild(LySwingMapNode)

getNumberOfChildren

public int getNumberOfChildren()
Returns the children count.

Returns:
the number of children of the node

getLayoutInfo

public java.lang.String getLayoutInfo()
Returns the layout info of the node.

Returns:
the layout info

getBean

public leon.view.win.swing.map.LyMapNodeBeanInterface getBean()
Build the bean associated to this node.

Returns:
the bean or null if none

free

public void free()
Free the map node.

Specified by:
free in interface LyGraphicalComponent
Specified by:
free in interface LyFreeInterface
Overrides:
free in class LyGraphicalObject
See Also:
LyFreeInterface.free()

getMapNodeStyle

public LyMapNode.Style getMapNodeStyle()
getMapNodeStyle

Returns:

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

isLabelZoomable

public boolean isLabelZoomable()
Return true is displayed label should be zoom dependant.

Returns:
true is label are zoomable

setViewerImage

public void setViewerImage(java.lang.String viewerImage)
Description copied from interface: LyGraphicalMapNode
Updates attribute viewerImage to the given value.

Specified by:
setViewerImage in interface LyGraphicalMapNode
Parameters:
viewerImage - New value of viewerImage.

(c) January 2013 - W4 S.A.

Website: W4 S.A., contact us: support@w4global.com