LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view
Class LyMapBase

java.lang.Object
  extended by leon.view.LyComponent
      extended by leon.view.LyFieldItem
          extended by leon.view.LyPanel
              extended by leon.view.LyMapBase
All Implemented Interfaces:
LyGetConstraintInterface, LyGetControllerInterface, LyGetIdInterface, LyGetLabelInterface, LyPdfInterface, LySetControllerInterface, LySetLabelInterface, LySetViewerInterface, LySetWaitingInterface, LyUpdateViewContentInterface
Direct Known Subclasses:
LyMap

public abstract class LyMapBase
extends LyPanel
implements LyGetIdInterface, LyGetLabelInterface, LySetLabelInterface, LyGetControllerInterface, LySetControllerInterface, LySetViewerInterface, LyGetConstraintInterface

The LyMapBase class is a generated Java implementation that corresponds to the element MAP of the descriptive grammar of the views (views.dtd). <MAP> : Map A map allows displaying any type of map view: maps representing geographic or synoptic areas, displaying of elements with different types of positioning, displaying of nodes, links, images, etc. There are four types of elements that can be placed on a map: the nodes, the links, the regions and the images. The elements placed on a map can be sensitive or not (except the images that can never be sensitive). It is possible to specify for the nodes and the links the layer on which they are. This layer allows to place the elements of a higher layer over the elements of a lower layer (for example, the elements of the layer 2 are placed over the elements of the layer 1). The nodes allow defining 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. The links allow defining segments between two nodes of the map. If one of the two nodes defining the link is moved, the link follows the moved node so that it always starts from its source node and that it always arrives to its destination node. The regions allow representing geometric areas defined by a discrete set of points. These areas can be sensitive. It is notably possible to lead to other map views when launching an action over one of these regions. It is possible to define the background that will be used for the map (defined by an image), the selection mode (none, simple or multiple), the visualization mode (through a viewer or with scroll bars) and to specify if the map is in two or three dimensions. The possible movements on a map are translations, zooms (forward/backward) and rotations. A map in three dimensions allows spatial rotations enabling to display the regions in three dimensions. A map in two dimensions allows the axial rotations around the center of the map.

See Also:
LyPanel, See also tag MAP of grammar leon_views.dtd.

Nested Class Summary
static class LyMapBase.SelectionDraw
          Possible values for attribute 'selectionDraw'.
static class LyMapBase.SelectionMode
          Possible values for attribute 'selectionMode'.
static class LyMapBase.Style
          Possible values for attribute 'style'.
static class LyMapBase.TranslationStatus
          Possible values for attribute 'translationStatus'.
static class LyMapBase.ViewerStatus
          Possible values for attribute 'viewerStatus'.
static class LyMapBase.ZoomStatus
          Possible values for attribute 'zoomStatus'.
 
Nested classes/interfaces inherited from class leon.view.LyComponent
LyComponent.EventType
 
Field Summary
static java.lang.String __VERSION
           
 
Fields inherited from class leon.view.LyComponent
_nbComponents, INIT_RESOURCE_ID, INTERNAL_ID_SEP, REWRITING_MODE, SEP_ID
 
Constructor Summary
LyMapBase()
          Default constructor.
 
Method Summary
 void addMapLink(LyMapLink mapLink)
          Adds a sub-component mapLink.
 void addMapNode(LyMapNode mapNode)
          Adds a sub-component mapNode.
 void addMapRegion(LyMapRegion mapRegion)
          Adds a sub-component mapRegion.
 LyComponent cloneComponent()
          Method for cloning a component.
 java.lang.String getBackground()
          Gets value of background.
 java.lang.String getColor()
          Gets value of color.
 LyComponent getComponent(int i)
          Get sub-component Component of index i.
 int getComponentCount()
          Get sub-component Component count.
 LyConstraint getConstraint()
          Get sub-component Constraint.
 java.lang.String getController()
          Gets value of controller.
 java.lang.String getFontColor()
          Gets value of fontColor.
 int getHeight()
          Gets value of height.
 java.lang.String getId()
          Gets value of id.
 java.lang.String getLabel()
          Gets value of label.
 java.lang.String getLatitude()
          Gets value of latitude.
 LyLayout getLayout()
          Get sub-component Layout.
 java.lang.String getLongitude()
          Gets value of longitude.
 LyMapContent getMapContent()
          Get sub-component MapContent.
 java.lang.String getOutlineColor()
          Gets value of outlineColor.
 java.lang.String getSelectedColor()
          Gets value of selectedColor.
 LyMapBase.SelectionDraw getSelectionDraw()
          Gets value of selectionDraw.
