Style Intelligence v12.0

inetsoft.graph.aesthetic
Class StaticLineFrame

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

public class StaticLineFrame
extends LineFrame

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

See Also:
Serialized Form

Constructor Summary
StaticLineFrame()
          Create a line frame.
StaticLineFrame(GLine line)
          Create a static line frame with the specified line.
StaticLineFrame(int lineStyle)
          Create a static line frame with the specified line style.
StaticLineFrame(String field)
          Create a line frame.
 
Method Summary
 boolean equals(Object obj)
          Check if equals another object.
 GLine getLine()
          Get the line style of the line frame.
 GLine getLine(DataSet data, String col, int row)
          Get the line for the specified cell.
 GLine getLine(Object val)
          Get the line for the specified value.
 GLine getNegativeLine()
          Get the line style for negative values.
 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 setLine(GLine line)
          Set the line style of the line frame.
 void setNegativeLine(GLine negline)
          Set the line style for negative values.
 
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

StaticLineFrame

public StaticLineFrame()
Create a line frame.


StaticLineFrame

public StaticLineFrame(GLine line)
Create a static line frame with the specified line.


StaticLineFrame

public StaticLineFrame(int lineStyle)
Create a static line frame with the specified line style.

Parameters:
lineStyle - a line style defined in GraphConstants.

StaticLineFrame

public StaticLineFrame(String field)
Create a line frame.

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

getLine

public GLine getLine()
Get the line style of the line frame.


setLine

public void setLine(GLine line)
Set the line style of the line frame.


getNegativeLine

public GLine getNegativeLine()
Get the line style for negative values.


setNegativeLine

public void setNegativeLine(GLine negline)
Set the line style for negative values. If this line is not set, the regular line is used for all values.


equals

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

Overrides:
equals in class VisualFrame

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

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 specified column name.
row - the specified row index.

getLine

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

Specified by:
getLine in class LineFrame

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