JIDE 3.5.15

com.jidesoft.plaf.basic
Class BasicGanttChartUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by com.jidesoft.plaf.GanttChartUI
          extended by com.jidesoft.plaf.basic.BasicGanttChartUI

public class BasicGanttChartUI
extends GanttChartUI


Nested Class Summary
static class BasicGanttChartUI.BasicRelationPainter
           
 
Field Summary
protected  GanttChart<Object,GanttEntry<Object>> _chart
           
protected  CellRendererPane _rendererPane
           
static int DEFAULT_VISIBLE_RELATIONS_THRESHOLD
           
static String UI_GANTT_CHART_BACKGROUND
           
static String UI_GANTT_CHART_BACKGROUND_PAINTER
           
static String UI_GANTT_CHART_FONT
           
static String UI_GANTT_CHART_FOREGROUND
           
static String UI_VISIBLE_RELATIONS_THRESHOLD
          The UIManager key for an int specifying how many relations are painted.
 
Constructor Summary
BasicGanttChartUI()
           
 
Method Summary
static ComponentUI createUI(JComponent c)
           
 GanttEntry getEntryAt(int index, Point point)
           
 Dimension getPreferredScrollableViewportSize(GanttChart<?,?> ganttChart)
           
 Dimension getPreferredSize(JComponent c)
           
 int getSubEntryIndex(int index, Point point)
           
protected  void initializePainters(GanttChart<?,?> ganttChart)
           
protected  void installDefaults(GanttChart<Object,GanttEntry<Object>> ganttChart)
           
protected  void installKeyboardActions()
           
protected  void installListeners(GanttChart<Object,GanttEntry<Object>> ganttChart)
           
 void installUI(JComponent c)
           
static void loadActionMap(LazyActionMap map)
           
 void paint(Graphics g, JComponent c)
           
protected  void paintBackground(Graphics g, GanttChart<Object,GanttEntry<Object>> ganttChart)
           
protected  void paintEntries(Graphics g, GanttChart<Object,GanttEntry<Object>> ganttChart, int firstRow, int lastRow)
           
protected  void paintGanttEntry(Graphics g, GanttChart<?,?> ganttChart, int row, int column, Rectangle rect, Insets insets)
           
protected  void paintGanttEntry(Graphics g, GanttChart<?,?> ganttChart, int row, Rectangle rect, Insets insets)
           
protected  void paintGanttEntryRelation(Graphics graphics, GanttChart<Object,GanttEntry<Object>> ganttChart, GanttEntryRelation<GanttEntry<Object>> relation)
           
protected  void paintGanttEntryRelations(Graphics g, GanttChart<Object,GanttEntry<Object>> ganttChart, int firstRow, int lastRow)
           
protected  void paintGanttLabel(Graphics g, GanttChart<?,?> ganttChart, int row, int column, Rectangle rect)
           
protected  void paintGanttLabel(Graphics g, GanttChart<?,?> ganttChart, int row, Rectangle rect)
           
protected  void paintGrid(Graphics g, GanttChart<Object,GanttEntry<Object>> ganttChart, int rMin, int rMax)
           
protected  void paintPeriodBackgrounds(Graphics g, GanttChart<Object,GanttEntry<Object>> ganttChart)
           
protected  void paintSelection(Graphics g, GanttChart<Object,GanttEntry<Object>> ganttChart, int firstRow, int lastRow)
           
protected  void setPainterIfResource(GanttChart<?,?> ganttChart, int type, GanttEntryRelationPainter painter)
           
protected  void uninstallDefaults(GanttChart<Object,GanttEntry<Object>> ganttChart)
           
protected  void uninstallKeyboardActions()
           
protected  void uninstallListeners(GanttChart<?,?> ganttChart)
           
 void uninstallUI(JComponent c)
           
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UI_GANTT_CHART_FONT

public static final String UI_GANTT_CHART_FONT
See Also:
Constant Field Values

UI_GANTT_CHART_FOREGROUND

public static final String UI_GANTT_CHART_FOREGROUND
See Also:
Constant Field Values

UI_GANTT_CHART_BACKGROUND

public static final String UI_GANTT_CHART_BACKGROUND
See Also:
Constant Field Values

UI_GANTT_CHART_BACKGROUND_PAINTER

public static final String UI_GANTT_CHART_BACKGROUND_PAINTER
See Also:
Constant Field Values

UI_VISIBLE_RELATIONS_THRESHOLD

public static final String UI_VISIBLE_RELATIONS_THRESHOLD
The UIManager key for an int specifying how many relations are painted. For example, if the visible row are 10 to 20 and the threshold is 25 then the relations of the entries at 0-10 and 21-45 are painted if they cross over the visible part of the gantt chart.

See Also:
Constant Field Values

DEFAULT_VISIBLE_RELATIONS_THRESHOLD

public static final int DEFAULT_VISIBLE_RELATIONS_THRESHOLD
See Also:
Constant Field Values

_chart

protected GanttChart<Object,GanttEntry<Object>> _chart

_rendererPane

protected CellRendererPane _rendererPane
Constructor Detail

BasicGanttChartUI

public BasicGanttChartUI()
Method Detail

createUI

public static ComponentUI createUI(JComponent c)

installUI

public void installUI(JComponent c)
Overrides:
installUI in class ComponentUI

uninstallUI

public void uninstallUI(JComponent c)
Overrides:
uninstallUI in class ComponentUI

installDefaults

protected void installDefaults(GanttChart<Object,GanttEntry<Object>> ganttChart)

initializePainters

protected void initializePainters(GanttChart<?,?> ganttChart)

setPainterIfResource

protected void setPainterIfResource(GanttChart<?,?> ganttChart,
                                    int type,
                                    GanttEntryRelationPainter painter)

uninstallDefaults

protected void uninstallDefaults(GanttChart<Object,GanttEntry<Object>> ganttChart)

installKeyboardActions

protected void installKeyboardActions()

loadActionMap

public static void loadActionMap(LazyActionMap map)

uninstallKeyboardActions

protected void uninstallKeyboardActions()

installListeners

protected void installListeners(GanttChart<Object,GanttEntry<Object>> ganttChart)

uninstallListeners

protected void uninstallListeners(GanttChart<?,?> ganttChart)

paintBackground

protected void paintBackground(Graphics g,
                               GanttChart<Object,GanttEntry<Object>> ganttChart)

paintEntries

protected void paintEntries(Graphics g,
                            GanttChart<Object,GanttEntry<Object>> ganttChart,
                            int firstRow,
                            int lastRow)

paintGanttEntry

protected void paintGanttEntry(Graphics g,
                               GanttChart<?,?> ganttChart,
                               int row,
                               Rectangle rect,
                               Insets insets)

paintGanttEntry

protected void paintGanttEntry(Graphics g,
                               GanttChart<?,?> ganttChart,
                               int row,
                               int column,
                               Rectangle rect,
                               Insets insets)

paintGanttLabel

protected void paintGanttLabel(Graphics g,
                               GanttChart<?,?> ganttChart,
                               int row,
                               Rectangle rect)

paintGanttLabel

protected void paintGanttLabel(Graphics g,
                               GanttChart<?,?> ganttChart,
                               int row,
                               int column,
                               Rectangle rect)

paint

public void paint(Graphics g,
                  JComponent c)
Overrides:
paint in class ComponentUI

paintPeriodBackgrounds

protected void paintPeriodBackgrounds(Graphics g,
                                      GanttChart<Object,GanttEntry<Object>> ganttChart)

paintGrid

protected void paintGrid(Graphics g,
                         GanttChart<Object,GanttEntry<Object>> ganttChart,
                         int rMin,
                         int rMax)

paintSelection

protected void paintSelection(Graphics g,
                              GanttChart<Object,GanttEntry<Object>> ganttChart,
                              int firstRow,
                              int lastRow)

paintGanttEntryRelations

protected void paintGanttEntryRelations(Graphics g,
                                        GanttChart<Object,GanttEntry<Object>> ganttChart,
                                        int firstRow,
                                        int lastRow)

paintGanttEntryRelation

protected void paintGanttEntryRelation(Graphics graphics,
                                       GanttChart<Object,GanttEntry<Object>> ganttChart,
                                       GanttEntryRelation<GanttEntry<Object>> relation)

getPreferredSize

public Dimension getPreferredSize(JComponent c)
Overrides:
getPreferredSize in class ComponentUI

getPreferredScrollableViewportSize

public Dimension getPreferredScrollableViewportSize(GanttChart<?,?> ganttChart)
Specified by:
getPreferredScrollableViewportSize in class GanttChartUI

getSubEntryIndex

public int getSubEntryIndex(int index,
                            Point point)

getEntryAt

public GanttEntry getEntryAt(int index,
                             Point point)

JIDE 3.5.15