|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.dlsc.flexgantt.model.AbstractPropertiesOwner com.dlsc.flexgantt.model.gantt.DefaultTimelineObject<T> com.dlsc.flexgantt.model.gantt.DefaultCapacityObject<T>
T
- the type of the wrapped user / business objectpublic class DefaultCapacityObject<T>
A capacity object is a timeline object that provides additional information about the usage of a resource during a specified time interval. Capacity objects can be edited so that the capacity that they represent becomes larger or smaller. Capacity objects, just like other timeline objects, wrap so-called user or business objects. Capacity objects are the graphical representation of these user / business objects.
Constructor Summary | |
---|---|
DefaultCapacityObject()
Constructs a new capacity object. |
|
DefaultCapacityObject(double capacityUsed)
Constructs a new capacity object. |
|
DefaultCapacityObject(ITimeSpan timeSpan)
Constructs a new capacity object. |
|
DefaultCapacityObject(ITimeSpan timeSpan,
double capacityUsed)
Constructs a new capacity object. |
|
DefaultCapacityObject(java.lang.String name)
Constructs a new capacity object. |
|
DefaultCapacityObject(java.lang.String name,
double capacityUsed)
Constructs a new capacity object. |
|
DefaultCapacityObject(java.lang.String name,
ITimeSpan timeSpan)
Constructs a new capacity object. |
|
DefaultCapacityObject(java.lang.String name,
ITimeSpan timeSpan,
double capacityUsed)
Constructs a new capacity object. |
Method Summary | |
---|---|
double |
getCapacityUsed()
Returns the used capacity of the object. |
boolean |
isCapacityChangeable()
Returns TRUE if the capacity used value can be edited. |
void |
setCapacityChangeable(boolean changeable)
Specifies whether or not the capacity represented by the object can be interactively edited by the user. |
void |
setCapacityUsed(double c)
Changes the capacity used by the object. |
Methods inherited from class com.dlsc.flexgantt.model.gantt.DefaultTimelineObject |
---|
addChild, compareTo, getChildren, getDragActions, getLabel, getLineIndex, getPopupObject, getStatus, getTimeSpan, getUserObject, isDeletable, isDurationChangeable, isInPlaceEditable, isParent, isSelectable, isStartTimeChangeable, removeChild, setChildren, setChildren, setDeletable, setDragActions, setDurationChangeable, setInPlaceEditable, setLabel, setLineIndex, setPopupObject, setSelectable, setStartTimeChangeable, setStatus, setTimeSpan, setUserObject, toString |
Methods inherited from class com.dlsc.flexgantt.model.AbstractPropertiesOwner |
---|
getProperty, setProperty |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.dlsc.flexgantt.model.gantt.ITimelineObject |
---|
getChildren, getDragActions, getLabel, getLineIndex, getPopupObject, getStatus, getTimeSpan, isDeletable, isDurationChangeable, isInPlaceEditable, isParent, isSelectable, isStartTimeChangeable, setTimeSpan |
Methods inherited from interface com.dlsc.flexgantt.model.IPropertiesOwner |
---|
getProperty, setProperty |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Constructor Detail |
---|
public DefaultCapacityObject(java.lang.String name, ITimeSpan timeSpan, double capacityUsed)
name
- the name of the capacity object gets used in various places in
the user interface (e.g. tooltip, status bar)timeSpan
- the time interval occupied by the capacity objectcapacityUsed
- the used capacity represented by the capacity objectpublic DefaultCapacityObject(java.lang.String name, ITimeSpan timeSpan)
name
- the name of the capacity object gets used in various places in
the user interface (e.g. tooltip, status bar)timeSpan
- the time interval occupied by the capacity objectpublic DefaultCapacityObject(java.lang.String name, double capacityUsed)
TimeSpan.UNDEFINED
.
name
- the name of the capacity object gets used in various places in
the user interface (e.g. tooltip, status bar)capacityUsed
- the used capacity represented by the capacity objectpublic DefaultCapacityObject(java.lang.String name)
TimeSpan.UNDEFINED
and its capacity used value equals zero.
name
- the name of the capacity object gets used in various places in
the user interface (e.g. tooltip, status bar)public DefaultCapacityObject(ITimeSpan timeSpan, double capacityUsed)
timeSpan
- the time interval occupied by the capacity objectcapacityUsed
- the used capacity represented by the capacity objectpublic DefaultCapacityObject(ITimeSpan timeSpan)
timeSpan
- the time interval occupied by the capacity objectpublic DefaultCapacityObject(double capacityUsed)
TimeSpan.UNDEFINED
capacityUsed
- the used capacity represented by the capacity objectpublic DefaultCapacityObject()
Method Detail |
---|
public double getCapacityUsed()
ICapacityObject
getCapacityUsed
in interface ICapacityObject
ICapacityObject.setCapacityUsed(double)
public void setCapacityUsed(double c)
ICapacityObject
setCapacityUsed
in interface ICapacityObject
c
- the new capacity usage of the objectICapacityObject.getCapacityUsed()
public void setCapacityChangeable(boolean changeable)
changeable
- if TRUE the capacity can be editedIEditCapacityObjectPolicy.isCapacityChangeable(Object, Object,
IGanttChartModel)
public boolean isCapacityChangeable()
ICapacityObject
isCapacityChangeable
in interface ICapacityObject
IEditCapacityObjectPolicy.isCapacityChangeable(Object, Object,
IGanttChartModel)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |