org.knime.base.node.viz.plotter.box
Class Box

java.lang.Object
  extended by org.knime.base.node.viz.plotter.box.Box

public class Box
extends Object

Author:
Fabian Dill, University of Konstanz

Field Summary
static double ROUNDING_FACTOR
          Constant for the rounding of the values shown in tooltip.
 
Constructor Summary
Box(int x, int min, int lowerQuartile, int median, int upperQuartile, int max, double[] domainValues)
          The graphical representation of a box in a box plot.
 
Method Summary
 String getColumnName()
           
 double[] getDomainValues()
           
 int getLowerQuartile()
           
 int getLowerWhisker()
           
 int getMax()
           
 int getMedian()
           
 int getMin()
           
 String getToolTip(int y)
          Returns the domain values as a string for all values near y.
 int getUpperQuartile()
           
 int getUpperWhisker()
           
 int getX()
           
 void setColumnName(String columnName)
           
 void setLowerWhiskers(int lowerWhisker)
           
 void setUpperWhiskers(int upperWhisker)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ROUNDING_FACTOR

public static final double ROUNDING_FACTOR
Constant for the rounding of the values shown in tooltip.

See Also:
Constant Field Values
Constructor Detail

Box

public Box(int x,
           int min,
           int lowerQuartile,
           int median,
           int upperQuartile,
           int max,
           double[] domainValues)
The graphical representation of a box in a box plot.

Parameters:
x - the central x position
min - the min value.
lowerQuartile - the lower quartile
median - the median
upperQuartile - the upper quartile
max - the maximum value
domainValues - the original values (not mapped).
Method Detail

getX

public int getX()
Returns:
the central x pos

getMin

public int getMin()
Returns:
mapped minimum value

getLowerQuartile

public int getLowerQuartile()
Returns:
mapped lower quartile

getMedian

public int getMedian()
Returns:
mapped median

getUpperQuartile

public int getUpperQuartile()
Returns:
mapped upper quartile

getMax

public int getMax()
Returns:
mapped maximum

getDomainValues

public double[] getDomainValues()
Returns:
domain values (not mapped)

setColumnName

public void setColumnName(String columnName)
Parameters:
columnName - name of the referring column.

getColumnName

public String getColumnName()
Returns:
name of the referring column.

setLowerWhiskers

public void setLowerWhiskers(int lowerWhisker)
Parameters:
lowerWhisker - the lower whisker

setUpperWhiskers

public void setUpperWhiskers(int upperWhisker)
Parameters:
upperWhisker - the upper whisker

getLowerWhisker

public int getLowerWhisker()
Returns:
lower whisker

getUpperWhisker

public int getUpperWhisker()
Returns:
upper whisker

getToolTip

public String getToolTip(int y)
Returns the domain values as a string for all values near y.

Parameters:
y - the mouse point
Returns:
the tooltip with information about the box.


Copyright, 2003 - 2010. All rights reserved.
University of Konstanz, Germany.
Chair for Bioinformatics and Information Mining, Prof. Dr. Michael R. Berthold.
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display, or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the copyright owner or as specified in the license file distributed with this product.