com.jidesoft.gantt
Class IntervalMarker<T>
java.lang.Object
com.jidesoft.gantt.AbstractPeriodBackgroundPainter<T>
com.jidesoft.gantt.IntervalMarker<T>
- Type Parameters:
T
- The base unit of the scale.
- All Implemented Interfaces:
- PeriodBackgroundPainter<T>
public class IntervalMarker<T>
- extends AbstractPeriodBackgroundPainter<T>
Marks an interval of the scale independent of any Period of the ScaleModel. The Interval marker can also be used to
mark just an instant by specifying the same start and end instant.
Method Summary |
Paint |
getBackgroundPaint()
|
protected Paint |
getBackgroundPaint(T startInstant,
T endInstant)
|
T |
getEndInstant()
|
Paint |
getOutlinePaint()
|
protected Paint |
getOutlinePaint(T startInstant,
T endInstant)
|
int |
getOutlineSides()
|
protected int |
getOutlineSides(T startInstant,
T endInstant)
|
Stroke |
getOutlineStroke()
|
protected Stroke |
getOutlineStroke(T startInstant,
T endInstant)
|
T |
getStartInstant()
|
void |
paintPeriodBackground(GanttChart<T,GanttEntry<T>> ganttChart,
Graphics2D graphics,
T startInstant,
T endInstant,
int periodStartX,
int periodStartY,
int periodEndX,
int periodEndY)
Paints the background. |
void |
setBackgroundPaint(Paint backgroundPaint)
|
void |
setEndInstant(T endInstant)
|
void |
setOutlinePaint(Paint outlinePaint)
|
void |
setOutlineSides(int outlineSides)
|
void |
setOutlineStroke(Stroke outlineStroke)
|
void |
setStartInstant(T startInstant)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IntervalMarker
public IntervalMarker(Paint paint,
Stroke stroke,
T instant)
IntervalMarker
public IntervalMarker(Paint backgroundPaint,
Paint outlinePaint,
Stroke outlineStroke,
int outlineSides,
T startInstant,
T endInstant)
IntervalMarker
public IntervalMarker()
getBackgroundPaint
protected Paint getBackgroundPaint(T startInstant,
T endInstant)
- Specified by:
getBackgroundPaint
in class AbstractPeriodBackgroundPainter<T>
getOutlinePaint
protected Paint getOutlinePaint(T startInstant,
T endInstant)
- Specified by:
getOutlinePaint
in class AbstractPeriodBackgroundPainter<T>
getOutlineSides
protected int getOutlineSides(T startInstant,
T endInstant)
- Specified by:
getOutlineSides
in class AbstractPeriodBackgroundPainter<T>
getOutlineStroke
protected Stroke getOutlineStroke(T startInstant,
T endInstant)
- Specified by:
getOutlineStroke
in class AbstractPeriodBackgroundPainter<T>
paintPeriodBackground
public void paintPeriodBackground(GanttChart<T,GanttEntry<T>> ganttChart,
Graphics2D graphics,
T startInstant,
T endInstant,
int periodStartX,
int periodStartY,
int periodEndX,
int periodEndY)
- Description copied from interface:
PeriodBackgroundPainter
- Paints the background.
- Specified by:
paintPeriodBackground
in interface PeriodBackgroundPainter<T>
- Overrides:
paintPeriodBackground
in class AbstractPeriodBackgroundPainter<T>
- Parameters:
ganttChart
- the gantt chart.graphics
- the graphicsstartInstant
- the starting value of the current period. The painter will paint the background of gantt
chart period by period. Each time, this method will be called for each period. The
startInstant is the starting value of the current period.endInstant
- the ending value of the current period.periodStartX
- the startX of the current period.periodStartY
- the startY of the current period.periodEndX
- the endX of the current period.periodEndY
- the endY of the current period.
getStartInstant
public T getStartInstant()
setStartInstant
public void setStartInstant(T startInstant)
getEndInstant
public T getEndInstant()
setEndInstant
public void setEndInstant(T endInstant)
getBackgroundPaint
public Paint getBackgroundPaint()
setBackgroundPaint
public void setBackgroundPaint(Paint backgroundPaint)
getOutlinePaint
public Paint getOutlinePaint()
setOutlinePaint
public void setOutlinePaint(Paint outlinePaint)
getOutlineStroke
public Stroke getOutlineStroke()
setOutlineStroke
public void setOutlineStroke(Stroke outlineStroke)
getOutlineSides
public int getOutlineSides()
setOutlineSides
public void setOutlineSides(int outlineSides)