Style Intelligence v12.0

inetsoft.graph.aesthetic
Class StaticShapeFrame

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

public class StaticShapeFrame
extends ShapeFrame

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

See Also:
Serialized Form

Constructor Summary
StaticShapeFrame()
          Default constructor.
StaticShapeFrame(GShape shape)
          Create a static shape frame with the specified shape.
StaticShapeFrame(String field)
          Create a shape frame.
 
Method Summary
 boolean equals(Object obj)
          Check if equals another object.
 GShape getNegativeShape()
          Get the shape for negative values.
 GShape getShape()
          Get the shape of this static shape frame.
 GShape getShape(DataSet data, String col, int row)
          Get the shape for the specified cell.
 GShape getShape(Object val)
          Get the shape for the 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 setNegativeShape(GShape negshape)
          Set the shape for negative values.
 void setShape(GShape shape)
          Set the shape of this static shape 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

StaticShapeFrame

public StaticShapeFrame()
Default constructor.


StaticShapeFrame

public StaticShapeFrame(GShape shape)
Create a static shape frame with the specified shape.


StaticShapeFrame

public StaticShapeFrame(String field)
Create a shape frame.

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

getShape

public GShape getShape()
Get the shape of this static shape frame.


setShape

public void setShape(GShape shape)
Set the shape of this static shape frame.


getNegativeShape

public GShape getNegativeShape()
Get the shape for negative values.


setNegativeShape

public void setNegativeShape(GShape negshape)
Set the shape for negative values. If this shape is not set, the regular shape is used for all values.


equals

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

Overrides:
equals 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 the shape for the value.

Specified by:
getShape in class ShapeFrame

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.