Style Intelligence v12.0

inetsoft.graph.aesthetic
Class CategoricalShapeFrame

java.lang.Object
  extended by inetsoft.graph.aesthetic.VisualFrame
      extended by inetsoft.graph.aesthetic.ShapeFrame
          extended by inetsoft.graph.aesthetic.CategoricalShapeFrame
All Implemented Interfaces:
CategoricalFrame, Serializable, Cloneable

public class CategoricalShapeFrame
extends ShapeFrame
implements CategoricalFrame

This class defines a shape frame for categorical values.

See Also:
Serialized Form

Constructor Summary
CategoricalShapeFrame()
          Create a shape frame for categorical values.
CategoricalShapeFrame(String field)
          Create a shape frame.
 
Method Summary
 Object clone()
          Create a copy of this object.
 boolean equals(Object obj)
          Check if equals another object.
 GShape getShape(DataSet data, String col, int row)
          Get the shape for the specified cell.
 GShape getShape(int index)
          Get the shape at the specified index.
 GShape getShape(Object val)
          Get a shape for the specified value.
 int getShapeCount()
          Get the shape count.
 void init(DataSet data)
          Initialize the categorical shape frame with categorical values from the dimension column.
 void init(Object[] vals)
          Initialize the categorical shape frame with categorical values.
 void init(Object[] vals, GShape[] shps)
          Initialize the categorical shape frame with categorical values and shapes.
 boolean isStatic(Object val)
          Check if the value is assigned a static aesthetic value.
 void setShape(int index, GShape shape)
          Set the shape at the specified index.
 void setShape(Object val, GShape shape)
          Set the shape for the specified value.
 
Methods inherited from class inetsoft.graph.aesthetic.VisualFrame
createComparator, getField, getLabels, getLegendFrame, getLegendSpec, getScale, getScaleOption, getTitle, getValues, hashCode, isValid, isVisible, setField, setLegendFrame, setLegendSpec, setScale, setScaleOption, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CategoricalShapeFrame

public CategoricalShapeFrame()
Create a shape frame for categorical values.


CategoricalShapeFrame

public CategoricalShapeFrame(String field)
Create a shape frame.

Parameters:
field - field to get value to map to shapes.
Method Detail

init

public void init(Object[] vals)
Initialize the categorical shape frame with categorical values.


init

public void init(Object[] vals,
                 GShape[] shps)
Initialize the categorical shape frame with categorical values and shapes. The value and shape array must have identical length. Each value in the value array is assigned a shape from the shape array at the same position.


init

public void init(DataSet data)
Initialize the categorical shape frame with categorical values from the dimension column.

Overrides:
init in class VisualFrame

getShape

public GShape getShape(DataSet data,
                       String col,
                       int row)
Get the shape for the specified cell.

Specified by:
getShape in class ShapeFrame
Parameters:
data - the specified dataset.
col - the name of the specified column.
row - the specified row index.

getShape

public GShape getShape(Object val)
Get a shape for the specified value.

Specified by:
getShape in class ShapeFrame

setShape

public void setShape(Object val,
                     GShape shape)
Set the shape for the specified value.


isStatic

public boolean isStatic(Object val)
Check if the value is assigned a static aesthetic value.

Specified by:
isStatic in interface CategoricalFrame

getShape

public GShape getShape(int index)
Get the shape at the specified index.


setShape

public void setShape(int index,
                     GShape shape)
Set the shape at the specified index.


getShapeCount

public int getShapeCount()
Get the shape count.


equals

public boolean equals(Object obj)
Check if equals another object.

Overrides:
equals in class VisualFrame

clone

public Object clone()
Create a copy of this object.

Overrides:
clone in class VisualFrame

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