LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view
Class LyGantt

java.lang.Object
  extended by leon.view.LyComponent
      extended by leon.view.LyFieldItem
          extended by leon.view.LyPanel
              extended by leon.view.LyGantt
All Implemented Interfaces:
LyGetConstraintInterface, LyGetControllerInterface, LyGetIdInterface, LyPdfInterface, LySetControllerInterface, LySetWaitingInterface, LyUpdateViewContentInterface

public class LyGantt
extends LyPanel
implements LyGetIdInterface, LyGetControllerInterface, LySetControllerInterface, LyGetConstraintInterface

The LyGantt class is a generated Java implementation that corresponds to the element GANTT of the descriptive grammar of the views (views.dtd). <GANTT> : GANTT planning A Gantt planning is a graphical component that generally allows representing the planning of a project by visualizing the different tasks that compose it. It is constituted by two distinct parts: a planning on the right and a tree view on the left. To each node of the tree corresponds a representation on the planning, horizontally aligned with this node (the node and its representation make what we will call a line). This representation may be a segment, a filled rectangle or a point. A Gantt planning has a begin date and an end date that represent the limits of the visible part of the planning. The full size of the planning is automatically computed with the dates of the intervals. It also has a date format used to represent the dates of the intervals and a zoom factor indicating the steps of the vertical grid of the planning (months, weeks, days, hours or minutes). The tree view allows visualizing the different lines with the capacity of hiding or showing the sub-lines. Each node of the tree has a label, an image, a background color, a foreground color and a font. The planning allows visualizing the time intervals associated to the nodes of the tree. If a line contains intervals it is represented in the planning by points or filled rectangles (depending on the begin and end dates). If a line contains sub-lines it is represented by a segment starting from the minimum date of its sub-intervals and going to the maximum date of its sub-intervals. It is also possible to indicate particular days that must appear with a color on the planning. Those days may be of three types: days of week (for example Saturday and Sunday), days of year (for example May the 1st) and special days (for example 24th December 2006). Remark: a generic Application Engine action « _gantt » is added with its controller, builder and behavior.

See Also:
See also tag GANTT of grammar leon_views.dtd.

Nested Class Summary
static class LyGantt.ZoomFactor
          Possible values for attribute 'zoomFactor'.
 
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
LyGantt()
          Default constructor.
 
Method Summary
 void addDay(LyDay day)
          Adds a sub-component day.
 void addLine(LyLine line)
          Adds a sub-component line.
 LyComponent cloneComponent()
          Method for cloning a component.
 java.lang.String getBackgroundColor()
          Gets value of backgroundColor.
 java.lang.String getBeginDate()
          Gets value of beginDate.
 LyConstraint getConstraint()
          Get sub-component Constraint.
 java.lang.String getController()
          Gets value of controller.
 int getCurrentDateRefreshPeriod()
          Gets value of currentDateRefreshPeriod.
 java.lang.String getDateFormat()
          Gets value of dateFormat.
 java.lang.String getDateSelectorBean()
          Gets value of dateSelectorBean.
 LyDay getDay(int i)
          Get sub-component Day of index i.
 int getDayCount()
          Get sub-component Day count.
 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 getHCenteredLine()
          Gets value of hCenteredLine.
 java.lang.String getId()
          Gets value of id.
 java.lang.String getInputArrowDownImage()
          Gets value of inputArrowDownImage.
 java.lang.String getInputArrowUpImage()
          Gets value of inputArrowUpImage.
 java.lang.String getInputBigDownArrowImage()
          Gets value of inputBigDownArrowImage.
 java.lang.String getInputFont()
          Gets value of inputFont.
 LyLine getLine(int i)
          Get sub-component Line of index i.
 int getLineCount()
          Get sub-component Line count.
 java.lang.String getLinesColor()
          Gets value of linesColor.
 java.lang.String getPlanningBackgroundColor()
          Gets value of planningBackgroundColor.
 java.lang.String getScaleBackgroundColor()
          Gets value of scaleBackgroundColor.
 java.lang.String getScaleLinesColor()
          Gets value of scaleLinesColor.
 LyGantt getTemplate()
          Gets value of template.
 java.lang.String getTimeFormat()
          Gets value of timeFormat.
 java.lang.String getToolTipBackgroundColor()
          Gets value of toolTipBackgroundColor.
 java.lang.String getToolTipFont()
          Gets value of toolTipFont.
 java.lang.String getToolTipFontColor()
          Gets value of toolTipFontColor.
 java.lang.String getTreeBackgroundColor()
          Gets value of treeBackgroundColor.
 java.lang.String getUpperScaleFont()
          Gets value of upperScaleFont.
 java.lang.String getVCenteredLine()
          Gets value of vCenteredLine.
 java.lang.String getWeekendColor()
          Gets value of weekendColor.
 LyGantt.ZoomFactor getZoomFactor()
          Gets value of zoomFactor.
static LyGantt.ZoomFactor getZoomFactor(java.lang.String token)
          Utility method to get zoomFactor value from a string.
 void insertDay(LyDay day, int pos)
          Inserts a sub-component day at given position.
 void insertLine(LyLine line, int pos)
          Inserts a sub-component line at given position.
 boolean isAllowElementHiding()
          Checks if value of attribute allowElementHiding is set.
 boolean isAllowIntervalDivision()
          Checks if value of attribute allowIntervalDivision is set.
 boolean isAllowSplit()
          Checks if value of attribute allowSplit is set.
 boolean isDefaultBackgroundColor()
          Checks whether the backgroundColor 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 isDefaultInputArrowDownImage()
          Checks whether the inputArrowDownImage attribute is valuated to the default value.
 boolean isDefaultInputArrowUpImage()
          Checks whether the inputArrowUpImage attribute is valuated to the default value.
 boolean isDefaultInputBigDownArrowImage()
          Checks whether the inputBigDownArrowImage attribute is valuated to the default value.
 boolean isDefaultInputFont()
          Checks whether the inputFont attribute is valuated to the default value.
 boolean isDefaultLinesColor()
          Checks whether the linesColor attribute is valuated to the default value.
 boolean isDefaultPlanningBackgroundColor()
          Checks whether the planningBackgroundColor attribute is valuated to the default value.
 boolean isDefaultScaleBackgroundColor()
          Checks whether the scaleBackgroundColor attribute is valuated to the default value.
 boolean isDefaultScaleLinesColor()
          Checks whether the scaleLinesColor attribute is valuated to the default value.
 boolean isDefaultToolTipBackgroundColor()
          Checks whether the toolTipBackgroundColor attribute is valuated to the default value.
 boolean isDefaultToolTipFont()
          Checks whether the toolTipFont attribute is valuated to the default value.
 boolean isDefaultToolTipFontColor()
          Checks whether the toolTipFontColor attribute is valuated to the default value.
 boolean isDefaultTreeBackgroundColor()
          Checks whether the treeBackgroundColor attribute is valuated to the default value.
 boolean isDefaultUpperScaleFont()
          Checks whether the upperScaleFont attribute is valuated to the default value.
 boolean isDefaultWeekendColor()
          Checks whether the weekendColor attribute is valuated to the default value.
 boolean isDisplayTimeSelector()
          Checks if value of attribute displayTimeSelector is set.
 void removeDay(LyDay day)
          Removes a sub-component day.
 void removeLine(LyLine line)
          Removes a sub-component line.
 void setAllowElementHiding(boolean allowElementHiding)
          Initializes attribute allowElementHiding to the given value.
 void setAllowIntervalDivision(boolean allowIntervalDivision)
          Initializes attribute allowIntervalDivision to the given value.
 void setAllowSplit(boolean allowSplit)
          Initializes attribute allowSplit to the given value.
 void setBackgroundColor(java.lang.String backgroundColor)
          Initializes attribute backgroundColor to the given value.
 void setBeginDate(java.lang.String beginDate)
          Sets attribute beginDate to the given value.
 void setConstraint(LyConstraint constraint)
          Sets sub-component constraint.
 void setController(java.lang.String controller)
          Initializes attribute controller to the given value.
 void setCurrentDateRefreshPeriod(int currentDateRefreshPeriod)
          Sets attribute currentDateRefreshPeriod to the given value.
 void setDateFormat(java.lang.String dateFormat)
          Initializes attribute dateFormat to the given value.
 void setDateSelectorBean(java.lang.String dateSelectorBean)
          Initializes attribute dateSelectorBean to the given value.
 void setDisplayTimeSelector(boolean displayTimeSelector)
          Initializes attribute displayTimeSelector to the given value.
 void setEndDate(java.lang.String endDate)
          Sets attribute endDate 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 setHCenteredLine(java.lang.String hCenteredLine)
          Sets attribute hCenteredLine to the given value.
 void setId(java.lang.String id)
          Initializes attribute id to the given value.
 void setInputArrowDownImage(java.lang.String inputArrowDownImage)
          Initializes attribute inputArrowDownImage to the given value.
 void setInputArrowUpImage(java.lang.String inputArrowUpImage)
          Initializes attribute inputArrowUpImage to the given value.
 void setInputBigDownArrowImage(java.lang.String inputBigDownArrowImage)
          Initializes attribute inputBigDownArrowImage to the given value.
 void setInputFont(java.lang.String inputFont)
          Initializes attribute inputFont to the given value.
 void setLinesColor(java.lang.String linesColor)
          Initializes attribute linesColor to the given value.
 void setPlanningBackgroundColor(java.lang.String planningBackgroundColor)
          Initializes attribute planningBackgroundColor to the given value.
 void setScaleBackgroundColor(java.lang.String scaleBackgroundColor)
          Initializes attribute scaleBackgroundColor to the given value.
 void setScaleLinesColor(java.lang.String scaleLinesColor)
          Initializes attribute scaleLinesColor to the given value.
 void setTemplate(LyGantt template)
          Initializes attribute template to the given value.
 void setTimeFormat(java.lang.String timeFormat)
          Initializes attribute timeFormat to the given value.
 void setToolTipBackgroundColor(java.lang.String toolTipBackgroundColor)
          Initializes attribute toolTipBackgroundColor to the given value.
 void setToolTipFont(java.lang.String toolTipFont)
          Initializes attribute toolTipFont to the given value.
 void setToolTipFontColor(java.lang.String toolTipFontColor)
          Initializes attribute toolTipFontColor to the given value.
 void setTreeBackgroundColor(java.lang.String treeBackgroundColor)
          Initializes attribute treeBackgroundColor to the given value.
 void setUpperScaleFont(java.lang.String upperScaleFont)
          Initializes attribute upperScaleFont to the given value.
 void setVCenteredLine(java.lang.String vCenteredLine)
          Sets attribute vCenteredLine to the given value.
 void setWeekendColor(java.lang.String weekendColor)
          Initializes attribute weekendColor to the given value.
 void setZoomFactor(LyGantt.ZoomFactor zoomFactor)
          Sets attribute zoomFactor 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.LyPanel
