LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view.web.struts
Class LyStrutsMapNode

java.lang.Object
  extended by leon.view.graphic.LyGraphicalObject
      extended by leon.view.web.LyWebObject
          extended by leon.view.web.struts.LyStrutsMapObject
              extended by leon.view.web.struts.LyStrutsMapNode
All Implemented Interfaces:
LyGetIdInterface, LyGraphicalComponent, LyGraphicalMapNode, LyViewComponent, LyFreeInterface, LySetHiddenInterface, LySetImageInterface, LySetLabelInterface, LySetSelectedInterface, LyWebComponent, leon.view.web.struts.map.LyStrutsLayElement, leon.view.web.struts.map.LyStrutsMapElement

public class LyStrutsMapNode
extends LyStrutsMapObject
implements LyGraphicalMapNode, leon.view.web.struts.map.LyStrutsLayElement, leon.view.web.struts.map.LyStrutsMapElement

This class implements the Map Node object (as described in the dtd) for Struts viewer.

MAP_NODE: Map Node
Nodes allow to define elements that can be placed at any location on the map and that can be moved. By using a special positioning manager, it is possible to place these nodes according to a predefined geometry (matrix, circle, ellipse, line,...). When zooming on the map, a node keeps always the same aspect unlike an element of image type.

See Also:
LyMap

Field Summary
static java.lang.String __VERSION
           
static int DEFAULT_SIZE
          Default size.
 
Fields inherited from class leon.view.web.LyWebObject
WEB_COMPONENT_ID, WEB_CONTROLLER_ID, WEB_SESSION_ID
 
Fields inherited from interface leon.view.web.struts.map.LyStrutsMapElement
DRAW_MODE_NORMAL, DRAW_MODE_REDUCED
 
Constructor Summary
LyStrutsMapNode(LyMapNode mapNode)
          Class constructor of a Map object for the struts target.
 
Method Summary
 void draw(leon.view.web.struts.map.LyStrutsMapCanvas map, java.awt.Graphics g, int mode)
          (non-Javadoc).
 void drawHtml(leon.view.web.struts.map.LyStrutsMapCanvas map, LyWebPageWriter pw)
          (non-Javadoc).
 void drawInViewer(leon.view.web.struts.map.LyStrutsMapCanvas map, java.awt.Graphics g)
          (non-Javadoc).
 void free()
          Free resources allocated to this component.
 java.lang.String getBottomLabel()
          (non-Javadoc).
 java.awt.Dimension getBottomLabelSize(java.awt.Graphics g)
          Returns the dimension of the bottom label part of the node.
 java.awt.Dimension getBottomLabelSize(java.awt.Graphics g, boolean recalculate)
          Returns the dimension of the bottom label part of the node.
 Ly3DBox getBoundingBox(leon.view.web.struts.map.LyStrutsMapCanvas map)
          (non-Javadoc).
 java.awt.Rectangle getBoundingRectangle(leon.view.web.struts.map.LyStrutsMapCanvas map)
          (non-Javadoc).
 LyPoint getCenter()
          Gets the center of the node.
 java.awt.Shape getClippingArea(leon.view.web.struts.map.LyStrutsMapCanvas map, java.awt.Image image)
          (non-Javadoc).
 java.awt.Color getCrossColor()
          Gets the cross color.
 java.awt.Color getExternalFrameColor()
          Gets the external frame color.
 java.lang.String getId()
          (non-Javadoc).
 java.awt.Image getImage()
          Gets the image of the node.
 java.awt.Image[] getImages()
          (non-Javadoc).
 int[] getImageSize()
          Gets the dimension of the image part of the node.
 java.awt.Dimension getImageSize(java.awt.Component comp)
          Gets the dimension of the image part of the node.
 java.awt.Dimension getImageSize(java.awt.Component comp, boolean recalculate)
          Gets the dimension of the image part of the node.
 java.awt.Color getInternalFrameColor()
          Gets the internal frame color.
 java.lang.String getLabel()
          (non-Javadoc).
 java.awt.Dimension getLabelSize(java.awt.Graphics g)
          Gets the dimension of the label part of the node.
 java.awt.Dimension getLabelSize(java.awt.Graphics g, boolean recalculate)
          Gets the dimension of the label part of the node.
 int getLayer()
          (non-Javadoc).
 java.lang.String getLayoutInfo()
          Gets the layout info of the node.
 java.lang.String getLeftLabel()
          (non-Javadoc).
 java.awt.Dimension getLeftLabelSize(java.awt.Graphics g)
          Returns the dimension of the left label part of the node.
 java.awt.Dimension getLeftLabelSize(java.awt.Graphics g, boolean recalculate)
          Returns the dimension of the left label part of the node.
 java.awt.Rectangle getNodeBoundingRectangle(leon.view.web.struts.map.LyStrutsMapCanvas map)
          Gets the node bounding rectangle.
 java.awt.Color getNodeColor()
          Gets the node color.
 java.awt.Color getOutlineColor()
          Gets the outline color.
 LyStrutsMapNode getParentNode()
          Gets the parent node of the node.
 java.lang.String getRightLabel()
          (non-Javadoc).
 java.awt.Dimension getRightLabelSize(java.awt.Graphics g)
          Returns the dimension of the right label part of the node.
 java.awt.Dimension getRightLabelSize(java.awt.Graphics g, boolean recalculate)
          Returns the dimension of the right label part of the node.
 java.awt.Rectangle getSelectBoundingRectangle(leon.view.web.struts.map.LyStrutsMapCanvas map)
          Gets the bounding rectangle where the checkbox can be selected.
 java.awt.Image getSmallImage()
          Gets the small image of the node.
 java.awt.Dimension getSymbolSize(java.awt.Component comp)
          Gets the dimension of the image part of the node (without the frame) if the style of the node is leon.view.LyMapNode#Style.IMAGE, the default size otherwise.
 java.lang.String getTooltip()
          (non-Javadoc).
 java.lang.String getTopLabel()
          (non-Javadoc).
 java.awt.Dimension getTopLabelSize(java.awt.Graphics g)
          Returns the dimension of the top label part of the node.
 java.awt.Dimension getTopLabelSize(java.awt.Graphics g, boolean recalculate)
          Returns the dimension of the top label part of the node.
 boolean isAtPosition(leon.view.web.struts.map.LyStrutsMapCanvas map, java.awt.Graphics g, int x, int y)
          (non-Javadoc).
 boolean isDrawableInterface(leon.view.web.struts.map.LyStrutsMapCanvas map)
          (non-Javadoc).
 boolean isHidden()
          (non-Javadoc).
 boolean isOverlay()
          (non-Javadoc).
 boolean isSelected()
          (non-Javadoc).
 boolean isSensitive()
          (non-Javadoc).
 void refresh()
          Refresh map containing this map link.
 void resetPosition()
          Generates the Javascript code that resets the position of the element.
 java.lang.String saveImage(java.awt.Image image, java.lang.String filename)
          Saves the given image with the given file name and return the image path if save is successful.
 void setBottomLabel(java.lang.String label)
          (non-Javadoc).
 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)
          (non-Javadoc).
 void setImage(java.lang.String image)
          (non-Javadoc).
 void setLabel(java.lang.String label)
          (non-Javadoc).
 void setLayer(int layer)
          (non-Javadoc).
 void setLeftLabel(java.lang.String label)
          (non-Javadoc).
 void setParentNode(LyStrutsMapNode node)
          Sets the parent node.
 void setPosition(LyPoint point3D)
          (non-Javadoc).
 void setRightLabel(java.lang.String label)
          (non-Javadoc).
 void setSelected(boolean selected)
          (non-Javadoc).
 void setTooltip(java.lang.String tooltip)
          Sets attribute tooltip to the given value.
 void setTopLabel(java.lang.String label)
          (non-Javadoc).
 void setViewerImage(java.lang.String viewerImage)
          Updates attribute viewerImage to the given value.
 void setX(float x)
          (non-Javadoc).
 void setY(float y)
          (non-Javadoc).
 void setZ(float z)
          (non-Javadoc).
 void translate(float dx, float dy, float dz)
          (non-Javadoc).
 void writeHtml(LyWebPageWriter pw)
          (non-Javadoc).
 
Methods inherited from class leon.view.web.struts.LyStrutsMapObject
getColor, getFont, getHexString, getImage
 
Methods inherited from class leon.view.web.LyWebObject
addFileScript, decodeUrl, displayUpPage, encodeUrl, encodeUrlXhtml, expandUrl, getDisabledImageUrl, getFontSize, getFontString, getFontString, getFontString, getHexColor, getHexColor, getHtmlEntitiesString, getHtmlString, getImageSize, getImageSize, getImageUrl, getJavascriptString, getLastFrameName, getLyFont, getMessage, getRootUrl, getRootURL, getScrollHeightForSplitter, getUrl, getWebViewManager, replaceUrl, replaceUrl, setUpdating, updateRefreshInfo, writeJson
 
Methods inherited from class leon.view.graphic.LyGraphicalObject
expand, getBounds, getChildrenBounds, getController, getEnv, getEnvironment, getIdCode, getIntResource, 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, toString, 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.

Constructor Detail

LyStrutsMapNode

public LyStrutsMapNode(LyMapNode mapNode)
Class constructor of a Map object for the struts target.

Parameters:
map - the generic Map defined for every type of view targets.
Method Detail

free

public void free()
Description copied from class: LyGraphicalObject
Free resources allocated to this component.

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

drawHtml

public void drawHtml(leon.view.web.struts.map.LyStrutsMapCanvas map,
                     LyWebPageWriter pw)
(non-Javadoc).

Specified by:
drawHtml in interface leon.view.web.struts.map.LyStrutsMapElement
Parameters:
map - the map where the element must be drawn
pw - the page writer
See Also:
LyStrutsMapElement.drawHtml(leon.view.web.struts.map.LyStrutsMapCanvas, leon.view.web.LyWebPageWriter)

setX

public void setX(float x)
(non-Javadoc).

Specified by:
setX in interface LyGraphicalMapNode
Parameters:
x - New value of x.
See Also:
LyGraphicalMapNode.setX(float)

setY

public void setY(float y)
(non-Javadoc).

Specified by:
setY in interface LyGraphicalMapNode
Parameters:
y - New value of y.
See Also:
LyGraphicalMapNode.setY(float)

setZ

public void setZ(float z)
(non-Javadoc).

Specified by:
setZ in interface LyGraphicalMapNode
Parameters:
z - New value of z.
See Also:
LyGraphicalMapNode.setZ(float)

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)

resetPosition

public void resetPosition()
Generates the Javascript code that resets the position of the element.

Specified by:
resetPosition in interface leon.view.web.struts.map.LyStrutsMapElement

setPosition

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

Specified by:
setPosition in interface leon.view.web.struts.map.LyStrutsLayElement
Parameters:
point3D - the three dimensions point
See Also:
LyStrutsLayElement.setPosition(leon.view.LyPoint)

draw

public void draw(leon.view.web.struts.map.LyStrutsMapCanvas map,
                 java.awt.Graphics g,
                 int mode)
(non-Javadoc).

Specified by:
draw in interface leon.view.web.struts.map.LyStrutsMapElement
Parameters:
map - the map
g - the graphical context
mode - drawing mode
See Also:
LyStrutsMapElement.draw(leon.view.web.struts.map.LyStrutsMapCanvas, java.awt.Graphics, int)

drawInViewer

public void drawInViewer(leon.view.web.struts.map.LyStrutsMapCanvas map,
                         java.awt.Graphics g)
(non-Javadoc).

Specified by:
drawInViewer in interface leon.view.web.struts.map.LyStrutsMapElement
Parameters:
map - the map
g - the graphical context
See Also:
leon.view.web.struts.map.LyStrutsMapElement#drawInViewer(leon.view.web.struts.map.LyStrutsMapCanvas, java.awt.Graphics, int)

saveImage

public java.lang.String saveImage(java.awt.Image image,
                                  java.lang.String filename)
