org.swtchart.internal.ChartLayout Class Reference

Manages the layout on plot chart panel. More...

Inheritance diagram for org.swtchart.internal.ChartLayout:
Inheritance graph
[legend]
Collaboration diagram for org.swtchart.internal.ChartLayout:
Collaboration graph
[legend]

List of all members.

Classes

class  AxisLayoutData
 Axis layout data. More...

Public Member Functions

 ChartLayout ()
 Constructor.

Static Public Attributes

static final int MARGIN = 5
 the margin
static final int PADDING = 5
 the padding

Protected Member Functions

Point computeSize (Composite composite, int wHint, int hHint, boolean flushCache)
void layout (Composite composite, boolean flushCache)

Private Member Functions

void initWidgetSizeVariables ()
 Initializes the size variables of widgets.
boolean parseControls (Composite composite)
 Parses the controls on given composite.
void initTitleAndLegendSize ()
 Initializes the size of title and legend.
void initAxisSize ()
 Initializes the size of axes.
void computePlotAreaSize (Rectangle r)
 Computes the size of plot area.
void computeAxisSize (Rectangle r)
 Computes the size of axes updating tick labels.
void adjustForRotatedTickLabels (Rectangle r)
 Adjust the axis size for rotated tick labels.
void adjustForMostLeftRightTickLabel (Rectangle r)
 Adjust the axis size for most left/right tick label.
void updateHorizontalAxisTick ()
 Updates the horizontal axis tick.
void updateVerticalAxisTick ()
 Updates the vertical axis tick.
void layoutTitle (Rectangle r)
 Layouts the title.
void layoutLegend (Rectangle r)
 Layouts the legend.
void layoutPlot (Rectangle r)
 Layouts the plot.
void layoutAxes (Rectangle r)
 Layouts the axes.
void layoutBottomAxis (Rectangle r, AxisLayoutData layoutData)
 Layouts the bottom axis.
void layoutTopAxis (Rectangle r, AxisLayoutData layoutData)
 Layouts the top axis.
void layoutLeftAxis (Rectangle r, AxisLayoutData layoutData)
 Layouts the left axis.
void layoutRightAxis (Rectangle r, AxisLayoutData layoutData)
 Layouts the right axis.

Private Attributes

int titleHeight
 the title height
int titleWidth
 the title width
int legendWidth
 the legend width
int legendHeight
 the legend height
int bottomAxisHeight
 the bottom axis height
int topAxisHeight
 the top axis height
int leftAxisWidth
 the left axis width
int rightAxisWidth
 the right axis width
int plotAreaWidth
 the plot area width
int plotAreaHeight
 the plot area height
ChartTitle title
 the chart title
Legend legend
 the legend
PlotArea plot
 the plot area
Axis[] axes
 the axes
Axis[] horizontalAxes
 the horizontal axes
Axis[] verticalAxes
 the vertical axes
Map< Axis, AxisLayoutDataaxisLayoutDataMap
 the map between axis and axis layout data
int bottomAxisOffset = 0
 the offset for bottom axis
int topAxisOffset = 0
 the offset for top axis
int leftAxisOffset = 0
 the offset for left axis
int rightAxisOffset = 0
 the offset for right axis

Detailed Description

Manages the layout on plot chart panel.

Definition at line 30 of file ChartLayout.java.


Constructor & Destructor Documentation

org.swtchart.internal.ChartLayout.ChartLayout (  ) 

Constructor.

Definition at line 104 of file ChartLayout.java.

References org.swtchart.internal.ChartLayout.axisLayoutDataMap, and org.swtchart.internal.ChartLayout.initWidgetSizeVariables().

Here is the call graph for this function:


Member Function Documentation

void org.swtchart.internal.ChartLayout.adjustForMostLeftRightTickLabel ( Rectangle  r  )  [private]
void org.swtchart.internal.ChartLayout.adjustForRotatedTickLabels ( Rectangle  r  )  [private]
void org.swtchart.internal.ChartLayout.computeAxisSize ( Rectangle  r  )  [private]
void org.swtchart.internal.ChartLayout.computePlotAreaSize ( Rectangle  r  )  [private]
Point org.swtchart.internal.ChartLayout.computeSize ( Composite  composite,
int  wHint,
int  hHint,
boolean  flushCache 
) [protected]

Definition at line 129 of file ChartLayout.java.

void org.swtchart.internal.ChartLayout.initAxisSize (  )  [private]
void org.swtchart.internal.ChartLayout.initTitleAndLegendSize (  )  [private]
void org.swtchart.internal.ChartLayout.initWidgetSizeVariables (  )  [private]
void org.swtchart.internal.ChartLayout.layout ( Composite  composite,
boolean  flushCache 
) [protected]
void org.swtchart.internal.ChartLayout.layoutAxes ( Rectangle  r  )  [private]
void org.swtchart.internal.ChartLayout.layoutBottomAxis ( Rectangle  r,
AxisLayoutData  layoutData 
) [private]
void org.swtchart.internal.ChartLayout.layoutLeftAxis ( Rectangle  r,
AxisLayoutData  layoutData 
) [private]
void org.swtchart.internal.ChartLayout.layoutLegend ( Rectangle  r  )  [private]
void org.swtchart.internal.ChartLayout.layoutPlot ( Rectangle  r  )  [private]
void org.swtchart.internal.ChartLayout.layoutRightAxis ( Rectangle  r,
AxisLayoutData  layoutData 
) [private]
void org.swtchart.internal.ChartLayout.layoutTitle ( Rectangle  r  )  [private]

Layouts the title.

Parameters:
r the rectangle to layout

Definition at line 408 of file ChartLayout.java.

References org.swtchart.internal.ChartLayout.MARGIN, org.swtchart.internal.Title.setBounds(), org.swtchart.internal.ChartLayout.title, org.swtchart.internal.ChartLayout.titleHeight, and org.swtchart.internal.ChartLayout.titleWidth.

Referenced by org.swtchart.internal.ChartLayout.layout().

Here is the call graph for this function:

Here is the caller graph for this function:

void org.swtchart.internal.ChartLayout.layoutTopAxis ( Rectangle  r,
AxisLayoutData  layoutData 
) [private]
boolean org.swtchart.internal.ChartLayout.parseControls ( Composite  composite  )  [private]

Parses the controls on given composite.

Parameters:
composite the composite
Returns:
true if all children found

Definition at line 167 of file ChartLayout.java.

References org.swtchart.internal.ChartLayout.axes, org.swtchart.IAxisSet.getAxes(), org.swtchart.IAxisSet.getXAxes(), org.swtchart.IAxisSet.getYAxes(), org.swtchart.internal.ChartLayout.horizontalAxes, org.swtchart.internal.ChartLayout.legend, org.swtchart.internal.ChartLayout.plot, org.swtchart.internal.ChartLayout.title, and org.swtchart.internal.ChartLayout.verticalAxes.

Referenced by org.swtchart.internal.ChartLayout.layout().

Here is the call graph for this function:

Here is the caller graph for this function:

void org.swtchart.internal.ChartLayout.updateHorizontalAxisTick (  )  [private]
void org.swtchart.internal.ChartLayout.updateVerticalAxisTick (  )  [private]

Member Data Documentation


The documentation for this class was generated from the following file:

Generated on 26 Oct 2015 for SWTChart.org by  doxygen 1.6.1