public class GanttChart.Record extends java.lang.Object implements java.lang.Comparable<GanttChart.Record>
Modifier and Type | Field and Description |
---|---|
(package private) java.lang.String |
actorName
Name of the actor
|
private double |
bottomLeftX
Bottom left x co-ordinate
|
private double |
bottomLeftY
Bottom left y co-ordinate
|
(package private) java.lang.String |
color
Color assigned to the task
|
(package private) long |
endTime
End time of the task
|
boolean |
printNameInGraph
Print name of the task in the Gantt chart
|
(package private) int |
processorIndex
Index of the processor
|
(package private) java.lang.String |
processorName
Name of the processor
|
(package private) long |
startTime
Start time of the task
|
private double |
topRightX
Top Right x co-ordinate
|
private double |
topRightY
Top Right y co-ordinate
|
private double |
yPosition
Vertical placement in the Gantt chart
|
Constructor and Description |
---|
GanttChart.Record(int processorIndex,
long startTime,
long endTime,
java.lang.String actorName)
Build a record for Gantt chart.
|
GanttChart.Record(java.lang.String processorName,
int processorIndex,
long startTime,
long endTime,
java.lang.String actorName)
Build a record for Gantt chart.
|
GanttChart.Record(java.lang.String processorName,
int processorIndex,
long startTime,
long endTime,
java.lang.String actorName,
int colorIndex)
Build a record for Gantt chart
|
GanttChart.Record(java.lang.String processorName,
int processorIndex,
long startTime,
long endTime,
java.lang.String actorName,
java.lang.String color)
Build a record for Gantt chart
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(GanttChart.Record anotherInstance)
Compare record with another record.
|
public boolean printNameInGraph
java.lang.String processorName
int processorIndex
long startTime
long endTime
java.lang.String actorName
private double bottomLeftX
private double bottomLeftY
private double topRightX
private double topRightY
private double yPosition
java.lang.String color
public GanttChart.Record(java.lang.String processorName, int processorIndex, long startTime, long endTime, java.lang.String actorName, int colorIndex)
processorName
- name of the processorprocessorIndex
- index of the processorstartTime
- start time of the taskendTime
- end time of the taskactorName
- name of the taskcolorIndex
- index of the color in color book.public GanttChart.Record(java.lang.String processorName, int processorIndex, long startTime, long endTime, java.lang.String actorName, java.lang.String color)
processorName
- name of the processorprocessorIndex
- index of the processorstartTime
- start time of the taskendTime
- end time of the taskactorName
- name of the taskcolor
- Hex color to be assigned to the taskpublic GanttChart.Record(java.lang.String processorName, int processorIndex, long startTime, long endTime, java.lang.String actorName)
processorName
- name of the processorprocessorIndex
- index of the processorstartTime
- start time of the taskendTime
- end time of the taskactorName
- name of the taskpublic GanttChart.Record(int processorIndex, long startTime, long endTime, java.lang.String actorName)
processorIndex
- index of the processorstartTime
- start time of the taskendTime
- end time of the taskactorName
- name of the taskpublic int compareTo(GanttChart.Record anotherInstance)
compareTo
in interface java.lang.Comparable<GanttChart.Record>