Saves the given image with the given file name and return the image path if save is successful.
The file path is : "LY_APP_DOC"/tmp/filename.gif

Parameters:
image - the image to save
filename - the file name of the image (without extention)
Returns:
return null if the image is null or if an exception occur during process, return the image path otherwise

getBoundingBox

public Ly3DBox getBoundingBox(leon.view.web.struts.map.LyStrutsMapCanvas map)
(non-Javadoc).

Specified by:
getBoundingBox in interface leon.view.web.struts.map.LyStrutsMapElement
Parameters:
map - the map
Returns:
the 3D bounding box
See Also:
LyStrutsMapElement.getBoundingBox(leon.view.web.struts.map.LyStrutsMapCanvas)

getBoundingRectangle

public java.awt.Rectangle getBoundingRectangle(leon.view.web.struts.map.LyStrutsMapCanvas map)
(non-Javadoc).

Specified by:
getBoundingRectangle in interface leon.view.web.struts.map.LyStrutsMapElement
Parameters:
map - the map
Returns:
the bounding rectangle
See Also:
LyStrutsMapElement.getBoundingRectangle(leon.view.web.struts.map.LyStrutsMapCanvas)

getNodeBoundingRectangle

public java.awt.Rectangle getNodeBoundingRectangle(leon.view.web.struts.map.LyStrutsMapCanvas map)
Gets the node bounding rectangle.

Parameters:
map - the node map
Returns:
the bounding rectangle

getSelectBoundingRectangle

public java.awt.Rectangle getSelectBoundingRectangle(leon.view.web.struts.map.LyStrutsMapCanvas map)
Gets the bounding rectangle where the checkbox can be selected.

Parameters:
map - the node map
Returns:
the bounding rectangle where the checkbox can be selected

getClippingArea

public java.awt.Shape getClippingArea(leon.view.web.struts.map.LyStrutsMapCanvas map,
                                      java.awt.Image image)
(non-Javadoc).

Specified by:
getClippingArea in interface leon.view.web.struts.map.LyStrutsMapElement
Parameters:
map - the map
image - the image
Returns:
the clipping area
See Also:
LyStrutsMapElement.getClippingArea(leon.view.web.struts.map.LyStrutsMapCanvas, java.awt.Image)

getLayer

public int getLayer()
(non-Javadoc).

Specified by:
getLayer in interface leon.view.web.struts.map.LyStrutsMapElement
Returns:
the layer
See Also:
LyStrutsMapElement.getLayer()

getLabel

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

Specified by:
getLabel in interface leon.view.web.struts.map.LyStrutsMapElement
Returns:
the label
See Also:
LyStrutsMapElement.getLabel()

getLeftLabel

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

See Also:
leon.view.graphic.LyGraphicalMapNode#getLeftLabel()

getRightLabel

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

See Also:
leon.view.graphic.LyGraphicalMapNode#getRightLabel()

getTopLabel

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

See Also:
leon.view.graphic.LyGraphicalMapNode#getTopLabel()

getBottomLabel

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

See Also:
leon.view.graphic.LyGraphicalMapNode#getBottomLabel()

getTooltip

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

Specified by:
getTooltip in interface leon.view.web.struts.map.LyStrutsMapElement
Returns:
the tooltip
See Also:
LyStrutsMapElement.getTooltip()

setTooltip

public void setTooltip(java.lang.String tooltip)
Sets attribute tooltip to the given value. This method does nothing.

Parameters:
tooltip - New value of the tooltip
See Also:
getTooltip()

isAtPosition

public boolean isAtPosition(leon.view.web.struts.map.LyStrutsMapCanvas map,
                            java.awt.Graphics g,
                            int x,
                            int y)
(non-Javadoc).

Specified by:
isAtPosition in interface leon.view.web.struts.map.LyStrutsMapElement
Parameters:
map - the map
g - the graphical context
x - the x coordonate
y - the y coordonate
Returns:
true if the point is at the (x, y) position, false otherwise
See Also:
LyStrutsMapElement.isAtPosition(leon.view.web.struts.map.LyStrutsMapCanvas, java.awt.Graphics, int, int)

getId

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

Specified by:
getId in interface LyGetIdInterface
See Also:
LyGetIdInterface.getId()

setHidden

public void setHidden(boolean hidden)
(non-Javadoc).

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

isSelected

public boolean isSelected()
(non-Javadoc).

Specified by:
isSelected in interface leon.view.web.struts.map.LyStrutsMapElement
Returns:
true is the element is selected, false otherwise
See Also:
LyStrutsMapElement.isSelected()

translate

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

Specified by:
translate in interface leon.view.web.struts.map.LyStrutsMapElement
Parameters:
dx - x translation.
dy - y translation.
dz - z translation.
See Also:
LyStrutsMapElement.translate(float, float, float)

isOverlay

public boolean isOverlay()
(non-Javadoc).

Specified by:
isOverlay in interface leon.view.web.struts.map.LyStrutsMapElement
Returns:
true is the element is overlay, false otherwise
See Also:
LyStrutsMapElement.isOverlay()

isHidden

public boolean isHidden()
(non-Javadoc).

Specified by:
isHidden in interface leon.view.web.struts.map.LyStrutsMapElement
Returns:
true is the element is hidden, false otherwise
See Also:
LyStrutsMapElement.isHidden()

isSensitive

public boolean isSensitive()
(non-Javadoc).

Specified by:
isSensitive in interface leon.view.web.struts.map.LyStrutsMapElement
Returns:
true is the element is sensitive, false otherwise
See Also:
LyStrutsMapElement.isSensitive()

setParentNode

public void setParentNode(LyStrutsMapNode node)
Sets the parent node.

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

getCenter

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

Returns:
the node center

getParentNode

public LyStrutsMapNode getParentNode()
Gets the parent node of the node.

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

getLayoutInfo

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

Returns:
the layout info of the node

writeHtml

public void writeHtml(LyWebPageWriter pw)
(non-Javadoc).

Specified by:
writeHtml in interface LyWebComponent
Parameters:
pw - the page writer
See Also:
LyWebComponent.writeHtml(leon.view.web.LyWebPageWriter)

getImages

public java.awt.Image[] getImages()
(non-Javadoc).

Specified by:
getImages in interface leon.view.web.struts.map.LyStrutsMapElement
Returns:
the list of images
See Also:
LyStrutsMapElement.getImages()

getImage

public java.awt.Image getImage()
Gets the image of the node.

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

getSmallImage

public java.awt.Image getSmallImage()
Gets the small image of the node.

Returns:
the small image of the node

getNodeColor

public java.awt.Color getNodeColor()
Gets the node color.

Returns:
the node color

getCrossColor

public java.awt.Color getCrossColor()
Gets the cross color.

Returns:
the cross color

getInternalFrameColor

public java.awt.Color getInternalFrameColor()
Gets the internal frame color.

Returns:
the internal frame color

getExternalFrameColor

public java.awt.Color getExternalFrameColor()
Gets the external frame color.

Returns:
the external frame color

getOutlineColor

public java.awt.Color getOutlineColor()
Gets the outline color.

Returns:
the internal frame color

getImageSize

public int[] getImageSize()
Gets the dimension of the image part of the node.

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

getImageSize

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

Parameters:
comp - the map of the node
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)
Gets the dimension of the image part of the node (without the frame) if the style of the node is leon.view.LyMapNode#Style.IMAGE, the default size otherwise.

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)
Gets 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(java.awt.Graphics g)
Gets the dimension of the label part of the node.

Parameters:
g - the graphics context
Returns:
the dimension of the label part of the node

getLabelSize

public java.awt.Dimension getLabelSize(java.awt.Graphics g,
                                       boolean recalculate)
Gets the dimension of the label part of the node.

Parameters:
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(java.awt.Graphics g)
Returns the dimension of the left label part of the node.

Parameters:
g - the graphics context
Returns:
the dimension of the left label part of the node

getLeftLabelSize

public java.awt.Dimension getLeftLabelSize(java.awt.Graphics g,
                                           boolean recalculate)
