org.ujac.chart
Class Base2DStackedChart

java.lang.Object
  extended by org.ujac.chart.BaseChart
      extended by org.ujac.chart.Base2DScaleChart
          extended by org.ujac.chart.Base2DStackedChart
All Implemented Interfaces:
Chart
Direct Known Subclasses:
StackedAreaChart2D, StackedBarChart2D

public class Base2DStackedChart
extends Base2DScaleChart

Name: Base2DStackedChart
Description: A base class for two dimensional stacked charts.

Author:
lauerc

Field Summary
 
Fields inherited from class org.ujac.chart.Base2DScaleChart
ARROWHEAD_STYLE_FILLED, ARROWHEAD_STYLE_OPEN, DEFAULT_ARROWHEAD_STYLE, DEFAULT_DESCRIPTION_ITEM_SPACING, DEFAULT_DESCRIPTION_LINE_SPACING, DEFAULT_GRID_BACKGROUND_COLOR, DEFAULT_GRID_COLOR, DEFAULT_LINE_WIDTH, DEFAULT_SCALE_ARROWHEAD_LENGTH, DEFAULT_SCALE_ARROWHEAD_STYLE, DEFAULT_SCALE_MARK_LENGTH, DEFAULT_SEGMENT_MARK_STYLE, effectiveViewport, horizontalOffset, horizontalPositions, horizontalScale, max, min, range, scaleFont, SEGMENT_MARK_STYLE_BORDER, SEGMENT_MARK_STYLE_CENTER, verticalAnchor, verticalMaximum, verticalMinimum, verticalScale, verticalZero
 
Fields inherited from class org.ujac.chart.BaseChart
attributes, DEFAULT_BORDER_WIDTH, DEFAULT_DESCRIPTION_COLOR, DEFAULT_DESCRIPTION_FONT, DEFAULT_DESCRIPTION_LINE_WIDTH, DEFAULT_DESCRIPTION_PATTERN, DEFAULT_PADDING, DEFAULT_SHADOW_COLOR, DEFAULT_SHADOW_OFFSET, DEFAULT_TITLE_FONT, defaultPercentFormat, defaultValueFormat, model
 
Fields inherited from interface org.ujac.chart.Chart
ATTR_AREA_LABELS, ATTR_BACKGROUND_COLOR, ATTR_BORDER_WIDTH, ATTR_DESCRIPTION_COLOR, ATTR_DESCRIPTION_FONT, ATTR_DESCRIPTION_LINE_WIDTH, ATTR_DESCRIPTION_PATTERN, ATTR_FILL_AREA, ATTR_GRID_BACKGROUND_COLOR, ATTR_GRID_COLOR, ATTR_LINE_WIDTH, ATTR_PADDING, ATTR_PADDING_BOTTOM, ATTR_PADDING_LEFT, ATTR_PADDING_RIGHT, ATTR_PADDING_TOP, ATTR_PERCENT_FORMAT, ATTR_PIE_DESCRIPTION_ANCHOR_RATIO, ATTR_PIE_DESCRIPTION_BASELINE_RATIO, ATTR_PIE_DESCRIPTION_LAYOUT, ATTR_PIE_HEIGHT, ATTR_SCALE_ARROWHEAD_LENGTH, ATTR_SCALE_ARROWHEAD_STYLE, ATTR_SCALE_ARROWHEAD_WIDTH, ATTR_SCALE_MARK_LENGTH, ATTR_SCALE_VALUE_FORMAT, ATTR_SEGMENT_COLORS, ATTR_SEGMENT_LABELS, ATTR_SEGMENT_MARK_STYLE, ATTR_SEGMENT_SCALE_DESCRIPTION, ATTR_SHADOW_COLOR, ATTR_SHADOW_OFFSET, ATTR_TITLE_FONT, ATTR_VALUE_FORMAT, ATTR_VALUE_SCALE_DESCRIPTION, ATTR_VALUE_STEP_SIZE, ATTR_VIEW_GRID, ATTR_VIEW_LEGEND, ATTR_VIEW_SCALE_ARROWS
 
Constructor Summary
Base2DStackedChart()
           
 
Method Summary
protected  double getMaxValue()
          Gets the maximum value from the chart data.
protected  double getMinValue()
          Gets the minimum value from the chart data.
 void setModel(ChartModel model)
          Sets the chart model.
 boolean supportsNegativeValues()
          Tells, whether the chart supports negative values or not.
 
Methods inherited from class org.ujac.chart.Base2DScaleChart
calculateBaseLinePosition, calculateVerticalExtent, calculateVerticalPosition, calcViewport, drawLegend, drawScale, formatScaleValue, getGridBackgroundColor, getGridColor, getInnerPadding, getLineWidth, getScaleArrowheadLength, getScaleArrowheadStyle, getScaleArrowheadWidth, getScaleMarkLength, getScaleValueFormat, getSegmentMarkStyle, getSegmentScaleDescription, getValueScaleDescription, getValueStepSize, isViewGrid, isViewLegend, isViewScaleArrows
 
Methods inherited from class org.ujac.chart.BaseChart
addAttributeDefinition, draw, fillSupportedAttributes, getAreaLabels, getAttributes, getBackgroundColor, getBorderWidth, getBottomPadding, getDescriptionColor, getDescriptionFont, getDescriptionLineWidth, getDescriptionPattern, getLeftPadding, getModel, getPercentFormat, getRightPadding, getSegmentLabels, getShadowColor, getShadowLength, getSupportedAttributes, getTitleFont, getTopPadding, getValueFormat, setAttributes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Base2DStackedChart

public Base2DStackedChart()
Method Detail

setModel

public void setModel(ChartModel model)
              throws ChartException
Sets the chart model.

Specified by:
setModel in interface Chart
Overrides:
setModel in class BaseChart
Parameters:
model - The chart model to set.
Throws:
ChartException - In case the givem model contained invalid data.

supportsNegativeValues

public boolean supportsNegativeValues()
Tells, whether the chart supports negative values or not.

Specified by:
supportsNegativeValues in interface Chart
Overrides:
supportsNegativeValues in class BaseChart
Returns:
true, in case the chart supports negative values else false.

getMinValue

protected double getMinValue()
Gets the minimum value from the chart data.

Overrides:
getMinValue in class BaseChart
Returns:
The minimum chart data value.

getMaxValue

protected double getMaxValue()
Gets the maximum value from the chart data.

Overrides:
getMaxValue in class BaseChart
Returns:
The maximum chart data value.


Copyright © 2003-2004 UJAC.org. All Rights Reserved.