|
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.graphic.LyGraphicalObject
leon.view.win.swing.LySwingObject
leon.view.win.swing.LySwingInterval
public class LySwingInterval
This class implements the Interval object (as described in the dtd) for swing viewer.
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 to split it into several sub-intervals. These periods are described by a begin date and an end date.
LyInterval
Field Summary | |
---|---|
static java.lang.String |
__VERSION
|
Constructor Summary | |
---|---|
LySwingInterval(LyInterval interval)
Class constructor of an Interval object for the Swing target. |
Method Summary | |
---|---|
void |
addPeriod(LyPeriod period,
int i)
Recomputes all the periods of this Gantt element. |
java.util.Date |
getBeginDate()
Returns the begin date of the interval using the date format. |
java.awt.Component |
getComponent()
This interval component belongs to a Gantt planning. |
java.util.Date |
getEndDate()
Returns the end date of the interval using the date format. |
LyGanttElement |
getGanttElement()
Accessor to the gantt element. |
void |
initialize()
Initializes the component by creating a new Gantt element associated with this interval. |
java.util.Date |
parseDate(java.lang.String value)
Parses a date value using date time format and date format. |
void |
removePeriod(LyPeriod period)
Recomputes all the periods of this Gantt element. |
void |
resetDates()
Resets the dates of the Gantt element with those of the interval then sets the type of this element: LyGanttElement.REAL_INTERVAL if it has an end date or LyGanttElement.POINT_INTERVAL if not. |
void |
setBeginDate(java.lang.String beginDate)
(non-Javadoc). |
void |
setCenterLabel(java.lang.String label)
(non-Javadoc). |
void |
setColor(java.lang.String color)
(non-Javadoc). |
void |
setContent()
Sets the Gantt element default properties. |
void |
setDependencies(java.lang.String dependencies)
Resets the dependencies of this Gantt element's parent component. |
void |
setDrawVerticalLines(boolean drawVerticalLines)
(non-Javadoc). |
void |
setEndDate(java.lang.String endDate)
(non-Javadoc). |
void |
setFont(java.lang.String font)
(non-Javadoc). |
void |
setForegroundColor(java.lang.String color)
(non-Javadoc). |
void |
setLabel(java.lang.String label)
(non-Javadoc). |
void |
setLeftResizable(boolean leftResizable)
(non-Javadoc). |
void |
setMovable(boolean movable)
(non-Javadoc). |
void |
setRightResizable(boolean rightResizable)
(non-Javadoc). |
void |
setTooltip(java.lang.String tooltip)
(non-Javadoc). |
void |
setVerticalLinesColor(java.lang.String color)
(non-Javadoc). |
Methods inherited from class leon.view.win.swing.LySwingObject |
---|
getBounds, getChildrenBounds, getDefaultFrame |
Methods inherited from class leon.view.graphic.LyGraphicalObject |
---|
expand, free, getController, getEnv, getEnvironment, getIdCode, getIntResource, getMessage, getMessage, getResource, getString, getString, getString, getViewComponent, getViewManager, isFreed, isFreeing, isImageAnimated, processDemand, processDemand, testResource, translate |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface leon.view.graphic.LyGraphicalComponent |
---|
free, getViewComponent |
Field Detail |
---|
public static final java.lang.String __VERSION
Constructor Detail |
---|
public LySwingInterval(LyInterval interval)
interval
- an INTERVAL component defined for every type of view targets. This interval
is initialized for the Swing view specificaly and filled with the default
values.Method Detail |
---|
public void initialize()
public void setContent()
public void setLabel(java.lang.String label)
setLabel
in interface LyGraphicalInterval
setLabel
in interface LySetLabelInterface
label
- New value of label.LySetLabelInterface.setLabel(java.lang.String)
public void setCenterLabel(java.lang.String label)
setCenterLabel
in interface LyGraphicalInterval
label
- New value of centerLabel.LyGraphicalInterval.setCenterLabel(java.lang.String)
public void setTooltip(java.lang.String tooltip)
setTooltip
in interface LyGraphicalInterval
tooltip
- New value of tooltip.LyGraphicalInterval.setTooltip(java.lang.String)
public void setColor(java.lang.String color)
setColor
in interface LyGraphicalInterval
setColor
in interface LySetColorInterface
color
- New value of color.LySetColorInterface.setColor(java.lang.String)
public void setFont(java.lang.String font)
setFont
in interface LyGraphicalInterval
setFont
in interface LySetFontInterface
font
- New value of font.LySetFontInterface.setFont(java.lang.String)
public void setForegroundColor(java.lang.String color)
leon.view.graphic.LyGraphicalInterval#setForegroundColor(java.lang.String)
public void setVerticalLinesColor(java.lang.String color)
setVerticalLinesColor
in interface LyGraphicalInterval
color
- New value of verticalLinesColor.LyGraphicalInterval.setVerticalLinesColor(java.lang.String)
public void resetDates()
LyGanttElement.REAL_INTERVAL
if it has an end date or LyGanttElement.POINT_INTERVAL
if not.
public java.util.Date getBeginDate()
setBeginDate(String)
public java.util.Date getEndDate()
setEndDate(String)
public java.util.Date parseDate(java.lang.String value)
null
.
value
- the date value
public void setBeginDate(java.lang.String beginDate)
setBeginDate
in interface LyGraphicalInterval
beginDate
- New value of beginDate.LyGraphicalInterval.setBeginDate(java.lang.String)
public void setEndDate(java.lang.String endDate)
setEndDate
in interface LyGraphicalInterval
endDate
- New value of endDate.LyGraphicalInterval.setEndDate(java.lang.String)
public void setDrawVerticalLines(boolean drawVerticalLines)
setDrawVerticalLines
in interface LyGraphicalInterval
drawVerticalLines
- Boolean indicating if attribute drawVerticalLines is set or unset.LyGraphicalInterval.setDrawVerticalLines(boolean)
public void setLeftResizable(boolean leftResizable)
setLeftResizable
in interface LyGraphicalInterval
leftResizable
- Boolean indicating if attribute leftResizable is set or unset.LyGraphicalInterval.setLeftResizable(boolean)
public void setRightResizable(boolean rightResizable)
setRightResizable
in interface LyGraphicalInterval
rightResizable
- Boolean indicating if attribute rightResizable is set or unset.LyGraphicalInterval.setRightResizable(boolean)
public void setMovable(boolean movable)
setMovable
in interface LyGraphicalInterval
movable
- Boolean indicating if attribute movable is set or unset.LyGraphicalInterval.setMovable(boolean)
public void setDependencies(java.lang.String dependencies)
setDependencies
in interface LyGraphicalInterval
dependencies
- value of dependencies, not used in this implementationLyGraphicalInterval.setDependencies(java.lang.String)
public void addPeriod(LyPeriod period, int i)
addPeriod
in interface LyGraphicalInterval
period
- a period to add to this Gantt element, not used in this implementationi
- the position to add the specified period, not used in this implementationresetPeriods(LyPeriod)
,
LyGraphicalInterval.addPeriod(LyPeriod, int)
public void removePeriod(LyPeriod period)
removePeriod
in interface LyGraphicalInterval
period
- a period to remove to this Gantt element, not used in this implementationresetPeriods(LyPeriod)
,
LyGraphicalInterval.removePeriod(LyPeriod)
public java.awt.Component getComponent()
getComponent
in interface LySwingComponent
getComponent
in class LySwingObject
null
LySwingComponent.getComponent()
public LyGanttElement getGanttElement()
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |