T
- the type of the wrapped user / business objectpublic class DefaultCapacityObject<T> extends DefaultTimelineObject<T> implements ICapacityObject
Constructor and Description |
---|
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(String name)
Constructs a new capacity object.
|
DefaultCapacityObject(String name,
double capacityUsed)
Constructs a new capacity object.
|
DefaultCapacityObject(String name,
ITimeSpan timeSpan)
Constructs a new capacity object.
|
DefaultCapacityObject(String name,
ITimeSpan timeSpan,
double capacityUsed)
Constructs a new capacity object.
|
Modifier and Type | Method and Description |
---|---|
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.
|
addChild, compareTo, getChildren, getDragActions, getLabel, getLineIndex, getPopupObject, getPopupTitleObject, getStatus, getTimeSpan, getUserObject, isDeletable, isDurationChangeable, isInPlaceEditable, isParent, isSelectable, isStartTimeChangeable, removeChild, setChildren, setChildren, setDeletable, setDragActions, setDurationChangeable, setInPlaceEditable, setLabel, setLineIndex, setPopupObject, setPopupTitleObject, setSelectable, setStartTimeChangeable, setStatus, setTimeSpan, setUserObject, toString
getProperty, setProperty
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getChildren, getDragActions, getLabel, getLineIndex, getPopupObject, getPopupTitleObject, getStatus, getTimeSpan, isDeletable, isDurationChangeable, isInPlaceEditable, isParent, isSelectable, isStartTimeChangeable, setTimeSpan
getProperty, setProperty
compareTo
public DefaultCapacityObject(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(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(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(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()
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(TimelineObjectPath,
IGanttChartModel)
public boolean isCapacityChangeable()
ICapacityObject
isCapacityChangeable
in interface ICapacityObject
IEditCapacityObjectPolicy.isCapacityChangeable(TimelineObjectPath,
IGanttChartModel)
Copyright © 2006–2020 Dirk Lemmermann Software & Consulting. All rights reserved.