Style Intelligence v12.0

inetsoft.graph.aesthetic
Class CategoricalSizeFrame

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

public class CategoricalSizeFrame
extends SizeFrame
implements CategoricalFrame

This class defines a size frame for categorical values.

See Also:
Serialized Form

Constructor Summary
CategoricalSizeFrame()
          Create a size frame for categorical values.
CategoricalSizeFrame(String field)
          Create a size frame.
 
Method Summary
 Object clone()
          Create a copy of this object.
 boolean equals(Object obj)
          Check if equals another object.
 double getSize(DataSet data, String col, int row)
          Get the size for the chart object.
 double getSize(Object val)
          Get a size for the specified value.
 void init(DataSet data)
          Initialize the categorical size frame with categorical values from the dimension column.
 void init(Object[] vals)
          Initialize the categorical size frame with categorical values.
 void init(Object[] vals, double[] sarr)
          Initialize the categorical size frame with categorical values and sizes.
 boolean isStatic(Object val)
          Check if the value is assigned a static aesthetic value.
 void setSize(Object val, double size)
          Set the size for a value.
 
Methods inherited from class inetsoft.graph.aesthetic.SizeFrame
getLargest, getMax, getSmallest, setLargest, setMax, setSmallest
 
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

CategoricalSizeFrame

public CategoricalSizeFrame()
Create a size frame for categorical values.


CategoricalSizeFrame

public CategoricalSizeFrame(String field)
Create a size frame.

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

init

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


init

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


init

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

Overrides:
init in class VisualFrame

getSize

public double getSize(DataSet data,
                      String col,
                      int row)
Get the size for the chart object.

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

setSize

public void setSize(Object val,
                    double size)
Set the size for a value.


isStatic

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

Specified by:
isStatic in interface CategoricalFrame

getSize

public double getSize(Object val)
Get a size for the specified value.

Specified by:
getSize in class SizeFrame

clone

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

Overrides:
clone in class VisualFrame

equals

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

Overrides:
equals in class VisualFrame

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