TPTP 4.6.0 Platform Project
Internal API Specification

org.eclipse.tptp.platform.report.chart.svg.internal.part
Class DataSetStackArea

java.lang.Object
  extended by org.eclipse.tptp.platform.report.chart.svg.internal.generator.SVGBase
      extended by org.eclipse.tptp.platform.report.chart.svg.internal.generator.SVGContainerBase
          extended by org.eclipse.tptp.platform.report.chart.svg.internal.generator.SVGDocumentFragmentBase
              extended by org.eclipse.tptp.platform.report.chart.svg.internal.generator.SVGSvg
                  extended by org.eclipse.tptp.platform.report.chart.svg.internal.part.Part
                      extended by org.eclipse.tptp.platform.report.chart.svg.internal.part.DataSet
                          extended by org.eclipse.tptp.platform.report.chart.svg.internal.part.DataSetStackArea
All Implemented Interfaces:
java.io.Serializable, ISVGBase, ISVGContainerBase, ISVGDocumentFragmentBase, IConstants, IGraphicTypeConstants
Direct Known Subclasses:
DataSetStackAreaCategory

public abstract class DataSetStackArea
extends DataSet

See Also:
Serialized Form

Field Summary
protected  java.util.List categoryList
          The list of categories, used only if the independent axis is a category axis
protected  int colorIndex
           
protected  AxisNumber depAxis
          dependent axis
protected  boolean depAxislinear
          A flag to show if the dependent axis scale is linear.
protected  double depAxisMax
          Maximum value of the dependent axis
protected  double depAxisMin
          Minimum value of the dependent axis
protected  boolean generateShadows
          A flag to show whether shadows for points should be generated
protected  double[] groupDataPositions
          An array of positions that correspond to each category, used only if the independent axis is a category axis
protected  Axis indepAxis
          Independent axis
protected  boolean indepAxislinear
          A flag to show if the dependent axis scale is linear.
protected  double indepAxisMax
          Maximum value of the dependent axis
protected  double indepAxisMin
          Minimum value of the dependent axis
protected  boolean isLTR
          Text direction: true if LTR, false if RTL
protected  SVGColorPalettes palettes
          color palette to be used
protected  double shapeHeight
          height of shape
protected  java.lang.String shapeId
          Shape ID
protected  double shapeWidth
          width of shape
protected  boolean showArea
          A flag to show if the area between the line and the horizontal axis (zero line) should be filled with color (for area charts)
protected  boolean showLine
          A flag to indicate whether the points should be connected
protected  CategoricalData[] sortedDatapoints
          An array of sorted data points, used only if the independent axis is a category axis
protected  boolean useCategories
          A flag to show if the independent axis uses categories.
 
Fields inherited from class org.eclipse.tptp.platform.report.chart.svg.internal.part.DataSet
dataset, datasetIndex, nls
 
Fields inherited from class org.eclipse.tptp.platform.report.chart.svg.internal.part.Part
height, input, width, x, y
 
Fields inherited from interface org.eclipse.tptp.platform.report.chart.svg.internal.part.IConstants
AXIS_LABEL_FONT_SIZE, AXIS_SPACE_BTW_AXIS_AND_LABEL, AXIS_SPACE_BTW_TITLE_AND_LABEL, AXIS_TITLE_FONT_SIZE, AXIS_TYPE_INDEPENDENT_AXIS, AXIS_TYPE_PRIMARY_DEPENDENT_AXIS, AXIS_TYPE_SECONDARY_DEPENDENT_AXIS, BASE_FONT_SIZE, CHART_AREA_DEFAULT_HEIGHT, CHART_AREA_DEFAULT_WIDTH, CHART_AREA_METER_DEFAULT_WIDTH, EMPTY_STRING, GRAPH_AREA_MARGIN, GRAPH_AREA_TOP_MARGIN, HIDDEN, HOLE_RADIUS, HORIZONTAL, LEGEND_HORIZONTAL_HEIGHT, LEGEND_HORIZONTAL_SIDE_MARGIN, LEGEND_HORIZONTAL_TOP_MARGIN, LEGEND_ITEM_FONT_SIZE, LEGEND_ITEMS_PER_ROW, LEGEND_MAX_HEIGHT_FRACTION, LEGEND_MAX_WIDTH_FRACTION, LEGEND_NARROW_SIDE_MARGIN, LEGEND_SPACE_AFTER_TITLE, LEGEND_SPACE_BETWEEN_ITEMS, LEGEND_SPACE_BETWEEN_SYMBOL_AND_TEXT, LEGEND_SYMBOL_LINE_LENGTH, LEGEND_TITLE_FONT_SIZE, LEGEND_VERTICAL_TOP_MARGIN, LEGEND_WIDE_SIDE_MARGIN, MARKER_LINE_DEFAULT_COLOR, PLOT_AREA_MARGIN, POSITION_EAST, POSITION_LEADING, POSITION_NORTH, POSITION_SOUTH, POSITION_TRAILING, POSITION_WEST, TEXT_ANCHOR_END, TEXT_ANCHOR_MIDDLE, TEXT_ANCHOR_START, TICK_MARK_LENGTH, TIMESTAMP_BOTTOM_MARGIN, TIMESTAMP_HEIGHT, TIMESTAMP_SIDE_MARGIN, TITLE_FONT_SIZE, TITLE_HEIGHT, TITLE_PREF_ICON_HEIGHT, TITLE_PREF_ICON_WIDTH, TITLE_SIDE_MARGIN, VERTICAL, VISIBLE
 
Fields inherited from interface org.eclipse.tptp.platform.report.chart.svg.internal.part.IGraphicTypeConstants
AREA_CHART, HBAR_CHART, HBAR_CHART3D, HSTACKBAR_CHART, HSTACKBAR_CHART3D, LINE_CHART, METER, PIE_CHART, PIE_CHART3D, SCATTER_CHART, STACK_AREA_CHART, VBAR_CHART, VBAR_CHART3D, VSTACKBAR_CHART, VSTACKBAR_CHART3D
 
Constructor Summary
DataSetStackArea(Chart input, boolean isLTR, Axis indepAxis, AxisNumber depAxis, DataSet dataset, int datasetIndex, int colorIndex, SVGColorPalettes palettes, java.lang.String shapeId, double shapeWidth, double shapeHeight, NLString nls)
          Method DataSetStackArea.
 
Method Summary
 void setDataSet(DataSet dataset)
          Sets the dataset to be plotted
 void setDepAxis(AxisNumber axis)
          Sets dependent axis
 void setIndepAxis(Axis axis)
          Sets independent axis
 
Methods inherited from class org.eclipse.tptp.platform.report.chart.svg.internal.part.DataSet
getCoordinate
 
Methods inherited from class org.eclipse.tptp.platform.report.chart.svg.internal.part.Part
constructPart, doImplementation
 
Methods inherited from class org.eclipse.tptp.platform.report.chart.svg.internal.generator.SVGSvg
addDefinition, addDefinition, addStyle, doImplementation, doImplementation, doImplementation, getImplementation
 
Methods inherited from class org.eclipse.tptp.platform.report.chart.svg.internal.generator.SVGDocumentFragmentBase
getHeight, getPreserveAspectRatio, getViewbox, getWidth, getXCoordinate, getYCoordinate, setHeight, setPreserveAspectRatio, setViewbox, setWidth, setXCoordinate, setYCoordinate
 
Methods inherited from class org.eclipse.tptp.platform.report.chart.svg.internal.generator.SVGContainerBase
getChildren, getDesc, getTitle, setChildren, setDesc, setTitle
 
Methods inherited from class org.eclipse.tptp.platform.report.chart.svg.internal.generator.SVGBase
getIdentifier, getStyle, getStyleClass, getTagName, getVisibility, setIdentifier, setStyle, setStyleClass, setTagName, setVisibility
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

indepAxis

protected Axis indepAxis
Independent axis


depAxis

protected AxisNumber depAxis
dependent axis


sortedDatapoints

protected CategoricalData[] sortedDatapoints
An array of sorted data points, used only if the independent axis is a category axis


colorIndex

protected int colorIndex

categoryList

protected java.util.List categoryList
The list of categories, used only if the independent axis is a category axis


groupDataPositions

protected double[] groupDataPositions
An array of positions that correspond to each category, used only if the independent axis is a category axis


indepAxisMax

protected double indepAxisMax
Maximum value of the dependent axis


indepAxisMin

protected double indepAxisMin
Minimum value of the dependent axis


indepAxislinear

protected boolean indepAxislinear
A flag to show if the dependent axis scale is linear. True if it is linear, false othersise.


depAxisMax

protected double depAxisMax
Maximum value of the dependent axis


depAxisMin

protected double depAxisMin
Minimum value of the dependent axis


depAxislinear

protected boolean depAxislinear
A flag to show if the dependent axis scale is linear. True if it is linear, false othersise.


useCategories

protected boolean useCategories
A flag to show if the independent axis uses categories. True if independent axis is a category axis, false if it is a number axis.


showArea

protected boolean showArea
A flag to show if the area between the line and the horizontal axis (zero line) should be filled with color (for area charts)


showLine

protected boolean showLine
A flag to indicate whether the points should be connected


generateShadows

protected boolean generateShadows
A flag to show whether shadows for points should be generated


isLTR

protected boolean isLTR
Text direction: true if LTR, false if RTL


shapeId

protected java.lang.String shapeId
Shape ID


shapeWidth

protected double shapeWidth
width of shape


shapeHeight

protected double shapeHeight
height of shape


palettes

protected SVGColorPalettes palettes
color palette to be used

Constructor Detail

DataSetStackArea

public DataSetStackArea(Chart input,
                        boolean isLTR,
                        Axis indepAxis,
                        AxisNumber depAxis,
                        DataSet dataset,
                        int datasetIndex,
                        int colorIndex,
                        SVGColorPalettes palettes,
                        java.lang.String shapeId,
                        double shapeWidth,
                        double shapeHeight,
                        NLString nls)
Method DataSetStackArea.

Parameters:
input -
isLTR -
indepAxis -
depAxis -
dataset -
datasetIndex -
colorIndex -
shapeIndex -
shapes -
Method Detail

setIndepAxis

public void setIndepAxis(Axis axis)
Sets independent axis

Parameters:
axis - independent axis

setDepAxis

public void setDepAxis(AxisNumber axis)
Sets dependent axis

Parameters:
axis - dependent axis

setDataSet

public void setDataSet(DataSet dataset)
Sets the dataset to be plotted

Parameters:
dataset -

TPTP 4.6.0 Platform Project
Internal API Specification