JIDE 3.5.15

com.jidesoft.plaf.basic
Class TableCellRendererPeriodHeaderPainter

java.lang.Object
  extended by com.jidesoft.plaf.basic.TableCellRendererPeriodHeaderPainter
All Implemented Interfaces:
PeriodHeaderPainter, Serializable, UIResource

public class TableCellRendererPeriodHeaderPainter
extends Object
implements PeriodHeaderPainter, UIResource

See Also:
Serialized Form

Constructor Summary
TableCellRendererPeriodHeaderPainter()
           
 
Method Summary
protected  Component createRendererComponent(ScaleArea<Object> scaleArea, TableCellRenderer renderer, PeriodConverter<Object> periodConverter, Period period, Object startInstant, Object endInstant)
           
protected  JTable getTable(ScaleArea<Object> scaleArea)
           
protected  TableCellRenderer getTableCellRenderer(ScaleArea<Object> scaleArea)
           
protected  boolean isBelowMininumDistance(Graphics2D graphics, ScaleArea<Object> scaleArea, ScaleModel<Object> model, Period period, Object instant)
           
protected  void paintAllPeriodIntervals(GanttChart<Object,GanttEntry<Object>> chart, Graphics2D graphics, List<Period> periods)
           
protected  void paintAllPeriodIntervals(ScaleArea<Object> scaleArea, Graphics2D graphics, List<Period> periods)
           
protected  void paintCell(ScaleArea<Object> scaleArea, Graphics2D g, Period period, PeriodConverter<Object> periodConverter, TableCellRenderer renderer, Object startInstant, Object endInstant, int periodStartX, int periodStartY, int periodEndX, int periodEndY)
           
 void paintPeriodHeaders(ScaleArea<Object> scaleArea, Graphics graphics)
           
protected  void paintPeriodInterval(ScaleArea<Object> scaleArea, Graphics2D graphics, Period period, Object startInstant, Object endInstant, int periodStartX, int periodStartY, int periodEndX, int periodEndY)
          Note: if the ScaleModel is null, this method will be called once with period and start/end instants null.
protected  void prepareRenderer(ScaleArea<Object> scaleArea, PeriodConverter<Object> periodConverter, Object startInstant, Object endInstant, Component rendererComponent)
           
protected  void releaseRenderer(ScaleArea<Object> scaleArea, PeriodConverter<Object> periodConverter, Object startInstant, Object endInstant, Component rendererComponent)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableCellRendererPeriodHeaderPainter

public TableCellRendererPeriodHeaderPainter()
Method Detail

getTable

protected JTable getTable(ScaleArea<Object> scaleArea)

getTableCellRenderer

protected TableCellRenderer getTableCellRenderer(ScaleArea<Object> scaleArea)

paintPeriodHeaders

public void paintPeriodHeaders(ScaleArea<Object> scaleArea,
                               Graphics graphics)
Specified by:
paintPeriodHeaders in interface PeriodHeaderPainter

paintPeriodInterval

protected void paintPeriodInterval(ScaleArea<Object> scaleArea,
                                   Graphics2D graphics,
                                   Period period,
                                   Object startInstant,
                                   Object endInstant,
                                   int periodStartX,
                                   int periodStartY,
                                   int periodEndX,
                                   int periodEndY)
Note: if the ScaleModel is null, this method will be called once with period and start/end instants null.

Parameters:
scaleArea - The ScaleArea the coordinates where calculated for.
graphics - The Graphics2D to paint. This might not be the graphics of the ScaleArea, but could be the GanttChart when painting the period background.
period - The current period to paint.
startInstant - The start instant of the specific period to paint.
endInstant - The end instant of the specific period to paint (exclusive, see ScaleModel.getPeriodEnd(Period, Object)).

paintCell

protected void paintCell(ScaleArea<Object> scaleArea,
                         Graphics2D g,
                         Period period,
                         PeriodConverter<Object> periodConverter,
                         TableCellRenderer renderer,
                         Object startInstant,
                         Object endInstant,
                         int periodStartX,
                         int periodStartY,
                         int periodEndX,
                         int periodEndY)

createRendererComponent

protected Component createRendererComponent(ScaleArea<Object> scaleArea,
                                            TableCellRenderer renderer,
                                            PeriodConverter<Object> periodConverter,
                                            Period period,
                                            Object startInstant,
                                            Object endInstant)

releaseRenderer

protected void releaseRenderer(ScaleArea<Object> scaleArea,
                               PeriodConverter<Object> periodConverter,
                               Object startInstant,
                               Object endInstant,
                               Component rendererComponent)

prepareRenderer

protected void prepareRenderer(ScaleArea<Object> scaleArea,
                               PeriodConverter<Object> periodConverter,
                               Object startInstant,
                               Object endInstant,
                               Component rendererComponent)

paintAllPeriodIntervals

protected void paintAllPeriodIntervals(GanttChart<Object,GanttEntry<Object>> chart,
                                       Graphics2D graphics,
                                       List<Period> periods)

paintAllPeriodIntervals

protected void paintAllPeriodIntervals(ScaleArea<Object> scaleArea,
                                       Graphics2D graphics,
                                       List<Period> periods)

isBelowMininumDistance

protected boolean isBelowMininumDistance(Graphics2D graphics,
                                         ScaleArea<Object> scaleArea,
                                         ScaleModel<Object> model,
                                         Period period,
                                         Object instant)

JIDE 3.5.15