Style Intelligence v12.0

inetsoft.graph.guide.form
Class DynamicLineStrategy

java.lang.Object
  extended by inetsoft.graph.guide.form.TargetStrategy
      extended by inetsoft.graph.guide.form.DynamicLineStrategy

public class DynamicLineStrategy
extends TargetStrategy

Generates some number of target lines at specific predefined points


Field Summary
 
Fields inherited from class inetsoft.graph.guide.form.TargetStrategy
sortedIndices
 
Constructor Summary
DynamicLineStrategy()
          Convenience empty constructor
DynamicLineStrategy(TargetParameter[] parameters)
          Constructor taking any number of doubles
 
Method Summary
 void addParameters(TargetParameter[] parameters)
          Add parameters to the list
protected  String[] generateDefaultLabels(double[] bandBoundaries, boolean dateTarget)
          Generate labels for boundary lines using the line boundaries
protected  String[] generateLabels(double[] bandBoundaries, MessageFormat[] labelFormats, String fieldName, Format valueFormat, boolean dateTarget)
          Generates label strings for boundary lines
protected  double[] getRuntimeBoundaries(double[] data)
          Calculates the positions of the band boundaries based on incoming post-aggregate data and some number of parameters
protected  void reorderValues(Integer[] indices)
           
 void setParameters(TargetParameter[] parameters)
          Set the parameters list
 
Methods inherited from class inetsoft.graph.guide.form.TargetStrategy
calculateBoundaries
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DynamicLineStrategy

public DynamicLineStrategy()
Convenience empty constructor


DynamicLineStrategy

public DynamicLineStrategy(TargetParameter[] parameters)
Constructor taking any number of doubles

Method Detail

getRuntimeBoundaries

protected double[] getRuntimeBoundaries(double[] data)
Calculates the positions of the band boundaries based on incoming post-aggregate data and some number of parameters

Specified by:
getRuntimeBoundaries in class TargetStrategy
Returns:

reorderValues

protected void reorderValues(Integer[] indices)
Specified by:
reorderValues in class TargetStrategy

setParameters

public void setParameters(TargetParameter[] parameters)
Set the parameters list


addParameters

public void addParameters(TargetParameter[] parameters)
Add parameters to the list


generateDefaultLabels

protected String[] generateDefaultLabels(double[] bandBoundaries,
                                         boolean dateTarget)
Generate labels for boundary lines using the line boundaries

Specified by:
generateDefaultLabels in class TargetStrategy

generateLabels

protected String[] generateLabels(double[] bandBoundaries,
                                  MessageFormat[] labelFormats,
                                  String fieldName,
                                  Format valueFormat,
                                  boolean dateTarget)
Description copied from class: TargetStrategy
Generates label strings for boundary lines

Overrides:
generateLabels in class TargetStrategy
Parameters:
bandBoundaries - The already calculated positions of boundary lines
labelFormats - The user provided template string
fieldName - The name of the field
Returns:
labels for the target lines.

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