Style Intelligence v12.0

inetsoft.graph.element
Class PointElement

java.lang.Object
  extended by inetsoft.graph.Graphable
      extended by inetsoft.graph.element.GraphElement
          extended by inetsoft.graph.element.StackableElement
              extended by inetsoft.graph.element.PointElement
All Implemented Interfaces:
Cloneable

public class PointElement
extends StackableElement

A point element is used to add point visualization to a graph.


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
PointElement()
          Create an empty element.
PointElement(String field1)
          Create a point element for a single column (1d).
PointElement(String field1, String field2)
          Create a point element for two columns (2d).
PointElement(String field1, String field2, String field3)
          Create a point element for three columns (3d).
 
Method Summary
 boolean isStackValue()
          Check if stacking values for the stack modifier.
 void setStackValue(boolean stack)
          Set whether to stack values of the points.
 SortedDataSet sortData(DataSet data, GGraph graph)
          Sort dataset to prepare for generating visual objects.
 
Methods inherited from class inetsoft.graph.element.StackableElement
isStackGroup, isStackNegative, setStackGroup, setStackNegative
 
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

PointElement

public PointElement()
Create an empty element. Dims and vars must be added explicitly.


PointElement

public PointElement(String field1)
Create a point element for a single column (1d).


PointElement

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


PointElement

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

Method Detail

setStackValue

public void setStackValue(boolean stack)
Set whether to stack values of the points. By default, if stack is set as the collision modifier for a point element, the points are plotted using the original value, and moved to avoid collision afterward. If stackValue is set to true, the point values are stacked in the same way as line or area. The collision modifier has to set to STACK for this to be applied.


isStackValue

public boolean isStackValue()
Check if stacking values for the stack modifier.


sortData

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

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

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