public class CapacityLine extends Object implements Comparable<CapacityLine>
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 and Description |
---|
CapacityLine(double value)
Constructs a new capacity line (the label of the line will be empty).
|
CapacityLine(double value,
String label)
Constructs a new capacity line.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(CapacityLine line) |
double |
getCapacity()
Returns the capacity represented by the line.
|
String |
getLabel()
Returns the label of the capacity line.
|
public CapacityLine(double value, String label)
value
- the value of the capacity linelabel
- the label of the capacity linepublic CapacityLine(double value)
value
- the value of the capacity linepublic String getLabel()
public double getCapacity()
public int compareTo(CapacityLine line)
compareTo
in interface Comparable<CapacityLine>
Copyright © 2006–2020 Dirk Lemmermann Software & Consulting. All rights reserved.