Style Intelligence v12.0

inetsoft.graph.guide.form
Class TargetForm

java.lang.Object
  extended by inetsoft.graph.Graphable
      extended by inetsoft.graph.guide.form.GraphForm
          extended by inetsoft.graph.guide.form.TargetForm
All Implemented Interfaces:
Cloneable

public class TargetForm
extends GraphForm


Constructor Summary
TargetForm()
           
 
Method Summary
 Visualizable createVisual(Coordinate coord)
          Not used.
 Visualizable[] createVisuals(Coordinate coord)
          Create visual objects based on the given data and the strategy.
 CategoricalColorFrame getBandColorFrame()
          Get the color frame for multiple bands generated by a statistic.
 String getField()
           
 String getFieldLabel()
           
 Color getFillAbove()
          Get the color to fill above the band.
 Color getFillBelow()
          Get the color to fill below the band.
 MessageFormat[] getLabelFormats()
          Get the label template.
 TargetStrategy getStrategy()
           
 TextSpec getTextSpec()
          Get the text format for the target labels.
 boolean isChartScope()
          Check if the calculation is for entire chart or subgraph.
 boolean isDateTarget()
          Check whether this is a date/time target.
 boolean isStacked()
          Gets whether the data will be considered as stacked when calculating target lines.
 void setBandColorFrame(CategoricalColorFrame bandColors)
          Set the color frame for multiple bands generated by a statistic.
 void setChartScope(boolean scope)
          Set if the calculation is for entire chart or subgraph.
 void setDateTarget(boolean dateTarget)
          Set whether this is a date/time target.
 void setField(String field)
           
 void setFieldLabel(String label)
           
 void setFillAbove(Color fillAbove)
          Set the color to fill above the band.
 void setFillBelow(Color fillBelow)
          Set the color to fill below the band.
 void setLabelFormats(MessageFormat[] templates)
          Set the label template.
 void setStacked(boolean isStacked)
          Sets whether the data should be stacked for purposes of calculating target lines.
 void setStrategy(TargetStrategy strategy)
          Set the strategy used to determine band parameters.
 void setTextSpec(TextSpec labelSpec)
          Set the text format for the target labels.
 
Methods inherited from class inetsoft.graph.guide.form.GraphForm
getColor, getLine, getMeasure, getPosition, getXOffset, getYOffset, getZIndex, isInPlot, isVisible, scale, setColor, setInPlot, setLine, setMeasure, setXOffset, setYOffset, setZIndex
 
Methods inherited from class inetsoft.graph.Graphable
getHint, getHints, setHint, setHints, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TargetForm

public TargetForm()
Method Detail

createVisual

public Visualizable createVisual(Coordinate coord)
Not used. We almost always are creating more than one visual object The only exception would be a Line Target without fill.

Specified by:
createVisual in class GraphForm
Parameters:
coord - the coordinate the visual object is plotted on.
Returns:
the new visual object.

createVisuals

public Visualizable[] createVisuals(Coordinate coord)
Create visual objects based on the given data and the strategy.

Overrides:
createVisuals in class GraphForm
Parameters:
coord - the coordinate the visual object is plotted on.
Returns:
the new visual objects.

setStrategy

public void setStrategy(TargetStrategy strategy)
Set the strategy used to determine band parameters.


getStrategy

public TargetStrategy getStrategy()
Returns:
the strategy used to calculate band boundaries

setFillAbove

public void setFillAbove(Color fillAbove)
Set the color to fill above the band.


getFillAbove

public Color getFillAbove()
Get the color to fill above the band.


setFillBelow

public void setFillBelow(Color fillBelow)
Set the color to fill below the band.


getFillBelow

public Color getFillBelow()
Get the color to fill below the band.


setBandColorFrame

public void setBandColorFrame(CategoricalColorFrame bandColors)
Set the color frame for multiple bands generated by a statistic.


getBandColorFrame

public CategoricalColorFrame getBandColorFrame()
Get the color frame for multiple bands generated by a statistic.


setStacked

public void setStacked(boolean isStacked)
Sets whether the data should be stacked for purposes of calculating target lines.


isStacked

public boolean isStacked()
Gets whether the data will be considered as stacked when calculating target lines.


setLabelFormats

public void setLabelFormats(MessageFormat[] templates)
Set the label template.


getLabelFormats

public MessageFormat[] getLabelFormats()
Get the label template.


setTextSpec

public void setTextSpec(TextSpec labelSpec)
Set the text format for the target labels.


getTextSpec

public TextSpec getTextSpec()
Get the text format for the target labels.


setChartScope

public void setChartScope(boolean scope)
Set if the calculation is for entire chart or subgraph.

Parameters:
scope - true for entire chart, false for subgraph.

isChartScope

public boolean isChartScope()
Check if the calculation is for entire chart or subgraph.


isDateTarget

public boolean isDateTarget()
Check whether this is a date/time target.


setDateTarget

public void setDateTarget(boolean dateTarget)
Set whether this is a date/time target.


getField

public String getField()

setField

public void setField(String field)

getFieldLabel

public String getFieldLabel()

setFieldLabel

public void setFieldLabel(String label)

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