|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.dlsc.flexgantt.model.gantt.CapacityLine
public class CapacityLine
Capacity lines are used in combination with the IResourceNode
class.
The resource node can define several major and minor capacity lines. These
lines can be picked up by row renderers so that they can be drawn in the
background of each row. The rendering algorithm will also take the minimum
and maximum capacity in account when calculating the height of capacity
timeline objects (used for visualizing capacity profiles).
Constructor Summary | |
---|---|
CapacityLine(double value)
Constructs a new capacity line (the label of the line will be empty). |
|
CapacityLine(double value,
java.lang.String label)
Constructs a new capacity line. |
Method Summary | |
---|---|
int |
compareTo(CapacityLine line)
|
double |
getCapacity()
Returns the capacity represented by the line. |
java.lang.String |
getLabel()
Returns the label of the capacity line. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CapacityLine(double value, java.lang.String label)
value
- the value of the capacity linelabel
- the label of the capacity linepublic CapacityLine(double value)
value
- the value of the capacity lineMethod Detail |
---|
public java.lang.String getLabel()
public double getCapacity()
public int compareTo(CapacityLine line)
compareTo
in interface java.lang.Comparable<CapacityLine>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |