Style Intelligence v12.0

inetsoft.graph.aesthetic
Class CategoricalLineFrame

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

public class CategoricalLineFrame
extends LineFrame
implements CategoricalFrame

This class defines a line frame for categorical values. Different values are represented by lines with different dash size.

See Also:
Serialized Form

Constructor Summary
CategoricalLineFrame()
          Create a line frame for categorical values.
CategoricalLineFrame(String field)
          Create a line frame.
 
Method Summary
 Object clone()
          Create a copy of this object.
 boolean equals(Object obj)
          Check if equals another object.
 GLine getLine(DataSet data, String col, int row)
          Get the line for the specified cell.
 GLine getLine(int index)
          Get the line at the specified index.
 GLine getLine(Object val)
          Get a line for the specified value.
 int getLineCount()
          Get the number of lines in the frame.
 void init(DataSet data)
          Initialize the categorical line frame with categorical values from the dimension column of the dataset.
 void init(Object[] vals)
          Initialize the categorical line frame with categorical values.
 void init(Object[] vals, GLine[] lines)
          Initialize the categorical line frame with categorical values and lines.
 boolean isStatic(Object val)
          Check if the value is assigned a static aesthetic value.
 void setLine(int index, GLine line)
          Set the line at the specified index.
 void setLine(Object val, GLine line)
          Set the line 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

CategoricalLineFrame

public CategoricalLineFrame()
Create a line frame for categorical values.


CategoricalLineFrame

public CategoricalLineFrame(String field)
Create a line frame.

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

init

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


init

public void init(Object[] vals,
                 GLine[] lines)
Initialize the categorical line frame with categorical values and lines. The value and line arrays must have identical length. Each value is assigned the line style from the line array at the same position.


init

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

Overrides:
init in class VisualFrame

getLine

public GLine getLine(DataSet data,
                     String col,
                     int row)
Get the line for the specified cell.

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

getLine

public GLine getLine(Object val)
Get a line for the specified value.

Specified by:
getLine in class LineFrame

setLine

public void setLine(Object val,
                    GLine line)
Set the line 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

getLine

public GLine getLine(int index)
Get the line at the specified index.


setLine

public void setLine(int index,
                    GLine line)
Set the line at the specified index.


getLineCount

public int getLineCount()
Get the number of lines in the frame.


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.