generatePdf, getLastModified, isIdle, isScrollable, print, setIdle, setLastModified, setPopupMenu, setWaiting
 
Methods inherited from class leon.view.LyFieldItem
addBeanData, buildBean, free, getBean, getBeanComponent, getBeanData, getBeanDatas, getChild, getChildCount, getErrorMessage, getFieldValue, getValue, setBean, setBeanComponent, setBeanDatas, setFieldValue, setLabel, updateViewContent, validateInput
 
Methods inherited from class leon.view.LyComponent
addComponent, addData, addEventFunction, clearChildrenBounds, freeze, getBounds, getChildFromCache, getChildrenBounds, getComponent, getComponent, getComponent, getComponent, getComponent, getComponentAt, getComponentAt, getComponentByInternalId, getComponentByLabel, getComponents, getComponentWithModel, getData, getDatas, getEnvironment, getEventFunctions, 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

LyGantt

public LyGantt()
Default constructor.

Method Detail

getZoomFactor

public static final LyGantt.ZoomFactor getZoomFactor(java.lang.String token)
Utility method to get zoomFactor value from a string.

Parameters:
token - Token string
Returns:
ZoomFactor value corresponding to this token

cloneComponent

public LyComponent cloneComponent()
Method for cloning a component.

Specified by:
cloneComponent in class LyComponent

