LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view
Class LyPolygon

java.lang.Object
  extended by leon.view.LyComponent
      extended by leon.view.LyPolygon

public class LyPolygon
extends LyComponent

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:
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 leon.view.LyComponent
addComponent, addData, addEventFunction, clearChildrenBounds, free, freeze, getBounds, getChild, getChildCount, getChildFromCache, getChildrenBounds, getComponent, getComponent, getComponent, getComponent, getComponent, getComponentAt, getComponentAt, getComponentByInternalId, getComponentByLabel, getComponents, getComponentWithModel, getData, getDatas, getEnvironment, getEventFunctions, getId, 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

LyPolygon

public LyPolygon()
Default constructor.

Method Detail

cloneComponent

public LyComponent cloneComponent()
Method for cloning a component.

Specified by:
cloneComponent in class LyComponent

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.

getBorderColor

public java.lang.String getBorderColor()
Gets value of borderColor.

Returns:
value of borderColor.

isDefaultBorderColor

public boolean isDefaultBorderColor()
Checks whether the borderColor attribute is valuated to the default value.

Returns:
True if default, false otherwise.

getPoint

public LyPoint getPoint(int i)
Get sub-component Point of index i.

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

getPointCount

public int getPointCount()
Get sub-component Point count.

Returns:
sub-component Point count.

setColor

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

Parameters:
color - New value of color.

setBorderColor

public void setBorderColor(java.lang.String borderColor)
Initializes attribute borderColor to the given value.

Parameters:
borderColor - New value of borderColor.

addPoint

public void addPoint(LyPoint point)
Adds a sub-component point.

Parameters:
point - The point to add to points list.

insertPoint

public void insertPoint(LyPoint point,
                        int pos)
Inserts a sub-component point at given position.

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

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