static LyMapBase.SelectionDraw getSelectionDraw(java.lang.String token)
          Utility method to get selectionDraw value from a string.
 LyMapBase.SelectionMode getSelectionMode()
          Gets value of selectionMode.
static LyMapBase.SelectionMode getSelectionMode(java.lang.String token)
          Utility method to get selectionMode value from a string.
 LyMapBase.Style getStyle()
          Gets value of style.
static LyMapBase.Style getStyle(java.lang.String token)
          Utility method to get style value from a string.
 LyMap getTemplate()
          Gets value of template.
 java.lang.String getTitleFont()
          Gets value of titleFont.
 LyMapBase.TranslationStatus getTranslationStatus()
          Gets value of translationStatus.
static LyMapBase.TranslationStatus getTranslationStatus(java.lang.String token)
          Utility method to get translationStatus value from a string.
 int getTranslationStep()
          Gets value of translationStep.
 LyMapBase.ViewerStatus getViewerStatus()
          Gets value of viewerStatus.
static LyMapBase.ViewerStatus getViewerStatus(java.lang.String token)
          Utility method to get viewerStatus value from a string.
 int getViewerX()
          Gets value of viewerX.
 int getViewerY()
          Gets value of viewerY.
 int getWidth()
          Gets value of width.
 float getZoomFactor()
          Gets value of zoomFactor.
 LyMapBase.ZoomStatus getZoomStatus()
          Gets value of zoomStatus.
static LyMapBase.ZoomStatus getZoomStatus(java.lang.String token)
          Utility method to get zoomStatus value from a string.
 float getZoomStep()
          Gets value of zoomStep.
 void insertMapLink(LyMapLink mapLink, int pos)
          Inserts a sub-component mapLink at given position.
 void insertMapNode(LyMapNode mapNode, int pos)
          Inserts a sub-component mapNode at given position.
 void insertMapRegion(LyMapRegion mapRegion, int pos)
          Inserts a sub-component mapRegion at given position.
 boolean isDefaultColor()
          Checks whether the color attribute is valuated to the default value.
 boolean isDefaultFontColor()
          Checks whether the fontColor attribute is valuated to the default value.
 boolean isDefaultOutlineColor()
          Checks whether the outlineColor attribute is valuated to the default value.
 boolean isDefaultSelectedColor()
          Checks whether the selectedColor attribute is valuated to the default value.
 boolean isDefaultTitleFont()
          Checks whether the titleFont attribute is valuated to the default value.
 boolean isSpatial()
          Checks if value of attribute spatial is set.
 boolean isTranslation()
          Checks if value of attribute translation is set.
 boolean isViewer()
          Checks if value of attribute viewer is set.
 boolean isZoom()
          Checks if value of attribute zoom is set.
 void removeMapLink(LyMapLink mapLink)
          Removes a sub-component mapLink.
 void removeMapNode(LyMapNode mapNode)
          Removes a sub-component mapNode.
 void removeMapRegion(LyMapRegion mapRegion)
          Removes a sub-component mapRegion.
 void setBackground(java.lang.String background)
          Initializes attribute background to the given value.
 void setColor(java.lang.String color)
          Initializes attribute color to the given value.
 void setConstraint(LyConstraint constraint)
          Sets sub-component constraint.
 void setController(java.lang.String controller)
          Initializes attribute controller to the given value.
 void setFontColor(java.lang.String fontColor)
          Initializes attribute fontColor to the given value.
 void setHeight(int height)
          Initializes attribute height to the given value.
 void setId(java.lang.String id)
          Initializes attribute id to the given value.
 void setLabel(java.lang.String label)
          Sets attribute label to the given value.
 void setLatitude(java.lang.String latitude)
          Initializes attribute latitude to the given value.
 void setLayout(LyLayout layout)
          Sets sub-component layout.
 void setLongitude(java.lang.String longitude)
          Initializes attribute longitude to the given value.
 void setMapContent(LyMapContent mapContent)
          Sets sub-component mapContent.
 void setOutlineColor(java.lang.String outlineColor)
          Initializes attribute outlineColor to the given value.
 void setSelectedColor(java.lang.String selectedColor)
          Initializes attribute selectedColor to the given value.
 void setSelectionDraw(LyMapBase.SelectionDraw selectionDraw)
          Initializes attribute selectionDraw to the given value.
 void setSelectionMode(LyMapBase.SelectionMode selectionMode)
          Initializes attribute selectionMode to the given value.
 void setSpatial(boolean spatial)
          Sets attribute spatial to the given value.
 void setStyle(LyMapBase.Style style)
          Initializes attribute style to the given value.
 void setTemplate(LyMap template)
          Initializes attribute template to the given value.
 void setTitleFont(java.lang.String titleFont)
          Initializes attribute titleFont to the given value.
 void setTranslation(boolean translation)
          Sets attribute translation to the given value.
 void setTranslationStatus(LyMapBase.TranslationStatus translationStatus)
          Sets attribute translationStatus to the given value.
 void setTranslationStep(int translationStep)
          Initializes attribute translationStep to the given value.
 void setViewer(boolean viewer)
          Sets attribute viewer to the given value.
 void setViewerStatus(LyMapBase.ViewerStatus viewerStatus)
          Sets attribute viewerStatus to the given value.
 void setViewerX(int viewerX)
          Initializes attribute viewerX to the given value.
 void setViewerY(int viewerY)
          Initializes attribute viewerY to the given value.
 void setWidth(int width)
          Initializes attribute width to the given value.
 void setZoom(boolean zoom)
          Sets attribute zoom to the given value.
 void setZoomFactor(float zoomFactor)
          Sets attribute zoomFactor to the given value.
 void setZoomStatus(LyMapBase.ZoomStatus zoomStatus)
          Sets attribute zoomStatus to the given value.
 void setZoomStep(float zoomStep)
          Initializes attribute zoomStep to the given value.
 void writeXml(java.io.PrintWriter pw, boolean debug)
          Method to rewrite XML corresponding to this component.
 
