|
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.LyPolygon
public class LyPolygon
The LyPolygon class is a generated Java implementation that corresponds to the element POLYGON of the descriptive grammar of the views (views.dtd). <POLYGON> : Polygon A polygon is a set of points that defines a map region.
See also tag POLYGON 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 | |
---|---|
LyPolygon()
Default constructor. |
Method Summary | |
---|---|
void |
addPoint(LyPoint point)
Adds a sub-component point. |
LyComponent |
cloneComponent()
Method for cloning a component. |
java.lang.String |
getBorderColor()
Gets value of borderColor. |
java.lang.String |
getColor()
Gets value of color. |
LyPoint |
getPoint(int i)
Get sub-component Point of index i. |
int |
getPointCount()
Get sub-component Point count. |
void |
insertPoint(LyPoint point,
int pos)
Inserts a sub-component point at given position. |
boolean |
isDefaultBorderColor()
Checks whether the borderColor attribute is valuated to the default value. |
boolean |
isDefaultColor()
Checks whether the color attribute is valuated to the default value. |
void |
setBorderColor(java.lang.String borderColor)
Initializes attribute borderColor to the given value. |
void |
setColor(java.lang.String color)
Initializes attribute color to the given value. |
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 LyPolygon()
Method Detail |
---|
public LyComponent cloneComponent()
cloneComponent
in class LyComponent
public java.lang.String getColor()
public boolean isDefaultColor()
public java.lang.String getBorderColor()
public boolean isDefaultBorderColor()
public LyPoint getPoint(int i)
i
- the index of the Point to get.
public int getPointCount()
public void setColor(java.lang.String color)
color
- New value of color.public void setBorderColor(java.lang.String borderColor)
borderColor
- New value of borderColor.public void addPoint(LyPoint point)
point
- The point to add to points list.public void insertPoint(LyPoint point, int pos)
point
- The point to add to points list.pos
- Position where the sub-component is inserted.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 |