|
|||||||||
| Home >> All >> org >> ujac >> [ chart overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.ujac.chart
Class BaseChart

java.lang.Objectorg.ujac.chart.BaseChart
- All Implemented Interfaces:
- Chart
- Direct Known Subclasses:
- Base2DScaleChart, BasePieChart
- public abstract class BaseChart
- extends java.lang.Object
- implements Chart
- extends java.lang.Object
Name: BaseChart
Description: Description of the class.
Log: $Log: BaseChart.java,v $
Log: Revision 1.22 2003/11/25 22:52:52 lauerc
Log: Fixed JDK 1.3 incompabilities regarding Color constants.
Log:
Log: Revision 1.21 2003/11/23 17:06:26 lauerc
Log: Added missing javadoc tags.
Log:
Log: Revision 1.20 2003/11/15 12:25:18 lauerc
Log: Renamed chart attribute 'shadow-length' to 'shadow-offset'.
Log:
Log: Revision 1.19 2003/11/14 12:45:33 lauerc
Log: Added shadowing support.
Log:
Log: Revision 1.18 2003/11/14 01:30:00 lauerc
Log: Added methods getMinValue + getMaxValue.
Log:
Log: Revision 1.17 2003/11/01 12:04:47 lauerc
Log: Added copyright notice.
Log:
Log: Revision 1.16 2003/10/31 06:28:01 lauerc
Log: Added support for attributes 'view-grid', 'grid-color', 'grid-bgcolor' and 'desacription-color'.
Log:
Log: Revision 1.15 2003/10/16 21:11:18 lauerc
Log: Added support for attribute 'view-legend'.
Log:
Log: Revision 1.14 2003/10/08 22:57:55 lauerc
Log: Reorganized chart attributes.
Log:
Log: Revision 1.13 2003/10/07 23:55:30 lauerc
Log: Redesigned chart parameter handling.
Log:
Log: Revision 1.12 2003/10/07 06:55:40 lauerc
Log: Added support for new attributes.
Log:
Log: Revision 1.11 2003/09/27 11:57:48 lauerc
Log: Changed default percet format.
Log:
Log: Revision 1.10 2003/09/25 23:31:52 lauerc
Log: Removed attributes value-unit and display-values in favour of the more flexible attribute description-pattern.
Log:
Log: Revision 1.9 2003/09/21 11:37:28 lauerc
Log: Added support for attribute 'value-format'.
Log:
Log: Revision 1.8 2003/09/21 11:21:42 lauerc
Log: Added support for attribute 'value-unit'.
Log:
Log: Revision 1.7 2003/09/21 11:17:34 lauerc
Log: Added support for attribute 'display-values'.
Log:
Log: Revision 1.6 2003/09/21 10:51:03 lauerc
Log: Added support for padding attributes.
Log:
Log: Revision 1.5 2003/09/20 01:09:09 lauerc
Log: Added support for description items.
Log:
Log: Revision 1.4 2003/09/17 19:12:17 lauerc
Log: Changed default border width to 0.0.
Log:
Log: Revision 1.3 2003/09/16 22:21:59 lauerc
Log: Moved attributes to ChartAttributes.
Log:
Log: Revision 1.2 2003/06/15 23:22:08 lauerc
Log: Added implementations of methods getBorderWidth and setBorderWidth from Chart interface.
Log:
Log: Revision 1.1 2003/05/26 06:47:57 lauerc
Log: Initial revision.
Log:
- Version:
- $Revision: 1.22 $
| Field Summary | |
protected ChartAttributes |
attributes
The chart attributes. |
static float |
DEFAULT_BORDER_WIDTH
The default border width. |
static java.awt.Color |
DEFAULT_DESCRIPTION_COLOR
The default description color. |
static java.awt.Font |
DEFAULT_DESCRIPTION_FONT
The default description font. |
static float |
DEFAULT_DESCRIPTION_LINE_WIDTH
The default description line width. |
static float |
DEFAULT_PADDING
The default padding. |
static java.text.NumberFormat |
DEFAULT_PERCENT_FORMAT
The default percent format. |
static java.awt.Color |
DEFAULT_SHADOW_COLOR
The default grid color. |
static float |
DEFAULT_SHADOW_OFFSET
The default shadow offset. |
static java.awt.Font |
DEFAULT_TITLE_FONT
The default title font. |
static java.text.NumberFormat |
DEFAULT_VALUE_FORMAT
The default value format. |
protected ChartModel |
model
The chart model. |
| Constructor Summary | |
BaseChart()
|
|
| Method Summary | |
protected void |
addAttributeDefinition(java.util.List attributeDefinitions,
java.lang.String name,
int type,
boolean list,
boolean optional)
Adds an attribute definition to the list of supported attributes for the chart. |
java.awt.geom.Rectangle2D |
draw(java.awt.geom.Rectangle2D viewport,
java.awt.Graphics2D graphics)
Draws the chart to the given chart output. |
protected void |
fillSupportedAttributes(java.util.List attrDefs)
Fills the list of supported attributes for the chart. |
java.lang.String[] |
getAreaLabels()
Gets the area labels. |
ChartAttributes |
getAttributes()
Gets the chart attributes. |
float |
getBorderWidth()
Gets the border width. |
float |
getBottomPadding()
Gets the top padding. |
java.awt.Color |
getDescriptionColor()
Gets the description line color. |
java.awt.Font |
getDescriptionFont()
Gets the description font. |
float |
getDescriptionLineWidth()
Gets the description line width. |
java.lang.String |
getDescriptionPattern()
Gets the description pattern. |
float |
getLeftPadding()
Gets the left padding. |
protected double |
getMaxValue()
Gets the maximum value from the chart data. |
protected double |
getMinValue()
Gets the minimum value from the chart data. |
ChartModel |
getModel()
Gets the chart model. |
java.text.NumberFormat |
getPercentFormat()
Gets the number format for percent output. |
float |
getRightPadding()
Gets the right padding. |
java.lang.String[] |
getSegmentLabels()
Gets the segment labels. |
java.awt.Color |
getShadowColor()
Computes the fill color for value area. |
float |
getShadowLength()
Gets the shadow length. |
java.util.List |
getSupportedAttributes()
Gets a list of supported attributes for the chart. |
java.awt.Font |
getTitleFont()
Gets the title font. |
float |
getTopPadding()
Gets the top padding. |
java.text.NumberFormat |
getValueFormat()
Gets the number format for value output. |
void |
setAttributes(ChartAttributes attributes)
Sets the chart attributes. |
void |
setModel(ChartModel model)
Sets the chart model. |
boolean |
supportsNegativeValues()
Tells, whether the chart supports negative values or not. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
DEFAULT_BORDER_WIDTH
public static final float DEFAULT_BORDER_WIDTH
- The default border width.
- See Also:
- Constant Field Values
DEFAULT_PADDING
public static final float DEFAULT_PADDING
- The default padding.
- See Also:
- Constant Field Values
DEFAULT_TITLE_FONT
public static final java.awt.Font DEFAULT_TITLE_FONT
- The default title font.
DEFAULT_DESCRIPTION_LINE_WIDTH
public static final float DEFAULT_DESCRIPTION_LINE_WIDTH
- The default description line width.
- See Also:
- Constant Field Values
DEFAULT_DESCRIPTION_COLOR
public static final java.awt.Color DEFAULT_DESCRIPTION_COLOR
- The default description color.
DEFAULT_SHADOW_COLOR
public static final java.awt.Color DEFAULT_SHADOW_COLOR
- The default grid color.
DEFAULT_SHADOW_OFFSET
public static final float DEFAULT_SHADOW_OFFSET
- The default shadow offset.
- See Also:
- Constant Field Values
DEFAULT_DESCRIPTION_FONT
public static final java.awt.Font DEFAULT_DESCRIPTION_FONT
- The default description font.
DEFAULT_VALUE_FORMAT
public static final java.text.NumberFormat DEFAULT_VALUE_FORMAT
- The default value format.
DEFAULT_PERCENT_FORMAT
public static final java.text.NumberFormat DEFAULT_PERCENT_FORMAT
- The default percent format.
model
protected ChartModel model
- The chart model.
attributes
protected ChartAttributes attributes
- The chart attributes.
| Constructor Detail |
BaseChart
public BaseChart()
| Method Detail |
getSupportedAttributes
public java.util.List getSupportedAttributes()
- Gets a list of supported attributes for the chart.
- Specified by:
getSupportedAttributesin interfaceChart
addAttributeDefinition
protected void addAttributeDefinition(java.util.List attributeDefinitions, java.lang.String name, int type, boolean list, boolean optional)
- Adds an attribute definition to the list of supported attributes for the chart.
fillSupportedAttributes
protected void fillSupportedAttributes(java.util.List attrDefs)
- Fills the list of supported attributes for the chart.
getAttributes
public ChartAttributes getAttributes()
- Gets the chart attributes.
- Specified by:
getAttributesin interfaceChart
setAttributes
public void setAttributes(ChartAttributes attributes)
- Sets the chart attributes.
- Specified by:
setAttributesin interfaceChart
getBorderWidth
public float getBorderWidth()
- Gets the border width.
getDescriptionLineWidth
public float getDescriptionLineWidth()
- Gets the description line width.
getDescriptionColor
public java.awt.Color getDescriptionColor()
- Gets the description line color.
getDescriptionPattern
public java.lang.String getDescriptionPattern()
- Gets the description pattern.
getShadowColor
public java.awt.Color getShadowColor()
- Computes the fill color for value area.
getShadowLength
public float getShadowLength()
- Gets the shadow length.
getValueFormat
public java.text.NumberFormat getValueFormat()
- Gets the number format for value output.
getPercentFormat
public java.text.NumberFormat getPercentFormat()
- Gets the number format for percent output.
getLeftPadding
public float getLeftPadding()
- Gets the left padding.
getRightPadding
public float getRightPadding()
- Gets the right padding.
getTopPadding
public float getTopPadding()
- Gets the top padding.
getBottomPadding
public float getBottomPadding()
- Gets the top padding.
getTitleFont
public java.awt.Font getTitleFont()
- Gets the title font.
getDescriptionFont
public java.awt.Font getDescriptionFont()
- Gets the description font.
getSegmentLabels
public java.lang.String[] getSegmentLabels()
- Gets the segment labels.
getAreaLabels
public java.lang.String[] getAreaLabels()
- Gets the area labels.
getModel
public ChartModel getModel()
setModel
public void setModel(ChartModel model) throws ChartException
supportsNegativeValues
public boolean supportsNegativeValues()
- Tells, whether the chart supports negative values or not.
- Specified by:
supportsNegativeValuesin interfaceChart
getMinValue
protected double getMinValue()
- Gets the minimum value from the chart data.
getMaxValue
protected double getMaxValue()
- Gets the maximum value from the chart data.
draw
public java.awt.geom.Rectangle2D draw(java.awt.geom.Rectangle2D viewport, java.awt.Graphics2D graphics) throws ChartException
|
|||||||||
| Home >> All >> org >> ujac >> [ chart overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.ujac.chart.BaseChart