Methods inherited from class leon.view.LyPanel
generatePdf, getLastModified, isIdle, isScrollable, print, setIdle, setLastModified, setPopupMenu, setWaiting
 
Methods inherited from class leon.view.LyFieldItem
addBeanData, buildBean, free, getBean, getBeanComponent, getBeanData, getBeanDatas, getChild, getChildCount, getErrorMessage, getFieldValue, getValue, setBean, setBeanComponent, setBeanDatas, setFieldValue, updateViewContent, validateInput
 
Methods inherited from class leon.view.LyComponent
addComponent, addData, addEventFunction, clearChildrenBounds, freeze, getBounds, getChildFromCache, getChildrenBounds, getComponent, getComponent, getComponent, getComponent, getComponent, getComponentAt, getComponentAt, getComponentByInternalId, getComponentByLabel, getComponents, getComponentWithModel, getData, getDatas, getEnvironment, getEventFunctions, getIdCode, getInternalId, getInternalView, getInternalView, getLock, getModel, getParent, getParentArea, getParentForm, getParentFormFieldId, getParentSplitter, getParentSplitter, getParentTab, getParentTab, getParentTabs, getParentTabs, getParentView, getRootController, getSetVisibleParent, getTag, getViewManager, isFreed, isFreeing, registerChildrenBounds, removeComponent, reset, resetChildrenCache, resetEventFunctions, setDatas, setInternalView, setVisible, useEventDefaultFunction, writeXml
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

__VERSION

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

LyMapBase

public LyMapBase()
Default constructor.

Method Detail

getSelectionMode

public static final LyMapBase.SelectionMode getSelectionMode(java.lang.String token)
Utility method to get selectionMode value from a string.

Parameters:
token - Token string
Returns:
SelectionMode value corresponding to this token

getSelectionDraw

public static final LyMapBase.SelectionDraw getSelectionDraw(java.lang.String token)
Utility method to get selectionDraw value from a string.

Parameters:
token - Token string
Returns:
SelectionDraw value corresponding to this token

getViewerStatus

public static final LyMapBase.ViewerStatus getViewerStatus(java.lang.String token)
Utility method to get viewerStatus value from a string.

Parameters:
token - Token string
Returns:
ViewerStatus value corresponding to this token

getZoomStatus

public static final LyMapBase.ZoomStatus getZoomStatus(java.lang.String token)
Utility method to get zoomStatus value from a string.

Parameters:
token - Token string
Returns:
ZoomStatus value corresponding to this token

getTranslationStatus

public static final LyMapBase.TranslationStatus getTranslationStatus(java.lang.String token)
Utility method to get translationStatus value from a string.

