Style Intelligence v12.0

inetsoft.graph.aesthetic
Class StaticTextureFrame

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

public class StaticTextureFrame
extends TextureFrame

Static texture frame defines a static texture for visual objects. If a column is bound to this frame, and the value of the column is a GTexture, the value is used as the texture for the row instead of the static texture.

See Also:
Serialized Form

Constructor Summary
StaticTextureFrame()
          Default constructor.
StaticTextureFrame(GTexture texture)
          Create a static texture frame with the specified texture.
StaticTextureFrame(String field)
          Create a texture frame.
 
Method Summary
 boolean equals(Object obj)
          Check if equals another object.
 GTexture getNegativeTexture()
          Get the texture for negative values.
 GTexture getTexture()
          Get the texture of the Static texture frame.
 GTexture getTexture(DataSet data, String col, int row)
          Get the texture for the specified cell.
 GTexture getTexture(Object val)
          Get the texture for the specified value.
 String getTitle()
          Get the title to show on the legend.
 Object[] getValues()
          Get the values mapped by this frame.
 boolean isVisible()
          Static frame never shows legend.
 void setNegativeTexture(GTexture negtexture)
          Set the texture for negative values.
 void setTexture(GTexture texture)
          Set the texture of static texture frame.
 
Methods inherited from class inetsoft.graph.aesthetic.VisualFrame
clone, createComparator, getField, getLabels, getLegendFrame, getLegendSpec, getScale, getScaleOption, hashCode, init, isValid, setField, setLegendFrame, setLegendSpec, setScale, setScaleOption, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StaticTextureFrame

public StaticTextureFrame()
Default constructor.


StaticTextureFrame

public StaticTextureFrame(GTexture texture)
Create a static texture frame with the specified texture.


StaticTextureFrame

public StaticTextureFrame(String field)
Create a texture frame.

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

getTexture

public GTexture getTexture()
Get the texture of the Static texture frame.


setTexture

public void setTexture(GTexture texture)
Set the texture of static texture frame.


getNegativeTexture

public GTexture getNegativeTexture()
Get the texture for negative values.


setNegativeTexture

public void setNegativeTexture(GTexture negtexture)
Set the texture for negative values. If this texture is not set, the regular texture is used for all values.


equals

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

Overrides:
equals in class VisualFrame

getTexture

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

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 the texture for the specified value.

Specified by:
getTexture in class TextureFrame

getValues

public Object[] getValues()
Get the values mapped by this frame.

Overrides:
getValues in class VisualFrame

getTitle

public String getTitle()
Get the title to show on the legend.

Overrides:
getTitle in class VisualFrame

isVisible

public boolean isVisible()
Static frame never shows legend.

Overrides:
isVisible in class VisualFrame
Returns:
false

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