<INTERVAL> : Interval

Java class : leon.view.LyInterval

ROLE

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.

ATTRIBUTES

<!ATTLIST INTERVAL
	  id ID #IMPLIED
	  template NMTOKEN #IMPLIED
	  label CDATA #IMPLIED
	  centerLabel CDATA #IMPLIED
	  tooltip CDATA #IMPLIED
	  font CDATA #IMPLIED
	  color CDATA #IMPLIED
	  fontColor CDATA #IMPLIED
	  beginDate CDATA #IMPLIED
	  endDate CDATA #IMPLIED
	  leftResizable ( true | false) "true"
	  rightResizable ( true | false) "true"
	  movable ( true | false) "true"
	  drawVerticalLines ( true | false) "false"
	  verticalLinesColor CDATA #IMPLIED
	  dependencies IDREFS #IMPLIED>
Attribute Mand. Description Default
id no Identifier of the interval.  
template no INTERVAL.template  
label no Label of the interval.  
centerLabel no Center label of the interval.  
tooltip no Tooltip
of the interval.
 
font no Font used for the label of the interval.  
color no Background of the interval.  
fontColor no INTERVAL.fontColor  
beginDate no Begin date of the interval (must match the format of the planning).  
endDate no End date of the interval (must match the format of the planning). If this date is not specified, the interval is represented by a point.  
leftResizable no Indicates if this interval is resizable from the left. true
rightResizable no Indicates if this interval is resizable from the right. true
movable no Indicates if this interval is movable on its parent line. true
drawVerticalLines no Indicates if vertical lines must be drawn at the extremities of the interval on the planning (only one line if the interval is represented by a point). false
verticalLinesColor no Color of vertical lines.  
dependencies no List of identifiers of the intervals related to this interval.  

ELEMENTS

<!ELEMENT INTERVAL 
	  (PERIOD*)>
Element Mand. Mult. Description
PERIOD no yes List of periods.