Parameters:
token - Token string
Returns:
TranslationStatus value corresponding to this token

getStyle

public static final LyMapBase.Style getStyle(java.lang.String token)
Utility method to get style value from a string.

Parameters:
token - Token string
Returns:
Style value corresponding to this token

cloneComponent

public LyComponent cloneComponent()
Method for cloning a component.

Specified by:
cloneComponent in class LyComponent

getId

public java.lang.String getId()
Gets value of id.

Specified by:
getId in interface LyGetIdInterface
Overrides:
getId in class LyComponent
Returns:
value of id.

getTemplate

public LyMap getTemplate()
Gets value of template.

Returns:
value of template.

getLabel

public java.lang.String getLabel()
Gets value of label.

Specified by:
getLabel in interface LyGetLabelInterface
Returns:
value of label.

getController

public java.lang.String getController()
Gets value of controller.

Specified by:
getController in interface LyGetControllerInterface
Returns:
value of controller.

getSelectionMode

public LyMapBase.SelectionMode getSelectionMode()
Gets value of selectionMode.

Returns:
value of selectionMode.

getSelectionDraw

public LyMapBase.SelectionDraw getSelectionDraw()
Gets value of selectionDraw.

Returns:
value of selectionDraw.

isViewer

public boolean isViewer()
Checks if value of attribute viewer is set.

Returns:
true if viewer is set, false otherwise.

getViewerStatus

public LyMapBase.ViewerStatus getViewerStatus()
Gets value of viewerStatus.

Returns:
value of viewerStatus.

getViewerX

public int getViewerX()
Gets value of viewerX.

Returns:
value of viewerX.

getViewerY

public int getViewerY()
Gets value of viewerY.

Returns:
value of viewerY.

isZoom

public boolean isZoom()
Checks if value of attribute zoom is set.

Returns:
true if zoom is set, false otherwise.

getZoomStatus

public LyMapBase.ZoomStatus getZoomStatus()
Gets value of zoomStatus.

Returns:
value of zoomStatus.

getZoomStep

public float getZoomStep()
Gets value of zoomStep.

Returns:
value of zoomStep.

getZoomFactor

public float getZoomFactor()
Gets value of zoomFactor.

Returns:
value of zoomFactor.

isTranslation

public boolean isTranslation()
Checks if value of attribute translation is set.

Returns:
true if translation is set, false otherwise.

getTranslationStep

public int getTranslationStep()
Gets value of translationStep.

Returns:
value of translationStep.

getTranslationStatus

public LyMapBase.TranslationStatus getTranslationStatus()
Gets value of translationStatus.

Returns:
value of translationStatus.

isSpatial

public boolean isSpatial()
Checks if value of attribute spatial is set.

Returns:
true if spatial is set, false otherwise.

getBackground

public java.lang.String getBackground()
Gets value of background.

Returns:
value of background.

getTitleFont

public java.lang.String getTitleFont()
Gets value of titleFont.

Returns:
value of titleFont.

isDefaultTitleFont

public boolean isDefaultTitleFont()
Checks whether the titleFont attribute is valuated to the default value.

Returns:
True if default, false otherwise.

getColor

public java.lang.String getColor()
Gets value of color.

Returns:
value of color.

isDefaultColor

public boolean isDefaultColor()
Checks whether the color attribute is valuated to the default value.

Returns:
True if default, false otherwise.

getFontColor

public java.lang.String getFontColor()
Gets value of fontColor.

Returns:
value of fontColor.

isDefaultFontColor

public boolean isDefaultFontColor()
Checks whether the fontColor attribute is valuated to the default value.

Returns:
True if default, false otherwise.

getSelectedColor

public java.lang.String getSelectedColor()
Gets value of selectedColor.

Returns:
value of selectedColor.

isDefaultSelectedColor

public boolean isDefaultSelectedColor()
Checks whether the selectedColor attribute is valuated to the default value.

Returns:
True if default, false otherwise.

getOutlineColor

public java.lang.String getOutlineColor()
Gets value of outlineColor.

Returns:
value of outlineColor.

isDefaultOutlineColor

public boolean isDefaultOutlineColor()
Checks whether the outlineColor attribute is valuated to the default value.

Returns:
True if default, false otherwise.

getWidth

public int getWidth()
Gets value of width.

Returns:
value of width.

getHeight

public int getHeight()
Gets value of height.

Returns:
value of height.

getStyle

