|
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.LyMapLink
public class LyMapLink
The LyMapLink class is a generated Java implementation that corresponds to the element MAP_LINK of the descriptive grammar of the views (views.dtd). <MAP_LINK> : Map link This element represents a link between two nodes in a map.
See also tag MAP_LINK of grammar leon_views.dtd.
Nested Class Summary | |
---|---|
static class |
LyMapLink.Arrow
Possible values for attribute 'arrow'. |
static class |
LyMapLink.ArrowFill
Possible values for attribute 'startArrowFillMode'. |
static class |
LyMapLink.ArrowType
Possible values for attribute 'startArrowType'. |
static class |
LyMapLink.Style
Possible values for attribute 'style'. |
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 | |
---|---|
LyMapLink(java.lang.String startNode,
java.lang.String endNode)
Constructor with all required attributes. |
Method Summary | |
---|---|
void |
addPoint(LyPoint point)
Adds a sub-component point. |
LyComponent |
cloneComponent()
Method for cloning a component. |
LyMapLink.Arrow |
getArrow()
Gets value of arrow. |
static LyMapLink.Arrow |
getArrow(java.lang.String token)
Utility method to get arrow value from a string. |
static LyMapLink.ArrowFill |
getArrowFill(java.lang.String token)
Utility method to get startArrowFillMode value from a string. |
static LyMapLink.ArrowType |
getArrowType(java.lang.String token)
Utility method to get startArrowType value from a string. |
java.lang.String |
getColor()
Gets value of color. |
java.lang.String |
getColorEnd()
Gets value of colorEnd. |
java.lang.String |
getColorStart()
Gets value of colorStart. |
LyMapLink.ArrowFill |
getEndArrowFillMode()
Gets value of endArrowFillMode. |
LyMapLink.ArrowType |
getEndArrowType()
Gets value of endArrowType. |
java.lang.String |
getEndLabel()
Gets value of endLabel. |
java.lang.String |
getEndNode()
Gets value of endNode. |
java.lang.String |
getFont()
Gets value of font. |
java.lang.String |
getFontColor()
Gets value of fontColor. |
java.lang.String |
getId()
Gets value of id. |
java.lang.String |
getImageEnd()
Gets value of imageEnd. |
java.lang.String |
getImageMiddle()
Gets value of imageMiddle. |
java.lang.String |
getImageStart()
Gets value of imageStart. |
java.lang.String |
getInactiveSelectedColor()
Gets value of inactiveSelectedColor. |
java.lang.String |
getLabel()
Gets value of label. |
int |
getLayer()
Gets value of layer. |
java.lang.String |
getMotif()
Gets value of motif. |
java.lang.String |
getOutlineColor()
Gets value of outlineColor. |
java.lang.String |
getOverview()
Gets value of overview. |
LyPoint |
getPoint(int i)
Get sub-component Point of index i. |
int |
getPointCount()
Get sub-component Point count. |
java.lang.String |
getSelectedColor()
Gets value of selectedColor. |
LyMapLink.ArrowFill |
getStartArrowFillMode()
Gets value of startArrowFillMode. |
LyMapLink.ArrowType |
getStartArrowType()
Gets value of startArrowType. |
java.lang.String |
getStartLabel()
Gets value of startLabel. |
java.lang.String |
getStartNode()
Gets value of startNode. |
LyMapLink.Style |
getStyle()
Gets value of style. |
static LyMapLink.Style |
getStyle(java.lang.String token)
Utility method to get style value from a string. |
LyMapLink |
getTemplate()
Gets value of template. |
java.lang.String |
getTooltip()
Gets value of tooltip. |
int |
getWidth()
Gets value of width. |
void |
insertPoint(LyPoint point,
int pos)
Inserts a sub-component point at given position. |
boolean |
isDefaultColor()
Checks whether the color attribute is valuated to the default value. |
boolean |
isDefaultFont()
Checks whether the font attribute is valuated to the default value. |
boolean |
isDefaultFontColor()
Checks whether the fontColor attribute is valuated to the default value. |
boolean |
isDefaultInactiveSelectedColor()
Checks whether the inactiveSelectedColor 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 |
isDoubleLink()
Checks if value of attribute doubleLink is set. |
boolean |
isHidden()
Checks if value of attribute hidden is set. |
boolean |
isImageEndBlink()
Checks if value of attribute imageEndBlink is set. |
boolean |
isImageMiddleBlink()
Checks if value of attribute imageMiddleBlink is set. |
boolean |
isImageStartBlink()
Checks if value of attribute imageStartBlink is set. |
boolean |
isSelected()
Checks if value of attribute selected is set. |
boolean |
isSensitive()
Checks if value of attribute sensitive is set. |
void |
removePoint(LyPoint point)
Removes a sub-component point. |
void |
setArrow(LyMapLink.Arrow arrow)
Initializes attribute arrow to the given value. |
void |
setColor(java.lang.String color)
Initializes attribute color to the given value. |
void |
setColorEnd(java.lang.String colorEnd)
Sets attribute colorEnd to the given value. |
void |
setColorStart(java.lang.String colorStart)
Sets attribute colorStart to the given value. |
void |
setDoubleLink(boolean doubleLink)
Initializes attribute doubleLink to the given value. |
void |
setEndArrowFillMode(LyMapLink.ArrowFill endArrowFillMode)
Initializes attribute endArrowFillMode to the given value. |
void |
setEndArrowType(LyMapLink.ArrowType endArrowType)
Initializes attribute endArrowType to the given value. |
void |
setEndLabel(java.lang.String endLabel)
Sets attribute endLabel to the given value. |
void |
setEndNode(java.lang.String endNode)
Initializes attribute endNode to the given value. |
void |
setFont(java.lang.String font)
Initializes attribute font to the given value. |
void |
setFontColor(java.lang.String fontColor)
Initializes attribute fontColor to the given value. |
void |
setHidden(boolean hidden)
Sets attribute hidden to the given value. |
void |
setId(java.lang.String id)
Initializes attribute id to the given value. |
void |
setImageEnd(java.lang.String imageEnd)
Initializes attribute imageEnd to the given value. |
void |
setImageEndBlink(boolean imageEndBlink)
Initializes attribute imageEndBlink to the given value. |
void |
setImageMiddle(java.lang.String imageMiddle)
Initializes attribute imageMiddle to the given value. |
void |
setImageMiddleBlink(boolean imageMiddleBlink)
Initializes attribute imageMiddleBlink to the given value. |
void |
setImageStart(java.lang.String imageStart)
Initializes attribute imageStart to the given value. |
void |
setImageStartBlink(boolean imageStartBlink)
Initializes attribute imageStartBlink to the given value. |
void |
setInactiveSelectedColor(java.lang.String inactiveSelectedColor)
Initializes attribute inactiveSelectedColor to the given value. |
void |
setLabel(java.lang.String label)
Sets attribute label to the given value. |
void |
setLayer(int layer)
Initializes attribute layer to the given value. |
void |
setMotif(java.lang.String motif)
Initializes attribute motif to the given value. |
void |
setOutlineColor(java.lang.String outlineColor)
Initializes attribute outlineColor to the given value. |
void |
setOverview(java.lang.String overview)
Initializes attribute overview to the given value. |
void |
setSelected(boolean selected)
Sets attribute selected to the given value. |
void |
setSelectedColor(java.lang.String selectedColor)
Initializes attribute selectedColor to the given value. |
void |
setSensitive(boolean sensitive)
Initializes attribute sensitive to the given value. |
void |
setStartArrowFillMode(LyMapLink.ArrowFill startArrowFillMode)
Initializes attribute startArrowFillMode to the given value. |
void |
setStartArrowType(LyMapLink.ArrowType startArrowType)
Initializes attribute startArrowType to the given value. |
void |
setStartLabel(java.lang.String startLabel)
Sets attribute startLabel to the given value. |
void |
setStartNode(java.lang.String startNode)
Initializes attribute startNode to the given value. |
void |
setStyle(LyMapLink.Style style)
Initializes attribute style to the given value. |
void |
setTemplate(LyMapLink template)
Initializes attribute template to the given value. |
void |
setTooltip(java.lang.String tooltip)
Initializes attribute tooltip to the given value. |
void |
setWidth(int width)
Initializes attribute width 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 LyMapLink(java.lang.String startNode, java.lang.String endNode)
startNode
- Start node of the link.endNode
- Destination node of the link.Method Detail |
---|
public static final LyMapLink.Style getStyle(java.lang.String token)
token
- Token string
public static final LyMapLink.Arrow getArrow(java.lang.String token)
token
- Token string
public static final LyMapLink.ArrowType getArrowType(java.lang.String token)
token
- Token string
public static final LyMapLink.ArrowFill getArrowFill(java.lang.String token)
token
- Token string
public LyComponent cloneComponent()
cloneComponent
in class LyComponent
public java.lang.String getId()
getId
in interface LyGetIdInterface
getId
in class LyComponent
public LyMapLink getTemplate()
public java.lang.String getLabel()
getLabel
in interface LyGetLabelInterface
public java.lang.String getStartLabel()
public java.lang.String getEndLabel()
public java.lang.String getTooltip()
public java.lang.String getOverview()
public java.lang.String getStartNode()
public java.lang.String getEndNode()
public boolean isSensitive()
public boolean isSelected()
public boolean isDoubleLink()
public int getWidth()
public LyMapLink.Style getStyle()
public LyMapLink.Arrow getArrow()
public LyMapLink.ArrowType getStartArrowType()
public LyMapLink.ArrowFill getStartArrowFillMode()
public LyMapLink.ArrowType getEndArrowType()
public LyMapLink.ArrowFill getEndArrowFillMode()
public java.lang.String getMotif()
public java.lang.String getImageStart()
public java.lang.String getImageMiddle()
public java.lang.String getImageEnd()
public java.lang.String getColorStart()
public java.lang.String getColorEnd()
public int getLayer()
public boolean isHidden()
public boolean isImageStartBlink()
public boolean isImageMiddleBlink()
public boolean isImageEndBlink()
public java.lang.String getFont()
public boolean isDefaultFont()
public java.lang.String getColor()
public boolean isDefaultColor()
public java.lang.String getFontColor()
public boolean isDefaultFontColor()
public java.lang.String getSelectedColor()
public boolean isDefaultSelectedColor()
public java.lang.String getInactiveSelectedColor()
public boolean isDefaultInactiveSelectedColor()
public java.lang.String getOutlineColor()
public boolean isDefaultOutlineColor()
public LyPoint getPoint(int i)
i
- the index of the Point to get.
public int getPointCount()
public void setId(java.lang.String id)
id
- New value of id.public void setTemplate(LyMapLink template)
template
- New value of template.public void setLabel(java.lang.String label)
setLabel
in interface LySetLabelInterface
label
- New value of label.public void setStartLabel(java.lang.String startLabel)
startLabel
- New value of startLabel.public void setEndLabel(java.lang.String endLabel)
endLabel
- New value of endLabel.public void setTooltip(java.lang.String tooltip)
tooltip
- New value of tooltip.public void setOverview(java.lang.String overview)
overview
- New value of overview.public void setStartNode(java.lang.String startNode)
startNode
- New value of startNode.
java.lang.IllegalArgumentException
- if startNode is null.public void setEndNode(java.lang.String endNode)
endNode
- New value of endNode.
java.lang.IllegalArgumentException
- if endNode is null.public void setSensitive(boolean sensitive)
sensitive
- Boolean indicating if attribute sensitive is set or unset.public void setSelected(boolean selected)
setSelected
in interface LySetSelectedInterface
selected
- Boolean indicating if attribute selected is set or unset.public void setDoubleLink(boolean doubleLink)
doubleLink
- Boolean indicating if attribute doubleLink is set or unset.public void setWidth(int width)
width
- New value of width.public void setStyle(LyMapLink.Style style)
style
- New value of style.
java.lang.IllegalArgumentException
- if style parameter is null.public void setArrow(LyMapLink.Arrow arrow)
arrow
- New value of arrow.
java.lang.IllegalArgumentException
- if arrow parameter is null.public void setStartArrowType(LyMapLink.ArrowType startArrowType)
startArrowType
- New value of startArrowType.
java.lang.IllegalArgumentException
- if startArrowType parameter is null.public void setStartArrowFillMode(LyMapLink.ArrowFill startArrowFillMode)
startArrowFillMode
- New value of startArrowFillMode.
java.lang.IllegalArgumentException
- if startArrowFillMode parameter is null.public void setEndArrowType(LyMapLink.ArrowType endArrowType)
endArrowType
- New value of endArrowType.
java.lang.IllegalArgumentException
- if endArrowType parameter is null.public void setEndArrowFillMode(LyMapLink.ArrowFill endArrowFillMode)
endArrowFillMode
- New value of endArrowFillMode.
java.lang.IllegalArgumentException
- if endArrowFillMode parameter is null.public void setMotif(java.lang.String motif)
motif
- New value of motif.public void setImageStart(java.lang.String imageStart)
imageStart
- New value of imageStart.public void setImageMiddle(java.lang.String imageMiddle)
imageMiddle
- New value of imageMiddle.public void setImageEnd(java.lang.String imageEnd)
imageEnd
- New value of imageEnd.public void setColorStart(java.lang.String colorStart)
colorStart
- New value of colorStart.public void setColorEnd(java.lang.String colorEnd)
colorEnd
- New value of colorEnd.public void setLayer(int layer)
layer
- New value of layer.public void setHidden(boolean hidden)
setHidden
in interface LySetHiddenInterface
hidden
- Boolean indicating if attribute hidden is set or unset.public void setImageStartBlink(boolean imageStartBlink)
imageStartBlink
- Boolean indicating if attribute imageStartBlink is set or unset.public void setImageMiddleBlink(boolean imageMiddleBlink)
imageMiddleBlink
- Boolean indicating if attribute imageMiddleBlink is set or unset.public void setImageEndBlink(boolean imageEndBlink)
imageEndBlink
- Boolean indicating if attribute imageEndBlink is set or unset.public void setFont(java.lang.String font)
font
- New value of font.public void setColor(java.lang.String color)
color
- New value of color.public void setFontColor(java.lang.String fontColor)
fontColor
- New value of fontColor.public void setSelectedColor(java.lang.String selectedColor)
selectedColor
- New value of selectedColor.public void setInactiveSelectedColor(java.lang.String inactiveSelectedColor)
inactiveSelectedColor
- New value of inactiveSelectedColor.public void setOutlineColor(java.lang.String outlineColor)
outlineColor
- New value of outlineColor.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 removePoint(LyPoint point)
point
- The point to remove to points list.
java.lang.IllegalStateException
- if points list is empty.
java.lang.IllegalArgumentException
- if points list doesn't contain point.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 |