Style Intelligence v12.0

inetsoft.graph.element
Class SchemaElement

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

public class SchemaElement
extends GraphElement

A schema element is used to add schema visualization to a graph. Schemas are user defined drawing. New schemas can be created by implementing the SchemaPainter.


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
SchemaElement()
          Create an empty element.
SchemaElement(SchemaPainter painter)
          Create a schema element with painter.
 
Method Summary
 void addSchema(String[] cols)
          Add a schema columns binding to this element.
 void addVar(String col)
          Add a variable to be plotted using this element.
 void clearVars()
          Remove all variables.
 SchemaPainter getPainter()
          Get the schema painter.
 String[] getVars()
          Get all the variables.
 void removeVar(int idx)
          Remove the variable at the specified index.
 void setPainter(SchemaPainter painter)
          Set the schema painter.
 boolean supportsFrame(VisualFrame frame)
          Check if the aesthetic frame is supported.
 
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, sortData, 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

SchemaElement

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


SchemaElement

public SchemaElement(SchemaPainter painter)
Create a schema element with painter. Dims and vars must be added explicitly.

Parameters:
painter - the specified schema painter.
Method Detail

getPainter

public SchemaPainter getPainter()
Get the schema painter.


setPainter

public void setPainter(SchemaPainter painter)
Set the schema painter. The individual visualization of data points are painted by the schema painter.


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.

addSchema

public void addSchema(String[] cols)
Add a schema columns binding to this element. Check the schema painter to see what columns are required.

Parameters:
cols - the columns to plot on a schema painter.

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

supportsFrame

public boolean supportsFrame(VisualFrame frame)
Check if the aesthetic frame is supported.

Overrides:
supportsFrame in class GraphElement

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