JIDE 3.5.15

com.jidesoft.gantt
Class DefaultPeriodBackgroundPainter<T>

java.lang.Object
  extended by com.jidesoft.gantt.AbstractPeriodBackgroundPainter<T>
      extended by 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.


Field Summary
 
Fields inherited from class com.jidesoft.gantt.AbstractPeriodBackgroundPainter
OUTLINE_DEFAULT, OUTLINE_END, OUTLINE_START
 
Constructor Summary
DefaultPeriodBackgroundPainter(Period forPeriod)
          Marks the start of each period with a dashed line.
DefaultPeriodBackgroundPainter(Period forPeriod, Paint backgroundPaint, Paint outlinePaint, Stroke outlineStroke, int outlineSides)
           
 
Method Summary
 Paint getBackgroundPaint(T startInstant, T endInstant)
           
protected  Paint getOutlinePaint(T startInstant, T endInstant)
           
 int getOutlineSides(T startInstant, T endInstant)
           
 Stroke getOutlineStroke(T startInstant, T endInstant)
           
 void setBackgroundPaint(Paint fillPaint)
           
 void setOutlinePaint(Paint paint)
           
 void setOutlineSides(int defaultOutlineSides)
           
 void setOutlineStroke(Stroke stroke)
           
 
Methods inherited from class com.jidesoft.gantt.AbstractPeriodBackgroundPainter
deriveStroke, getPeriod, paintBackground, paintPeriodBackground
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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)

JIDE 3.5.15