Style Intelligence v12.0

inetsoft.graph.aesthetic
Class StaticSizeFrame

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

public class StaticSizeFrame
extends SizeFrame

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

See Also:
Serialized Form

Constructor Summary
StaticSizeFrame()
          Create a size frame.
StaticSizeFrame(int size)
          Create a static size frame with the specified size.
StaticSizeFrame(String field)
          Create a line frame.
 
Method Summary
 boolean equals(Object obj)
          Check if equals another object.
 double getNegativeSize()
          Get the size for negative values.
 double getSize()
          Get the size of the static size frame.
 double getSize(DataSet data, String col, int row)
          Get the size for the specified cell.
 double getSize(Object val)
          Get the size 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 setNegativeSize(double negsize)
          Set the size for negative values.
 void setSize(double size)
          Set the size of the static size frame.
 String toString()
          Get the string representation.
 
Methods inherited from class inetsoft.graph.aesthetic.SizeFrame
getLargest, getMax, getSmallest, setLargest, setMax, setSmallest
 
Methods inherited from class inetsoft.graph.aesthetic.VisualFrame
clone, createComparator, getField, getLabels, getLegendFrame, getLegendSpec, getScale, getScaleOption, hashCode, init, isValid, setField, setLegendFrame, setLegendSpec, setScale, setScaleOption
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StaticSizeFrame

public StaticSizeFrame()
Create a size frame.


StaticSizeFrame

public StaticSizeFrame(int size)
Create a static size frame with the specified size.


StaticSizeFrame

public StaticSizeFrame(String field)
Create a line frame.

Parameters:
field - field to get value to map to line styles.
Method Detail

getSize

public double getSize()
Get the size of the static size frame.


setSize

public void setSize(double size)
Set the size of the static size frame.


getNegativeSize

public double getNegativeSize()
Get the size for negative values.


setNegativeSize

public void setNegativeSize(double negsize)
Set the size for negative values. If this size is not set, the regular size is used for all values.


equals

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

Overrides:
equals in class VisualFrame

getSize

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

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

getSize

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

Specified by:
getSize in class SizeFrame

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

toString

public String toString()
Get the string representation.

Overrides:
toString in class VisualFrame

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