getId

public java.lang.String getId()
Gets value of id.

Specified by:
getId in interface LyGetIdInterface
Overrides:
getId in class LyComponent
Returns:
value of id.

getTemplate

public LyGantt getTemplate()
Gets value of template.

Returns:
value of template.

getController

public java.lang.String getController()
Gets value of controller.

Specified by:
getController in interface LyGetControllerInterface
Returns:
value of controller.

getBeginDate

public java.lang.String getBeginDate()
Gets value of beginDate.

Returns:
value of beginDate.

getEndDate

public java.lang.String getEndDate()
Gets value of endDate.

Returns:
value of endDate.

getDateFormat

public java.lang.String getDateFormat()
Gets value of dateFormat.

Returns:
value of dateFormat.

getTimeFormat

public java.lang.String getTimeFormat()
Gets value of timeFormat.

Returns:
value of timeFormat.

getZoomFactor

public LyGantt.ZoomFactor getZoomFactor()
Gets value of zoomFactor.

Returns:
value of zoomFactor.

getCurrentDateRefreshPeriod

public int getCurrentDateRefreshPeriod()
Gets value of currentDateRefreshPeriod.

Returns:
value of currentDateRefreshPeriod.

isAllowElementHiding

public boolean isAllowElementHiding()
Checks if value of attribute allowElementHiding is set.

Returns:
true if allowElementHiding is set, false otherwise.

isAllowIntervalDivision

public boolean isAllowIntervalDivision()
Checks if value of attribute allowIntervalDivision is set.

Returns:
true if allowIntervalDivision is set, false otherwise.

isAllowSplit

public boolean isAllowSplit()
Checks if value of attribute allowSplit is set.

Returns:
true if allowSplit is set, false otherwise.

isDisplayTimeSelector

public boolean isDisplayTimeSelector()
Checks if value of attribute displayTimeSelector is set.

Returns:
true if displayTimeSelector is set, false otherwise.

getHCenteredLine

public java.lang.String getHCenteredLine()
Gets value of hCenteredLine.

Returns:
value of hCenteredLine.

getVCenteredLine

public java.lang.String getVCenteredLine()
Gets value of vCenteredLine.

Returns:
value of vCenteredLine.

getDateSelectorBean

public java.lang.String getDateSelectorBean()
Gets value of dateSelectorBean.

Returns:
value of dateSelectorBean.

getBackgroundColor

public java.lang.String getBackgroundColor()
Gets value of backgroundColor.

Returns:
value of backgroundColor.

isDefaultBackgroundColor

public boolean isDefaultBackgroundColor()
Checks whether the backgroundColor attribute is valuated to the default value.

Returns:
True if default, false otherwise.

getTreeBackgroundColor

public java.lang.String getTreeBackgroundColor()
Gets value of treeBackgroundColor.

Returns:
value of treeBackgroundColor.

isDefaultTreeBackgroundColor

public boolean isDefaultTreeBackgroundColor()
Checks whether the treeBackgroundColor attribute is valuated to the default value.

Returns:
True if default, false otherwise.

getFont

public java.lang.String getFont()
Gets value of font.

Returns:
value of font.

isDefaultFont

public boolean isDefaultFont()
Checks whether the font attribute is valuated to the default value.

Returns:
True if default, false otherwise.

getFontColor

public java.lang.String getFontColor()
Gets value of fontColor.

Returns:
value of fontColor.

isDefaultFontColor

public boolean isDefaultFontColor()
Checks whether the fontColor attribute is valuated to the default value.

Returns:
True if default, false otherwise.

getToolTipFont

public java.lang.String getToolTipFont()
Gets value of toolTipFont.

Returns:
value of toolTipFont.

isDefaultToolTipFont

public boolean isDefaultToolTipFont()
Checks whether the toolTipFont attribute is valuated to the default value.

Returns:
True if default, false otherwise.

getToolTipFontColor

public java.lang.String getToolTipFontColor()
Gets value of toolTipFontColor.

Returns:
value of toolTipFontColor.

isDefaultToolTipFontColor

