|
LEONARDI Application Composer - 8.9.0.40 by W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectleon.view.LyComponent
leon.view.LyMapContent
public class LyMapContent
The LyMapContent class is a generated Java implementation that corresponds to the element MAP_CONTENT of the descriptive grammar of the views (views.dtd). <MAP_CONTENT> : Map content A map content allows grouping together in a same group various elements that can be placed on a map (nodes, links, images, regions).
See also tag MAP_CONTENT of grammar leon_views.dtd.
Nested Class Summary |
---|
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 | |
---|---|
LyMapContent()
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. |
LyComponent |
getComponent(int i)
Get sub-component Component of index i. |
int |
getComponentCount()
Get sub-component Component count. |
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. |
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 |
writeXml(java.io.PrintWriter pw,
boolean debug)
Method to rewrite XML corresponding to this component. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String __VERSION
Constructor Detail |
---|
public LyMapContent()
Method Detail |
---|
public LyComponent cloneComponent()
cloneComponent
in class LyComponent
public LyComponent getComponent(int i)
i
- the index of the Component to get.
public int getComponentCount()
public void addMapNode(LyMapNode mapNode)
mapNode
- The mapNode to add to components list.public void insertMapNode(LyMapNode mapNode, int pos)
mapNode
- The mapNode to add to components list.pos
- Position where the sub-component is inserted.public void removeMapNode(LyMapNode mapNode)
mapNode
- The mapNode to remove to components list.
java.lang.IllegalStateException
- if components list is empty.
java.lang.IllegalArgumentException
- if components list doesn't contain mapNode.public void addMapLink(LyMapLink mapLink)
mapLink
- The mapLink to add to components list.public void insertMapLink(LyMapLink mapLink, int pos)
mapLink
- The mapLink to add to components list.pos
- Position where the sub-component is inserted.public void removeMapLink(LyMapLink mapLink)
mapLink
- The mapLink to remove to components list.
java.lang.IllegalStateException
- if components list is empty.
java.lang.IllegalArgumentException
- if components list doesn't contain mapLink.public void addMapRegion(LyMapRegion mapRegion)
mapRegion
- The mapRegion to add to components list.public void insertMapRegion(LyMapRegion mapRegion, int pos)
mapRegion
- The mapRegion to add to components list.pos
- Position where the sub-component is inserted.public void removeMapRegion(LyMapRegion mapRegion)
mapRegion
- The mapRegion to remove to components list.
java.lang.IllegalStateException
- if components list is empty.
java.lang.IllegalArgumentException
- if components list doesn't contain mapRegion.public void writeXml(java.io.PrintWriter pw, boolean debug)
writeXml
in class LyComponent
pw
- the printWriter on which the XML is written.debug
- true if debug mode (full dump).
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |