Style Intelligence v12.0

inetsoft.graph.aesthetic
Class CategoricalTextureFrame

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

public class CategoricalTextureFrame
extends TextureFrame
implements CategoricalFrame

This class defines a texture frame for categorical values.

See Also:
Serialized Form

Constructor Summary
CategoricalTextureFrame()
          Create a texture frame for categorical values.
CategoricalTextureFrame(String field)
          Create a texture frame.
 
Method Summary
 Object clone()
          Create a copy of this object.
 boolean equals(Object obj)
          Check if equals another object.
 GTexture getTexture(DataSet data, String col, int row)
          Get the texture for the chart object.
 GTexture getTexture(int index)
          Get the shape at the specified index.
 GTexture getTexture(Object val)
          Get a texture for the specified value.
 int getTextureCount()
          Get the texture count.
 void init(DataSet data)
          Initialize the categorical texture frame with categorical values from the dimension column.
 void init(Object[] vals)
          Initialize the categorical texture frame with categorical values.
 void init(Object[] vals, GTexture[] txtrs)
          Initialize the categorical texture frame with categorical values and textures.
 boolean isStatic(Object val)
          Check if the value is assigned a static aesthetic value.
 void setTexture(int index, GTexture texture)
          Set the texture at the specified index.
 void setTexture(Object val, GTexture texture)
          Set the texture 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

CategoricalTextureFrame

public CategoricalTextureFrame()
Create a texture frame for categorical values.


CategoricalTextureFrame

public CategoricalTextureFrame(String field)
Create a texture frame.

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

init

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


init

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


init

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

Overrides:
init in class VisualFrame

getTexture

public GTexture getTexture(DataSet data,
                           String col,
                           int row)
Get the texture for the chart object.

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

getTexture

public GTexture getTexture(Object val)
Get a texture for the specified value.

Specified by:
getTexture in class TextureFrame

setTexture

public void setTexture(Object val,
                       GTexture texture)
Set the texture 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

getTexture

public GTexture getTexture(int index)
Get the shape at the specified index.


setTexture

public void setTexture(int index,
                       GTexture texture)
Set the texture at the specified index.


getTextureCount

public int getTextureCount()
Get the texture 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.