|
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.LyInterval
public class LyInterval
The LyInterval class is a generated Java implementation that corresponds to the element INTERVAL of the descriptive grammar of the views (views.dtd). <INTERVAL> : Interval An interval is defined by a begin date and an end date. If the end date is not specified, the interval is replaced by a point (an image representing a date). An interval has a label and a color. It may be resizable (it is possible to change its begin and end dates), movable on its parent line and may have vertical lines on its extremities. It may also have dependencies to other intervals represented by arrows linking this interval with the pointed intervals. An interval may also contain periods allowing splitting it into several sub-intervals. These periods are described by a begin date and an end date.
See also tag INTERVAL 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 | |
---|---|
LyInterval()
Default constructor. |
Method Summary | |
---|---|
void |
addPeriod(LyPeriod period)
Adds a sub-component period. |
LyComponent |
cloneComponent()
Method for cloning a component. |
java.lang.String |
getBeginDate()
Gets value of beginDate. |
java.lang.String |
getCenterLabel()
Gets value of centerLabel. |
java.lang.String |
getColor()
Gets value of color. |
java.lang.String |
getDependencies()
Gets value of dependencies. |
java.lang.String |
getEndDate()
Gets value of endDate. |
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 |
getLabel()
Gets value of label. |
LyPeriod |
getPeriod(int i)
Get sub-component Period of index i. |
int |
getPeriodCount()
Get sub-component Period count. |
LyInterval |
getTemplate()
Gets value of template. |
java.lang.String |
getTooltip()
Gets value of tooltip. |
java.lang.String |
getVerticalLinesColor()
Gets value of verticalLinesColor. |
void |
insertPeriod(LyPeriod period,
int pos)
Inserts a sub-component period 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 |
isDefaultVerticalLinesColor()
Checks whether the verticalLinesColor attribute is valuated to the default value. |
boolean |
isDrawVerticalLines()
Checks if value of attribute drawVerticalLines is set. |
boolean |
isLeftResizable()
Checks if value of attribute leftResizable is set. |
boolean |
isMovable()
Checks if value of attribute movable is set. |
boolean |
isRightResizable()
Checks if value of attribute rightResizable is set. |
void |
removePeriod(LyPeriod period)
Removes a sub-component period. |
void |
setBeginDate(java.lang.String beginDate)
Sets attribute beginDate to the given value. |
void |
setCenterLabel(java.lang.String centerLabel)
Sets attribute centerLabel to the given value. |
void |
setColor(java.lang.String color)
Sets attribute color to the given value. |
void |
setDependencies(java.lang.String dependencies)
Sets attribute dependencies to the given value. |
void |
setDrawVerticalLines(boolean drawVerticalLines)
Sets attribute drawVerticalLines to the given value. |
void |
setEndDate(java.lang.String endDate)
Sets attribute endDate to the given value. |
void |
setFont(java.lang.String font)
Sets attribute font to the given value. |
void |
setFontColor(java.lang.String fontColor)
Initializes attribute fontColor 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 |
setLeftResizable(boolean leftResizable)
Sets attribute leftResizable to the given value. |
void |
setMovable(boolean movable)
Sets attribute movable to the given value. |
void |
setRightResizable(boolean rightResizable)
Sets attribute rightResizable to the given value. |
void |
setTemplate(LyInterval template)
Initializes attribute template to the given value. |
void |
setTooltip(java.lang.String tooltip)
Sets attribute tooltip to the given value. |
void |
setVerticalLinesColor(java.lang.String verticalLinesColor)
Sets attribute verticalLinesColor 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 LyInterval()
Method Detail |
---|
public LyComponent cloneComponent()
cloneComponent
in class LyComponent
public java.lang.String getId()
getId
in interface LyGetIdInterface
getId
in class LyComponent
public LyInterval getTemplate()
public java.lang.String getLabel()
getLabel
in interface LyGetLabelInterface
public java.lang.String getCenterLabel()
public java.lang.String getTooltip()
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 getBeginDate()
public java.lang.String getEndDate()
public boolean isLeftResizable()
public boolean isRightResizable()
public boolean isMovable()
public boolean isDrawVerticalLines()
public java.lang.String getVerticalLinesColor()
public boolean isDefaultVerticalLinesColor()
public java.lang.String getDependencies()
public LyPeriod getPeriod(int i)
i
- the index of the Period to get.
public int getPeriodCount()
public void setId(java.lang.String id)
id
- New value of id.public void setTemplate(LyInterval template)
template
- New value of template.public void setLabel(java.lang.String label)
setLabel
in interface LySetLabelInterface
label
- New value of label.public void setCenterLabel(java.lang.String centerLabel)
centerLabel
- New value of centerLabel.public void setTooltip(java.lang.String tooltip)
tooltip
- New value of tooltip.public void setFont(java.lang.String font)
setFont
in interface LySetFontInterface
font
- New value of font.public void setColor(java.lang.String color)
setColor
in interface LySetColorInterface
color
- New value of color.public void setFontColor(java.lang.String fontColor)
fontColor
- New value of fontColor.public void setBeginDate(java.lang.String beginDate)
beginDate
- New value of beginDate.public void setEndDate(java.lang.String endDate)
endDate
- New value of endDate.public void setLeftResizable(boolean leftResizable)
leftResizable
- Boolean indicating if attribute leftResizable is set or unset.public void setRightResizable(boolean rightResizable)
rightResizable
- Boolean indicating if attribute rightResizable is set or unset.public void setMovable(boolean movable)
movable
- Boolean indicating if attribute movable is set or unset.public void setDrawVerticalLines(boolean drawVerticalLines)
drawVerticalLines
- Boolean indicating if attribute drawVerticalLines is set or unset.public void setVerticalLinesColor(java.lang.String verticalLinesColor)
verticalLinesColor
- New value of verticalLinesColor.public void setDependencies(java.lang.String dependencies)
dependencies
- New value of dependencies.public void addPeriod(LyPeriod period)
period
- The period to add to periods list.public void insertPeriod(LyPeriod period, int pos)
period
- The period to add to periods list.pos
- Position where the sub-component is inserted.public void removePeriod(LyPeriod period)
period
- The period to remove to periods list.
java.lang.IllegalStateException
- if periods list is empty.
java.lang.IllegalArgumentException
- if periods list doesn't contain period.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 |