Style Intelligence v12.0

inetsoft.graph.element
Class StackableElement

java.lang.Object
  extended by inetsoft.graph.Graphable
      extended by inetsoft.graph.element.GraphElement
          extended by inetsoft.graph.element.StackableElement
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
IntervalElement, LineElement, PointElement

public abstract class StackableElement
extends GraphElement

A stackable element stacks visual objects, either at each tick position, or continuously through the whole series.


Field Summary
 
Fields inherited from class inetsoft.graph.element.GraphElement
DODGE_SYMMETRIC, HINT_ALPHA, HINT_CLIP, HINT_EXPLODED, HINT_MAX_COUNT, HINT_MAX_HEIGHT, HINT_MAX_WIDTH, HINT_SHINE, MOVE_CENTER, MOVE_DODGE, MOVE_JITTER, MOVE_NONE, MOVE_STACK, STACK_SYMMETRIC
 
Constructor Summary
protected StackableElement()
          Create an empty element.
protected StackableElement(String field1)
          Create a point element for a single column (1d).
protected StackableElement(String field1, String field2)
          Create a point element for two columns (2d).
protected StackableElement(String field1, String field2, String field3)
          Create a point element for three columns (3d).
 
Method Summary
 boolean isStackGroup()
          Get whether to stack by groups.
 boolean isStackNegative()
          Check if negative values are stacked separately.
 void setStackGroup(boolean stackGroup)
          Set whether to stack by groups.
 void setStackNegative(boolean negGrp)
          Set whether negative values are stacked separately.
 SortedDataSet sortData(DataSet data, GGraph graph)
          Sort dataset to prepare for generating visual objects.
 
Methods inherited from class inetsoft.graph.element.GraphElement
addDim, addVar, clearDims, clearVars, clone, createVisualModel, equalsContent, getCollisionModifier, getColorFrame, getComparator, getDim, getDimCount, getDims, getEndRow, getLabelPlacement, getLineFrame, getRootColIndex, getRootRowIndex, getRootRowIndexes, getShapeFrame, getSizeFrame, getStartRow, getTextFrame, getTextSpec, getTextureFrame, getVar, getVarCount, getVars, getVisualDataSet, getVisualFrames, isInPlot, removeDim, removeVar, setCollisionModifier, setColorFrame, setComparator, setEndRow, setInPlot, setLabelPlacement, setLineFrame, setShapeFrame, setSizeFrame, setStartRow, setTextFrame, setTextSpec, setTextureFrame, setVisualDataSet, supportsFrame, toString
 
Methods inherited from class inetsoft.graph.Graphable
getHint, getHints, setHint, setHints
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StackableElement

protected StackableElement()
Create an empty element. Dims and vars must be added explicitly.


StackableElement

protected StackableElement(String field1)
Create a point element for a single column (1d).


StackableElement

protected StackableElement(String field1,
                           String field2)
Create a point element for two columns (2d).


StackableElement

protected StackableElement(String field1,
                           String field2,
                           String field3)
Create a point element for three columns (3d).

Method Detail

isStackGroup

public boolean isStackGroup()
Get whether to stack by groups.


setStackGroup

public void setStackGroup(boolean stackGroup)
Set whether to stack by groups.


isStackNegative

public boolean isStackNegative()
Check if negative values are stacked separately.


setStackNegative

public void setStackNegative(boolean negGrp)
Set whether negative values are stacked separately. If true (default), the negative values are stacked downward and positive values are stacked upward. Otherwise, all values are accumulated together.


sortData

public SortedDataSet sortData(DataSet data,
                              GGraph graph)
Sort dataset to prepare for generating visual objects.

Overrides:
sortData in class GraphElement
Returns:
sorted dataset or null if no sorting is necessary.

Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved.