Style Intelligence v12.0

inetsoft.graph.aesthetic
Class MultiShapeFrame

java.lang.Object
  extended by inetsoft.graph.aesthetic.VisualFrame
      extended by inetsoft.graph.aesthetic.ShapeFrame
          extended by inetsoft.graph.aesthetic.MultiShapeFrame
All Implemented Interfaces:
Serializable, Cloneable
Direct Known Subclasses:
BarShapeFrame, PieShapeFrame, ProfileShapeFrame, StarShapeFrame, SunShapeFrame, ThermoShapeFrame, VineShapeFrame

public abstract class MultiShapeFrame
extends ShapeFrame

This is the base class for shape frame the represent multiple variables.

See Also:
Serialized Form

Constructor Summary
MultiShapeFrame()
           
 
Method Summary
 boolean equals(Object obj)
          Check if equals another object.
 String getField()
          Get the column associated with this frame.
 String[] getFields()
          Get the fields for getting the stems.
protected  double[] getLegendTuple(Object val)
          Get the tuple for legend.
 Scale[] getScales()
          Get the scales for the stem fields.
 GShape getShape(DataSet data, String col, int row)
          Get the shape for the specified cell.
protected abstract  GShape getShape(double[] values)
          Get a shape for the tuple.
 GShape getShape(Object val)
          Get the shape for the specified value.
 String getTitle()
          Get the title to show on the legend.
 Object[] getValues()
          Get the values mapped by this frame.
 void init(DataSet data)
          Initialize the legend frame with values.
protected  boolean isSharedScale()
          Check if all fields should share one scale.
 boolean isValid()
          Check if this frame has been initialized and is ready to be used.
 void setField(String field)
          Set the column associated with this frame.
 void setFields(String[] fields)
          Set the fields for the stems.
 void setScales(Scale[] scales)
          Set the scales for the stem fields.
 
Methods inherited from class inetsoft.graph.aesthetic.VisualFrame
clone, createComparator, getLabels, getLegendFrame, getLegendSpec, getScale, getScaleOption, hashCode, isVisible, setLegendFrame, setLegendSpec, setScale, setScaleOption, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MultiShapeFrame

public MultiShapeFrame()
Method Detail

setField

public void setField(String field)
Set the column associated with this frame.

Overrides:
setField in class VisualFrame

getField

public String getField()
Get the column associated with this frame.

Overrides:
getField in class VisualFrame

setFields

public void setFields(String[] fields)
Set the fields for the stems.


getFields

public String[] getFields()
Get the fields for getting the stems.


setScales

public void setScales(Scale[] scales)
Set the scales for the stem fields.


getScales

public Scale[] getScales()
Get the scales for the stem fields.


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 specified value.

Specified by:
getShape in class ShapeFrame

getLegendTuple

protected double[] getLegendTuple(Object val)
Get the tuple for legend.

Parameters:
val - the legend item field name.

getShape

protected abstract GShape getShape(double[] values)
Get a shape for the tuple. The values in the tuple have been scaled.


getValues

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

Overrides:
getValues in class VisualFrame

init

public void init(DataSet data)
Initialize the legend frame with values.

Overrides:
init in class VisualFrame

isSharedScale

protected boolean isSharedScale()
Check if all fields should share one scale.

Returns:
true to share a scale for all fields, false to create a separate scale for each field.

isValid

public boolean isValid()
Check if this frame has been initialized and is ready to be used.

Overrides:
isValid in class VisualFrame

getTitle

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

Overrides:
getTitle in class VisualFrame

equals

public boolean equals(Object obj)
Description copied from class: VisualFrame
Check if equals another object. The default implementation will just test whether class is equal.

Overrides:
equals in class VisualFrame

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