public boolean isDefaultToolTipFontColor()
Checks whether the toolTipFontColor attribute is valuated to the default value.

Returns:
True if default, false otherwise.

getToolTipBackgroundColor

public java.lang.String getToolTipBackgroundColor()
Gets value of toolTipBackgroundColor.

Returns:
value of toolTipBackgroundColor.

isDefaultToolTipBackgroundColor

public boolean isDefaultToolTipBackgroundColor()
Checks whether the toolTipBackgroundColor attribute is valuated to the default value.

Returns:
True if default, false otherwise.

getUpperScaleFont

public java.lang.String getUpperScaleFont()
Gets value of upperScaleFont.

Returns:
value of upperScaleFont.

isDefaultUpperScaleFont

public boolean isDefaultUpperScaleFont()
Checks whether the upperScaleFont attribute is valuated to the default value.

Returns:
True if default, false otherwise.

getPlanningBackgroundColor

public java.lang.String getPlanningBackgroundColor()
Gets value of planningBackgroundColor.

Returns:
value of planningBackgroundColor.

isDefaultPlanningBackgroundColor

public boolean isDefaultPlanningBackgroundColor()
Checks whether the planningBackgroundColor attribute is valuated to the default value.

Returns:
True if default, false otherwise.

getScaleBackgroundColor

public java.lang.String getScaleBackgroundColor()
Gets value of scaleBackgroundColor.

Returns:
value of scaleBackgroundColor.

isDefaultScaleBackgroundColor

public boolean isDefaultScaleBackgroundColor()
Checks whether the scaleBackgroundColor attribute is valuated to the default value.

Returns:
True if default, false otherwise.

getScaleLinesColor

public java.lang.String getScaleLinesColor()
Gets value of scaleLinesColor.

Returns:
value of scaleLinesColor.

isDefaultScaleLinesColor

public boolean isDefaultScaleLinesColor()
Checks whether the scaleLinesColor attribute is valuated to the default value.

Returns:
True if default, false otherwise.

getLinesColor

public java.lang.String getLinesColor()
Gets value of linesColor.

Returns:
value of linesColor.

isDefaultLinesColor

public boolean isDefaultLinesColor()
Checks whether the linesColor attribute is valuated to the default value.

Returns:
True if default, false otherwise.

getWeekendColor

public java.lang.String getWeekendColor()
Gets value of weekendColor.

Returns:
value of weekendColor.

isDefaultWeekendColor

public boolean isDefaultWeekendColor()
Checks whether the weekendColor attribute is valuated to the default value.

Returns:
True if default, false otherwise.

getInputFont

public java.lang.String getInputFont()
Gets value of inputFont.

Returns:
value of inputFont.

isDefaultInputFont

public boolean isDefaultInputFont()
Checks whether the inputFont attribute is valuated to the default value.

Returns:
True if default, false otherwise.

getInputBigDownArrowImage

public java.lang.String getInputBigDownArrowImage()
Gets value of inputBigDownArrowImage.

Returns:
value of inputBigDownArrowImage.

isDefaultInputBigDownArrowImage

public boolean isDefaultInputBigDownArrowImage()
Checks whether the inputBigDownArrowImage attribute is valuated to the default value.

Returns:
True if default, false otherwise.

getInputArrowUpImage

public java.lang.String getInputArrowUpImage()
Gets value of inputArrowUpImage.

Returns:
value of inputArrowUpImage.

isDefaultInputArrowUpImage

public boolean isDefaultInputArrowUpImage()
Checks whether the inputArrowUpImage attribute is valuated to the default value.

Returns:
True if default, false otherwise.

getInputArrowDownImage

public java.lang.String getInputArrowDownImage()
Gets value of inputArrowDownImage.

Returns:
value of inputArrowDownImage.

isDefaultInputArrowDownImage

public boolean isDefaultInputArrowDownImage()
Checks whether the inputArrowDownImage attribute is valuated to the default value.

Returns:
True if default, false otherwise.

getLine

public LyLine getLine(int i)
Get sub-component Line of index i.

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

getLineCount

public int getLineCount()
Get sub-component Line count.

Returns:
sub-component Line count.

getDay