public LyMapBase.Style getStyle()
Gets value of style.

Returns:
value of style.

getLatitude

public java.lang.String getLatitude()
Gets value of latitude.

Returns:
value of latitude.

getLongitude

public java.lang.String getLongitude()
Gets value of longitude.

Returns:
value of longitude.

getComponent

public LyComponent getComponent(int i)
Get sub-component Component of index i.

Parameters:
i - the index of the Component to get.
Returns:
sub-component Component of index i.

getComponentCount

public int getComponentCount()
Get sub-component Component count.

Returns:
sub-component Component count.

getMapContent

public LyMapContent getMapContent()
Get sub-component MapContent.

Returns:
sub-component MapContent.

getLayout

public LyLayout getLayout()
Get sub-component Layout.

Returns:
sub-component Layout.

getConstraint

public LyConstraint getConstraint()
Get sub-component Constraint.

Specified by:
getConstraint in interface LyGetConstraintInterface
Returns:
sub-component Constraint.

setId

public void setId(java.lang.String id)
Initializes attribute id to the given value.

Parameters:
id - New value of id.

setTemplate

public void setTemplate(LyMap template)
Initializes attribute template to the given value.

Parameters:
template - New value of template.

setLabel

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

Specified by:
setLabel in interface LySetLabelInterface
Overrides:
setLabel in class LyFieldItem
Parameters:
label - New value of label.

setController

public void setController(java.lang.String controller)
Initializes attribute controller to the given value.

Specified by:
setController in interface LySetControllerInterface
Parameters:
controller - New value of controller.
See Also:
LySetControllerInterface.setController(java.lang.String)

setSelectionMode

public void setSelectionMode(LyMapBase.SelectionMode selectionMode)
Initializes attribute selectionMode to the given value.

Parameters:
selectionMode - New value of selectionMode.
Throws:
java.lang.IllegalArgumentException - if selectionMode parameter is null.

setSelectionDraw

public void setSelectionDraw(LyMapBase.SelectionDraw selectionDraw)
Initializes attribute selectionDraw to the given value.

Parameters:
selectionDraw - New value of selectionDraw.
Throws:
java.lang.IllegalArgumentException - if selectionDraw parameter is null.

setViewer

public void setViewer(boolean viewer)
Sets attribute viewer to the given value.

Specified by:
setViewer in interface LySetViewerInterface
Parameters:
viewer - Boolean indicating if attribute viewer is set or unset.

setViewerStatus

public void setViewerStatus(LyMapBase.ViewerStatus viewerStatus)
Sets attribute viewerStatus to the given value.

Parameters:
viewerStatus - New value of viewerStatus.
Throws:
java.lang.IllegalArgumentException - if viewerStatus parameter is null.

setViewerX

public void setViewerX(int viewerX)
Initializes attribute viewerX to the given value.

Parameters:
viewerX - New value of viewerX.

setViewerY

public void setViewerY(int viewerY)
Initializes attribute viewerY to the given value.

Parameters:
viewerY - New value of viewerY.

setZoom

public void setZoom(boolean zoom)
Sets attribute zoom to the given value.

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

setZoomStatus

public void setZoomStatus(LyMapBase.ZoomStatus zoomStatus)
Sets attribute zoomStatus to the given value.

Parameters:
zoomStatus - New value of zoomStatus.
Throws:
java.lang.IllegalArgumentException - if zoomStatus parameter is null.

setZoomStep

public void setZoomStep(float zoomStep)
Initializes attribute zoomStep to the given value.

Parameters:
zoomStep - New value of zoomStep.

setZoomFactor

public void setZoomFactor(float zoomFactor)
Sets attribute zoomFactor to the given value.

Parameters:
zoomFactor - New value of zoomFactor.

setTranslation

public void setTranslation(boolean translation)
Sets attribute translation to the given value.

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

setTranslationStep

public void setTranslationStep(int translationStep)
Initializes attribute translationStep to the given value.

Parameters:
translationStep - New value of translationStep.

setTranslationStatus

public void setTranslationStatus(LyMapBase.TranslationStatus translationStatus)
Sets attribute translationStatus to the given value.

Parameters:
translationStatus - New value of translationStatus.
Throws:
java.lang.IllegalArgumentException - if translationStatus parameter is null.

setSpatial

public void setSpatial(boolean spatial)
Sets attribute spatial to the given value.

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

setBackground

public void setBackground(java.lang.String background)
Initializes attribute background to the given value.

Parameters:
background - New value of background.

setTitleFont

public void setTitleFont(java.lang.String titleFont)
Initializes attribute titleFont to the given value.

Parameters:
titleFont - New value of titleFont.

setColor

public void setColor(java.lang.String color)
Initializes attribute color to the given value.

Parameters:
color - New value of color.

setFontColor

public void setFontColor(java.lang.String fontColor)
Initializes attribute fontColor to the given value.

Parameters:
fontColor - New value of fontColor.

setSelectedColor

public void setSelectedColor(java.lang.String selectedColor)
Initializes attribute selectedColor to the given value.

Parameters:
selectedColor - New value of selectedColor.

setOutlineColor

public void setOutlineColor(java.lang.String outlineColor)
Initializes attribute outlineColor to the given value.

Parameters:
outlineColor - New value of outlineColor.

setWidth

public void setWidth(int width)
Initializes attribute width to the given value.

Parameters:
width - New value of width.

setHeight

public void setHeight(int height)
Initializes attribute height to the given value.

Parameters:
height - New value of height.

setStyle

public void setStyle(LyMapBase.Style style)
Initializes attribute style to the given value.

Parameters:
style - New value of style.
Throws:
java.lang.IllegalArgumentException - if style parameter is null.

setLatitude

public void setLatitude(java.lang.String latitude)
Initializes attribute latitude to the given value.

Parameters:
latitude - New value of latitude.

setLongitude

public void setLongitude(java.lang.String longitude)
Initializes attribute longitude to the given value.

Parameters:
longitude - New value of longitude.

addMapNode

public void addMapNode(LyMapNode mapNode)
Adds a sub-component mapNode.

Parameters:
mapNode - The mapNode to add to components list.

insertMapNode

public void insertMapNode(LyMapNode mapNode,
                          int pos)
Inserts a sub-component mapNode at given position.

Parameters:
mapNode - The mapNode to add to components list.
pos - Position where the sub-component is inserted.

removeMapNode

public void removeMapNode(LyMapNode mapNode)
Removes a sub-component mapNode.

Parameters:
mapNode - The mapNode to remove to components list.
Throws:
java.lang.IllegalStateException - if components list is empty.
java.lang.IllegalArgumentException - if components list doesn't contain mapNode.

addMapLink

public void addMapLink(LyMapLink mapLink)
Adds a sub-component mapLink.

Parameters:
mapLink - The mapLink to add to components list.

insertMapLink

public void insertMapLink(LyMapLink mapLink,
                          int pos)
Inserts a sub-component mapLink at given position.

Parameters:
mapLink - The mapLink to add to components list.
pos - Position where the sub-component is inserted.

removeMapLink

public void removeMapLink(LyMapLink mapLink)
Removes a sub-component mapLink.

Parameters:
mapLink - The mapLink to remove to components list.
Throws:
java.lang.IllegalStateException - if components list is empty.
java.lang.IllegalArgumentException - if components list doesn't contain mapLink.

addMapRegion

public void addMapRegion(LyMapRegion mapRegion)
Adds a sub-component mapRegion.

Parameters:
mapRegion - The mapRegion to add to components list.

insertMapRegion

public void insertMapRegion(LyMapRegion mapRegion,
                            int pos)
Inserts a sub-component mapRegion at given position.

Parameters:
mapRegion - The mapRegion to add to components list.
pos - Position where the sub-component is inserted.

removeMapRegion

public void removeMapRegion(LyMapRegion mapRegion)
Removes a sub-component mapRegion.

Parameters:
mapRegion - The mapRegion to remove to components list.
Throws:
java.lang.IllegalStateException - if components list is empty.
java.lang.IllegalArgumentException - if components list doesn't contain mapRegion.

setMapContent

public void setMapContent(LyMapContent mapContent)
Sets sub-component mapContent.

Parameters:
mapContent - New value of mapContent

setLayout

public void setLayout(LyLayout layout)
Sets sub-component layout.

Parameters:
layout - New value of layout

setConstraint

public void setConstraint(LyConstraint constraint)
Sets sub-component constraint.

Parameters:
constraint - New value of constraint

writeXml

public void writeXml(java.io.PrintWriter pw,
                     boolean debug)
Method to rewrite XML corresponding to this component.

Specified by:
writeXml in class LyComponent
Parameters:
pw - the printWriter on which the XML is written.
debug - true if debug mode (full dump).

(c) January 2013 - W4 S.A.

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