org.knime.base.node.viz.histogram.datamodel
Class InteractiveBarDataModel
java.lang.Object
org.knime.base.node.viz.aggregation.AggregationValModel<BarElementDataModel,Rectangle2D,Rectangle2D>
org.knime.base.node.viz.histogram.datamodel.BarDataModel
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
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 |
InteractiveBarDataModel
protected InteractiveBarDataModel(String barName,
Color color)
- Constructor for class BarDataModel.
- Parameters:
barName
- the name of this barcolor
- the color to use for this bar
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 coordinatebarWidth
- the new bar widthbarElementColors
- all element colors which define the order
the elements should be drawnbaseLine
- the base linecalculator
- 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.