public LyDay getDay(int i)
Get sub-component Day of index i.

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

getDayCount

public int getDayCount()
Get sub-component Day count.

Returns:
sub-component Day count.

getConstraint

public LyConstraint getConstraint()
Get sub-component Constraint.

Specified by:
getConstraint in interface LyGetConstraintInterface
Returns:
sub-component Constraint.

setId

public void setId(java.lang.String id)
Initializes attribute id to the given value.

Parameters:
id - New value of id.

setTemplate

public void setTemplate(LyGantt template)
Initializes attribute template to the given value.

Parameters:
template - New value of template.

setController

public void setController(java.lang.String controller)
Initializes attribute controller to the given value.

Specified by:
setController in interface LySetControllerInterface
Parameters:
controller - New value of controller.
See Also:
LySetControllerInterface.setController(java.lang.String)

setBeginDate

public void setBeginDate(java.lang.String beginDate)
Sets attribute beginDate to the given value.

Parameters:
beginDate - New value of beginDate.

setEndDate

public void setEndDate(java.lang.String endDate)
Sets attribute endDate to the given value.

Parameters:
endDate - New value of endDate.

setDateFormat

public void setDateFormat(java.lang.String dateFormat)
Initializes attribute dateFormat to the given value.

Parameters:
dateFormat - New value of dateFormat.

setTimeFormat

public void setTimeFormat(java.lang.String timeFormat)
Initializes attribute timeFormat to the given value.

Parameters:
timeFormat - New value of timeFormat.

setZoomFactor

public void setZoomFactor(LyGantt.ZoomFactor zoomFactor)
Sets attribute zoomFactor to the given value.

Parameters:
zoomFactor - New value of zoomFactor.
Throws:
java.lang.IllegalArgumentException - if zoomFactor parameter is null.

setCurrentDateRefreshPeriod

public void setCurrentDateRefreshPeriod(int currentDateRefreshPeriod)
Sets attribute currentDateRefreshPeriod to the given value.

Parameters:
currentDateRefreshPeriod - New value of currentDateRefreshPeriod.

setAllowElementHiding

public void setAllowElementHiding(boolean allowElementHiding)
Initializes attribute allowElementHiding to the given value.

Parameters:
allowElementHiding - Boolean indicating if attribute allowElementHiding is set or unset.

setAllowIntervalDivision

public void setAllowIntervalDivision(boolean allowIntervalDivision)
Initializes attribute allowIntervalDivision to the given value.

Parameters:
allowIntervalDivision - Boolean indicating if attribute allowIntervalDivision is set or unset.

setAllowSplit

public void setAllowSplit(boolean allowSplit)
Initializes attribute allowSplit to the given value.

Parameters:
allowSplit - Boolean indicating if attribute allowSplit is set or unset.

setDisplayTimeSelector

public void setDisplayTimeSelector(boolean displayTimeSelector)
Initializes attribute displayTimeSelector to the given value.

Parameters:
displayTimeSelector - Boolean indicating if attribute displayTimeSelector is set or unset.

setHCenteredLine

public void setHCenteredLine(java.lang.String hCenteredLine)
Sets attribute hCenteredLine to the given value.

Parameters:
hCenteredLine - New value of hCenteredLine.

setVCenteredLine

public void setVCenteredLine(java.lang.String vCenteredLine)
Sets attribute vCenteredLine to the given value.

Parameters:
vCenteredLine - New value of vCenteredLine.

setDateSelectorBean

public void setDateSelectorBean(java.lang.String dateSelectorBean)
Initializes attribute dateSelectorBean to the given value.

Parameters:
dateSelectorBean - New value of dateSelectorBean.

setBackgroundColor

public void setBackgroundColor(java.lang.String backgroundColor)
Initializes attribute backgroundColor to the given value.

Parameters:
backgroundColor - New value of backgroundColor.

setTreeBackgroundColor

public void setTreeBackgroundColor(java.lang.String treeBackgroundColor)
Initializes attribute treeBackgroundColor to the given value.

Parameters:
treeBackgroundColor - New value of treeBackgroundColor.

setFont

public void setFont(java.lang.String font)
Initializes attribute font to the given value.

Parameters:
font - New value of font.

setFontColor

public void setFontColor(java.lang.String fontColor)
Initializes attribute fontColor to the given value.

Parameters:
fontColor - New value of fontColor.

setToolTipFont

public void setToolTipFont(java.lang.String toolTipFont)
Initializes attribute toolTipFont to the given value.

Parameters:
toolTipFont - New value of toolTipFont.

setToolTipFontColor

public void setToolTipFontColor(java.lang.String toolTipFontColor)
Initializes attribute toolTipFontColor to the given value.

Parameters:
toolTipFontColor - New value of toolTipFontColor.

setToolTipBackgroundColor

public void setToolTipBackgroundColor(java.lang.String toolTipBackgroundColor)
Initializes attribute toolTipBackgroundColor to the given value.

Parameters:
toolTipBackgroundColor - New value of toolTipBackgroundColor.

setUpperScaleFont

public void setUpperScaleFont(java.lang.String upperScaleFont)
Initializes attribute upperScaleFont to the given value.

Parameters:
upperScaleFont - New value of upperScaleFont.

setPlanningBackgroundColor

public void setPlanningBackgroundColor(java.lang.String planningBackgroundColor)
Initializes attribute planningBackgroundColor to the given value.

Parameters:
planningBackgroundColor - New value of planningBackgroundColor.

setScaleBackgroundColor

public void setScaleBackgroundColor(java.lang.String scaleBackgroundColor)
Initializes attribute scaleBackgroundColor to the given value.

Parameters:
scaleBackgroundColor - New value of scaleBackgroundColor.

setScaleLinesColor

public void setScaleLinesColor(java.lang.String scaleLinesColor)
Initializes attribute scaleLinesColor to the given value.

Parameters:
scaleLinesColor - New value of scaleLinesColor.

setLinesColor

public void setLinesColor(java.lang.String linesColor)
Initializes attribute linesColor to the given value.

Parameters:
linesColor - New value of linesColor.

setWeekendColor

public void setWeekendColor(java.lang.String weekendColor)
Initializes attribute weekendColor to the given value.

Parameters:
weekendColor - New value of weekendColor.

setInputFont

public void setInputFont(java.lang.String inputFont)
Initializes attribute inputFont to the given value.

Parameters:
inputFont - New value of inputFont.

setInputBigDownArrowImage

public void setInputBigDownArrowImage(java.lang.String inputBigDownArrowImage)
Initializes attribute inputBigDownArrowImage to the given value.

Parameters:
inputBigDownArrowImage - New value of inputBigDownArrowImage.

setInputArrowUpImage

public void setInputArrowUpImage(java.lang.String inputArrowUpImage)
Initializes attribute inputArrowUpImage to the given value.

Parameters:
inputArrowUpImage - New value of inputArrowUpImage.

setInputArrowDownImage

public void setInputArrowDownImage(java.lang.String inputArrowDownImage)
Initializes attribute inputArrowDownImage to the given value.

Parameters:
inputArrowDownImage - New value of inputArrowDownImage.

addLine

public void addLine(LyLine line)
Adds a sub-component line.

Parameters:
line - The line to add to lines list.

insertLine

public void insertLine(LyLine line,
                       int pos)
Inserts a sub-component line at given position.

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

removeLine

public void removeLine(LyLine line)
Removes a sub-component line.

Parameters:
line - The line to remove to lines list.
Throws:
java.lang.IllegalStateException - if lines list is empty.
java.lang.IllegalArgumentException - if lines list doesn't contain line.

addDay

public void addDay(LyDay day)
Adds a sub-component day.

Parameters:
day - The day to add to daies list.

insertDay

public void insertDay(LyDay day,
                      int pos)
Inserts a sub-component day at given position.

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

removeDay

public void removeDay(LyDay day)
Removes a sub-component day.

Parameters:
day - The day to remove to daies list.
Throws:
java.lang.IllegalStateException - if daies list is empty.
java.lang.IllegalArgumentException - if daies list doesn't contain day.

setConstraint

public void setConstraint(LyConstraint constraint)
Sets sub-component constraint.

Parameters:
constraint - New value of constraint

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