Style Intelligence v12.0

inetsoft.graph.element
Class IntervalElement

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.IntervalElement
All Implemented Interfaces:
Cloneable

public class IntervalElement
extends StackableElement

An interval element is used to add bar or range 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
IntervalElement()
          Create an empty element.
IntervalElement(String field1)
          Create an interval element for a single column (1d).
IntervalElement(String field1, String field2)
          Create an interval element for two columns (2d).
IntervalElement(String field1, String field2, String field3)
          Create an interval element for three columns (3d).
 
Method Summary
 void addInterval(String col1, String col2)
          Add an interval to this element.
 void addVar(String col)
          Add a variable to be plotted using this element.
 void clearVars()
          Remove all variables.
 String[] getVars()
          Get all the variables.
 void removeVar(int idx)
          Remove the variable at the specified index.
 void setBaseVar(String base)
          Set the variable for the base of the interval.
 
Methods inherited from class inetsoft.graph.element.StackableElement
isStackGroup, isStackNegative, setStackGroup, setStackNegative, sortData
 
Methods inherited from class inetsoft.graph.element.GraphElement
addDim, clearDims, clone, createVisualModel, equalsContent, getCollisionModifier, getColorFrame, getComparator, getDim, getDimCount, getDims, getEndRow, getLabelPlacement, getLineFrame, getRootColIndex, getRootRowIndex, getRootRowIndexes, getShapeFrame, getSizeFrame, getStartRow, getTextFrame, getTextSpec, getTextureFrame, getVar, getVarCount, getVisualDataSet, getVisualFrames, isInPlot, removeDim, 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

IntervalElement

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


IntervalElement

public IntervalElement(String field1)
Create an interval element for a single column (1d).


IntervalElement

public IntervalElement(String field1,
                       String field2)
Create an interval element for two columns (2d).


IntervalElement

public IntervalElement(String field1,
                       String field2,
                       String field3)
Create an interval element for three columns (3d).

Method Detail

addVar

public void addVar(String col)
Add a variable to be plotted using this element.

Overrides:
addVar in class GraphElement
Parameters:
col - the variable identifier.

removeVar

public void removeVar(int idx)
Remove the variable at the specified index.

Overrides:
removeVar in class GraphElement
Parameters:
idx - the dim index.

setBaseVar

public void setBaseVar(String base)
Set the variable for the base of the interval.


addInterval

public void addInterval(String col1,
                        String col2)
Add an interval to this element.

Parameters:
col1 - the lower bound of the interval.
col2 - the upper bound of the interval.

clearVars

public void clearVars()
Remove all variables.

Overrides:
clearVars in class GraphElement

getVars

public String[] getVars()
Get all the variables.

Overrides:
getVars in class GraphElement

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