org.knime.base.node.viz.histogram.datamodel
Class InteractiveBarDataModel

java.lang.Object
  extended by org.knime.base.node.viz.aggregation.AggregationValModel<BarElementDataModel,Rectangle2D,Rectangle2D>
      extended by org.knime.base.node.viz.histogram.datamodel.BarDataModel
          extended by org.knime.base.node.viz.histogram.datamodel.InteractiveBarDataModel
All Implemented Interfaces:
Serializable, AggregationModel<Rectangle2D,Rectangle2D>

public class InteractiveBarDataModel
extends BarDataModel

This class extends the BarDataModel to support hiliting.

Author:
Tobias Koetter, University of Konstanz
See Also:
Serialized Form

Constructor Summary
protected InteractiveBarDataModel(String barName, Color color)
          Constructor for class BarDataModel.
 
Method Summary
protected  BarElementDataModel createElement(Color color)
          
 void updateBarWidth(int startX, int barWidth, List<Color> barElementColors, int baseLine, AbstractHistogramVizModel.HistogramHiliteCalculator calculator)
          
 
Methods inherited from class org.knime.base.node.viz.histogram.datamodel.BarDataModel
clone, getMaxAggregationValue, getMinAggregationValue, getSelectedElements, getSurroundingRectangle, loadElements, loadFromFile, saveElements, setBarRectangle
 
Methods inherited from class org.knime.base.node.viz.aggregation.AggregationValModel
addDataRow, calculateHiliteShape, clearHilite, getAggregationSum, getAggregationValue, getColor, getElement, getElements, getHiliteRowCount, getHiliteShape, getName, getNoOfElements, getRowCount, getSelectedSubElement, getShape, getValueCount, isEmpty, isHilited, isPresentable, isSelected, removeHilitedKeys, save2File, selectElement, selectElement, setColor, setHilitedKeys, setHiliteShape, setPresentable, setSelected, setShape, supportsHiliting
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InteractiveBarDataModel

protected InteractiveBarDataModel(String barName,
                                  Color color)
Constructor for class BarDataModel.

Parameters:
barName - the name of this bar
color - the color to use for this bar
Method Detail

createElement

protected BarElementDataModel createElement(Color color)

Overrides:
createElement in class BarDataModel
Parameters:
color - the color of the new sub element
Returns:
the new sub element with the given color

updateBarWidth

public void updateBarWidth(int startX,
                           int barWidth,
                           List<Color> barElementColors,
                           int baseLine,
                           AbstractHistogramVizModel.HistogramHiliteCalculator calculator)

Overrides:
updateBarWidth in class BarDataModel
Parameters:
startX - the x coordinate
barWidth - the new bar width
barElementColors - all element colors which define the order the elements should be drawn
baseLine - the base line
calculator - the hilite shape calculator


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.