com.jidesoft.gantt
Class DefaultPeriodBackgroundPainter<T>
java.lang.Object
com.jidesoft.gantt.AbstractPeriodBackgroundPainter<T>
com.jidesoft.gantt.DefaultPeriodBackgroundPainter<T>
- Type Parameters:
T
- The type of the bases unit of the scale, for example Date or Integer.
- All Implemented Interfaces:
- PeriodBackgroundPainter<T>
public class DefaultPeriodBackgroundPainter<T>
- extends AbstractPeriodBackgroundPainter<T>
DefaultPeriodBackgroundPainter
provides a default implementation for
PeriodBackgroundPainter
.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultPeriodBackgroundPainter
public DefaultPeriodBackgroundPainter(Period forPeriod)
- Marks the start of each period with a dashed line.
DefaultPeriodBackgroundPainter
public DefaultPeriodBackgroundPainter(Period forPeriod,
Paint backgroundPaint,
Paint outlinePaint,
Stroke outlineStroke,
int outlineSides)
setBackgroundPaint
public void setBackgroundPaint(Paint fillPaint)
getBackgroundPaint
public Paint getBackgroundPaint(T startInstant,
T endInstant)
- Specified by:
getBackgroundPaint
in class AbstractPeriodBackgroundPainter<T>
setOutlinePaint
public void setOutlinePaint(Paint paint)
getOutlinePaint
protected Paint getOutlinePaint(T startInstant,
T endInstant)
- Specified by:
getOutlinePaint
in class AbstractPeriodBackgroundPainter<T>
setOutlineStroke
public void setOutlineStroke(Stroke stroke)
getOutlineStroke
public Stroke getOutlineStroke(T startInstant,
T endInstant)
- Specified by:
getOutlineStroke
in class AbstractPeriodBackgroundPainter<T>
getOutlineSides
public int getOutlineSides(T startInstant,
T endInstant)
- Specified by:
getOutlineSides
in class AbstractPeriodBackgroundPainter<T>
setOutlineSides
public void setOutlineSides(int defaultOutlineSides)