LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view
Class LyIntervals

java.lang.Object
  extended by leon.view.LyComponent
      extended by leon.view.LyIntervals

public class LyIntervals
extends LyComponent

The LyIntervals class is a generated Java implementation that corresponds to the element INTERVALS of the descriptive grammar of the views (views.dtd). <INTERVALS> : Time unit for the length of the intervals of the variables to study, in the case of dates: YEARS | MONTHS | DAYS | HOURS | MINS | SECS By default, the unit is YEARS An INTERVALS element allows defining the series of intervals of the variables to study and of the variable according to which they are studied. This is useful only if the xVal attribute of CHART is X_INTERVALS or if the yVal attribute of CHART is Y_COUNT_INTERVALS.

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

Nested Class Summary
static class LyIntervals.TimeUnit
          Possible values for attribute 'xTimeUnit'.
 
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
LyIntervals()
          Default constructor.
 
Method Summary
 LyComponent cloneComponent()
          Method for cloning a component.
static LyIntervals.TimeUnit getTimeUnit(java.lang.String token)
          Utility method to get xTimeUnit value from a string.
 double getXBegin()
          Gets value of xBegin.
 LyIntervals.TimeUnit getXTimeUnit()
          Gets value of xTimeUnit.
 float getXWidth()
          Gets value of xWidth.
 double getYBegin()
          Gets value of yBegin.
 LyIntervals.TimeUnit getYTimeUnit()
          Gets value of yTimeUnit.
 float getYWidth()
          Gets value of yWidth.
 void setXBegin(double xBegin)
          Initializes attribute xBegin to the given value.
 void setXTimeUnit(LyIntervals.TimeUnit xTimeUnit)
          Initializes attribute xTimeUnit to the given value.
 void setXWidth(float xWidth)
          Initializes attribute xWidth to the given value.
 void setYBegin(double yBegin)
          Initializes attribute yBegin to the given value.
 void setYTimeUnit(LyIntervals.TimeUnit yTimeUnit)
          Initializes attribute yTimeUnit to the given value.
 void setYWidth(float yWidth)
          Initializes attribute yWidth 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.LyComponent
addComponent, addData, addEventFunction, clearChildrenBounds, free, freeze, getBounds, getChild, getChildCount, getChildFromCache, getChildrenBounds, getComponent, getComponent, getComponent, getComponent, getComponent, getComponentAt, getComponentAt, getComponentByInternalId, getComponentByLabel, getComponents, getComponentWithModel, getData, getDatas, getEnvironment, getEventFunctions, getId, 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

LyIntervals

public LyIntervals()
Default constructor.

Method Detail

getTimeUnit

public static final LyIntervals.TimeUnit getTimeUnit(java.lang.String token)
Utility method to get xTimeUnit value from a string.

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

cloneComponent

public LyComponent cloneComponent()
Method for cloning a component.

Specified by:
cloneComponent in class LyComponent

getXBegin

public double getXBegin()
Gets value of xBegin.

Returns:
value of xBegin.

getXWidth

public float getXWidth()
Gets value of xWidth.

Returns:
value of xWidth.

getXTimeUnit

public LyIntervals.TimeUnit getXTimeUnit()
Gets value of xTimeUnit.

Returns:
value of xTimeUnit.

getYBegin

public double getYBegin()
Gets value of yBegin.

Returns:
value of yBegin.

getYWidth

public float getYWidth()
Gets value of yWidth.

Returns:
value of yWidth.

getYTimeUnit

public LyIntervals.TimeUnit getYTimeUnit()
Gets value of yTimeUnit.

Returns:
value of yTimeUnit.

setXBegin

public void setXBegin(double xBegin)
Initializes attribute xBegin to the given value.

Parameters:
xBegin - New value of xBegin.

setXWidth

public void setXWidth(float xWidth)
Initializes attribute xWidth to the given value.

Parameters:
xWidth - New value of xWidth.

setXTimeUnit

public void setXTimeUnit(LyIntervals.TimeUnit xTimeUnit)
Initializes attribute xTimeUnit to the given value.

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

setYBegin

public void setYBegin(double yBegin)
Initializes attribute yBegin to the given value.

Parameters:
yBegin - New value of yBegin.

setYWidth

public void setYWidth(float yWidth)
Initializes attribute yWidth to the given value.

Parameters:
yWidth - New value of yWidth.

setYTimeUnit

public void setYTimeUnit(LyIntervals.TimeUnit yTimeUnit)
Initializes attribute yTimeUnit to the given value.

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

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