org.knime.base.node.preproc.discretization.caim2.modelcreator
Class BinRuler

java.lang.Object
  extended by org.knime.base.node.preproc.discretization.caim2.modelcreator.BinRuler

public class BinRuler
extends Object

A BinRuler is the visual representation of a column binning. The ruler contains just display coordinates such that it can be painted directly into a drawing pane; i.e. it is the visual model of the binning.

Author:
Christoph Sieb, University of Konstanz

Constructor Summary
BinRuler(Point leftStartPoint, int width, int[] binPositions, String[] binPosValues, String name)
          Creates a BinRuler from its left starting point, the width of the ruler, its binning boundary positions and the value labels for the boundaries.
 
Method Summary
 int[] getBinPositions()
          Returns the bin positions.
 String[] getBinPosValue()
          Returns the bin positions label values.
 Point getLeftStartPoint()
          Returns the left start point of the ruler.
 String getName()
          Returns the name for this ruler.
 int getWidth()
          Returns the width of the ruler.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BinRuler

public BinRuler(Point leftStartPoint,
                int width,
                int[] binPositions,
                String[] binPosValues,
                String name)
Creates a BinRuler from its left starting point, the width of the ruler, its binning boundary positions and the value labels for the boundaries.

Parameters:
leftStartPoint - the left starting point of the ruler
width - the width of the ruler
binPositions - binning boundary positions
binPosValues - the value labels for the boundaries
name - the name for this ruler; normaly the column name
Method Detail

getBinPositions

public int[] getBinPositions()
Returns the bin positions.

Returns:
the bin positions

getBinPosValue

public String[] getBinPosValue()
Returns the bin positions label values.

Returns:
the bin positions label values

getLeftStartPoint

public Point getLeftStartPoint()
Returns the left start point of the ruler.

Returns:
the left start point of the ruler

getWidth

public int getWidth()
Returns the width of the ruler.

Returns:
the width of the ruler

getName

public String getName()
Returns the name for this ruler.

Returns:
the name for this ruler


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.