net.sourceforge.chart2d
Class LBChartArea
java.lang.Object
|
+--net.sourceforge.chart2d.Area
|
+--net.sourceforge.chart2d.FontArea
|
+--net.sourceforge.chart2d.TitledArea
|
+--net.sourceforge.chart2d.ChartArea
|
+--net.sourceforge.chart2d.GraphChartArea
|
+--net.sourceforge.chart2d.LBChartArea
- class LBChartArea
- extends GraphChartArea
A graph chart with the data category lables located along the botton of the
graph chart. A graph chart is a bar chart, a line chart, a scatter plot
chart or any combination (i.e. any chart where data is represented in a
cartesian coordinate system). This class manages the xAxis, yAxis, legend,
and graph areas of the chart. This class cannot be added to a content pane;
if that is desired, use LBChart2D. This class is for custom painting, such
as custom painting a JComponent (i.e. overriding the
paintComponent (Graphics g) method). For customizing the LBChart2D class
to use with your data set and needs, you'll have to use this class
LBChartArea. You'll have to pass it your data sets in an array at least.
You'll also want to set the title of this class, and also get its
xAxis and other parts for setting their titles, labels, and so on.
| Fields inherited from class net.sourceforge.chart2d.Area |
BETWEEN, BOTTOM, CENTER, CENTERED, CONTINUOUS, DASHED, DOTTED, FLOAT, HEIGHT, HORIZONTAL, INTEGER, LABELSBOTTOM, LABELSLEFT, LEFT, LEFTBOTTOM, LEFTRIGHT, LEFTTOP, LESSER, MAX, MAXMODEL, MIN, RIGHT, RIGHTBOTTOM, RIGHTTOP, TOP, TOPBOTTOM, VERTICAL, WIDTH |
|
Constructor Summary |
(package private) |
LBChartArea()
Creates LBChartArea with ChartArea's defaults. |
|
Method Summary |
(package private) boolean |
getLBChartAreaNeedsUpdate()
Indicates whether some property of this class has changed. |
(package private) java.awt.Dimension |
getPrefSize(java.awt.Graphics2D g2D)
Returns the minimum size that the chart would need if it was to be redrawn,
the "preferred" size. |
(package private) void |
paintComponent(java.awt.Graphics2D g2D)
Paints all the components of this class. |
(package private) void |
resetLBChartAreaModel(boolean reset)
Resets the model for this class. |
(package private) void |
updateLBChartArea(java.awt.Graphics2D g2D)
Updates this parent's variables, and this' variables. |
| Methods inherited from class net.sourceforge.chart2d.GraphChartArea |
addDataset, addGraph, clearDatasetVector, getCustomGreatestValue, getCustomizeGreatestValue, getCustomizeLeastValue, getCustomLeastValue, getDataSetsVector, getDatasetVector, getGraphableToAvailableRatio, getGraphChartAreaNeedsUpdate, getGraphOverlayOrder, getGraphOverlayOrderCustom, getGraphToHeightRatio, getGraphToWidthRatio, getGraphVector, getNumbersAxisRangeHigh, getNumbersAxisRangeLow, getNumPlotAxisLabels, getXAxis, getXAxisToHeightRatio, getXAxisToWidthRatio, getYAxis, getYAxisToHeightRatio, getYAxisToWidthRatio, resetGraphChartAreaModel, setCustomGreatestValue, setCustomLeastValue, setGraphableToAvailableRatio, setGraphOverlayOrder, setGraphOverlayOrderCustom, setGraphToHeightRatio, setGraphToWidthRatio, setNumbersAxisRangeHigh, setNumbersAxisRangeLow, setNumPlotAxisLabels, setXAxisToHeightRatio, setXAxisToWidthRatio, setYAxisToHeightRatio, setYAxisToWidthRatio, updateGraphChartArea |
| Methods inherited from class net.sourceforge.chart2d.ChartArea |
getAutoColor, getAutoSetLayoutRatios, getBetweenChartAndLegendGapExistence, getBetweenChartAndLegendGapThicknessModel, getChartAreaNeedsUpdate, getColorsType, getDataCategoryTotals, getDataSetColors, getDataSetColors, getDataSetTotal, getFloatToString, getLabelsPrecisionNum, getLegend, getLegendExistence, getLegendToHeightRatio, getLegendToWidthRatio, getPrecisionCeil, getPrecisionFloor, getPrecisionRound, getTitleSqueeze, resetChartAreaModel, setAutoColor, setAutoSetLayoutRatios, setBetweenChartAndLegendGapExistence, setBetweenChartAndLegendGapThicknessModel, setDataSetColors, setDataSetColorsType, setLabelsPrecisionNum, setLegendExistence, setLegendToHeightRatio, setLegendToWidthRatio, setNumDataSets, setTitleSqueeze, updateChartArea |
| Methods inherited from class net.sourceforge.chart2d.TitledArea |
getBetweenTitleAndSpaceGapThickness, getBetweenTitleAndSpaceGapThicknessModel, getMaxEntitledSpaceBounds, getTitle, getTitleAutoLocate, getTitledAreaNeedsUpdate, getTitleExistence, getTitleJustifications, getTitleSize, getTitleText, resetTitledAreaModel, setBetweenTitleAndSpaceGapExistence, setBetweenTitleAndSpaceGapThicknessModel, setTitle, setTitleAutoLocate, setTitleExistence, setTitleJustifications, setTitleLocation, setTitleRotateLeft, updateTitledArea |
| Methods inherited from class net.sourceforge.chart2d.FontArea |
getFont, getFontAreaNeedsUpdate, getFontColor, getFontName, getFontPointModel, getFontStyle, resetFontAreaModel, setFontColor, setFontName, setFontPointModel, setFontStyle, updateFontArea |
| Methods inherited from class net.sourceforge.chart2d.Area |
applyRatio, getAreaNeedsUpdate, getAutoSize, getBackgroundColor, getBackgroundExistence, getBorderColor, getBorderColor, getBorderExistence, getBorderExistence, getBorderThickness, getBorderThickness, getBorderThicknessModel, getBorderThicknessModel, getGapThickness, getGapThicknessModel, getJustifications, getRatio, getResetAreaModel, getSize, getSizeLocation, getSpaceSize, getSpaceSizeLocation, resetAreaModel, setAutoJustifys, setAutoSizes, setBackgroundColor, setBackgroundExistence, setBorderAssociations, setBorderColor, setBorderColors, setBorderCornerAssociations, setBorderExistence, setBorderExistences, setBorderThicknessModel, setBorderThicknessModels, setCustomRatio, setGapAssociations, setGapExistence, setGapExistences, setGapThicknessModel, setGapThicknessModels, setJustifications, setLockRatios, setSize, setSizeLocation, setSpaceSize, setSpaceSizeLocation, updateArea |
| Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LBChartArea
LBChartArea()
- Creates LBChartArea with ChartArea's defaults.
getPrefSize
java.awt.Dimension getPrefSize(java.awt.Graphics2D g2D)
- Returns the minimum size that the chart would need if it was to be redrawn,
the "preferred" size. The preferred size is the minimum size which would
need to be set as the maxmodel size of the chart, if the chart was to be
redrawn (assuming magnification is disabled).
- Parameters:
g2D - The graphics context for calculations and painting.- Returns:
- The size of the minimum maxmodel for a redraw.
getLBChartAreaNeedsUpdate
boolean getLBChartAreaNeedsUpdate()
- Indicates whether some property of this class has changed.
- Returns:
- True if some property has changed.
resetLBChartAreaModel
void resetLBChartAreaModel(boolean reset)
- Resets the model for this class. The model is used for shrinking and
growing of its components based on the maximum size of this class. If this
method is called, then the next time the maximum size is set, this classes
model maximum size will be made equal to the new maximum size. Effectively
what this does is ensure that whenever this objects maximum size is equal
to the one given, then all of the components will take on their default
model sizes. Note: This is only useful when auto model max sizing is
disabled.
- Parameters:
reset - True causes the max model to be reset upon next max sizing.
updateLBChartArea
void updateLBChartArea(java.awt.Graphics2D g2D)
- Updates this parent's variables, and this' variables.
- Parameters:
g2D - The graphics context to use for calculations.
paintComponent
void paintComponent(java.awt.Graphics2D g2D)
- Paints all the components of this class. First all variables are updated.
- Overrides:
paintComponent in class GraphChartArea
- Parameters:
g2D - The graphics context for calculations and painting.