Returns the dimension of the left label part of the node.

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

getRightLabelSize

public java.awt.Dimension getRightLabelSize(java.awt.Graphics g)
Returns the dimension of the right label part of the node.

Parameters:
g - the graphics context
Returns:
the dimension of the right label part of the node

getRightLabelSize

public java.awt.Dimension getRightLabelSize(java.awt.Graphics g,
                                            boolean recalculate)
Returns the dimension of the right label part of the node.

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

getTopLabelSize

public java.awt.Dimension getTopLabelSize(java.awt.Graphics g)
Returns the dimension of the top label part of the node.

Parameters:
g - the graphics context
Returns:
the dimension of the top label part of the node

getTopLabelSize

public java.awt.Dimension getTopLabelSize(java.awt.Graphics g,
                                          boolean recalculate)
Returns the dimension of the top label part of the node.

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

getBottomLabelSize

public java.awt.Dimension getBottomLabelSize(java.awt.Graphics g)
Returns the dimension of the bottom label part of the node.

Parameters:
g - the graphics context
Returns:
the dimension of the bottom label part of the node

getBottomLabelSize

public java.awt.Dimension getBottomLabelSize(java.awt.Graphics g,
                                             boolean recalculate)
Returns the dimension of the bottom label part of the node.

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

isDrawableInterface

public boolean isDrawableInterface(leon.view.web.struts.map.LyStrutsMapCanvas map)
(non-Javadoc).

Specified by:
isDrawableInterface in interface leon.view.web.struts.map.LyStrutsMapElement
Parameters:
map - the map
Returns:
true if it is drawable in web, false otherwise
See Also:
LyStrutsMapElement.isDrawableInterface(leon.view.web.struts.map.LyStrutsMapCanvas)

setSelected

public void setSelected(boolean selected)
(non-Javadoc).

Specified by:
setSelected in interface LyGraphicalMapNode
Specified by:
setSelected in interface LySetSelectedInterface
Specified by:
setSelected in interface leon.view.web.struts.map.LyStrutsMapElement
Parameters:
selected - Boolean indicating if attribute selected is set or unset.
See Also:
LySetSelectedInterface.setSelected(boolean)

refresh

public void refresh()
Refresh map containing this map link.
Call the refreshMapImage() on the LyStrutsMapLink instance.

Overrides:
refresh in class LyWebObject

setLabel

public void setLabel(java.lang.String label)
(non-Javadoc).

Specified by:
setLabel in interface LyGraphicalMapNode
Specified by:
setLabel in interface LySetLabelInterface
Parameters:
label - New value of label.
See Also:
LySetLabelInterface.setLabel(java.lang.String)

setLeftLabel

public void setLeftLabel(java.lang.String label)
(non-Javadoc).

Specified by:
setLeftLabel in interface LyGraphicalMapNode
Parameters:
label - New value of leftLabel.
See Also:
LyGraphicalMapNode.setLeftLabel(String)

setRightLabel

public void setRightLabel(java.lang.String label)
(non-Javadoc).

Specified by:
setRightLabel in interface LyGraphicalMapNode
Parameters:
label - New value of rightLabel.
See Also:
LyGraphicalMapNode.setRightLabel(String)

setTopLabel

public void setTopLabel(java.lang.String label)
(non-Javadoc).

Specified by:
setTopLabel in interface LyGraphicalMapNode
Parameters:
label - New value of topLabel.
See Also:
LyGraphicalMapNode.setTopLabel(String)

setBottomLabel

public void setBottomLabel(java.lang.String label)
(non-Javadoc).

Specified by:
setBottomLabel in interface LyGraphicalMapNode
Parameters:
label - New value of bottomLabel.
See Also:
LyGraphicalMapNode.setBottomLabel(String)

setImage

public void setImage(java.lang.String image)
(non-Javadoc).

Specified by:
setImage in interface LyGraphicalMapNode
Specified by:
setImage in interface LySetImageInterface
Parameters:
image - New value of image.
See Also:
LySetImageInterface.setImage(java.lang.String)

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.

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