|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.knime.base.node.viz.histogram.datamodel.BinDataModel
org.knime.base.node.viz.histogram.datamodel.InteractiveBinDataModel
public class InteractiveBinDataModel
This class extends the BinDataModel to support hiliting.
| Constructor Summary | |
|---|---|
InteractiveBinDataModel(String xAxisCaption,
double lowerBound,
double upperBound)
Constructor for class BinDataModel. |
|
| Method Summary | |
|---|---|
void |
clearHilite()
Clears the hilite information. |
protected BarDataModel |
createBar(String barName,
Color color)
Creates a new BarDataModel with the given color. |
Rectangle2D |
getHiliteRectangle()
The proportional hilite rectangle of this bin which could be displayed if the bars of this bin can't be draw. |
int |
getNoOfHilitedRows()
|
protected boolean |
removeHilitedKeys(Set<RowKey> hilited,
AbstractHistogramVizModel.HistogramHiliteCalculator calculator)
|
void |
setBinRectangle(Rectangle binRectangle,
int baseLine,
List<Color> barElementColors,
Collection<ColorColumn> aggrColumns,
AbstractHistogramVizModel.HistogramHiliteCalculator calculator)
THE HEIGHT OF THE RECTANGLE SHOULD BE CALCULATED USING THE MIN AND MAX AGGREGATION VALUE TO HANDLES BINS WITH POSITIVE AND NEGATIVE BARS!!! |
protected boolean |
setHilitedKeys(Set<RowKey> hilited,
AbstractHistogramVizModel.HistogramHiliteCalculator calculator)
|
void |
updateBinWidth(int startX,
int binWidth,
List<Color> barElementColors,
Collection<ColorColumn> aggrColumns,
int baseLine,
AbstractHistogramVizModel.HistogramHiliteCalculator calculator)
|
| Methods inherited from class org.knime.base.node.viz.histogram.datamodel.BinDataModel |
|---|
addDataRow, clear, clone, getBar, getBars, getBinRectangle, getBinRowCount, getLowerBound, getMaxAggregationValue, getMaxBarRowCount, getMinAggregationValue, getMinRowCount, getNoOfBars, getSelectedBars, getSurroundingRectangle, getUpperBound, getXAxisCaption, getXAxisCaptionCell, isPresentable, isSelected, loadFromFile, save2File, selectElement, selectElement, setSelected |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InteractiveBinDataModel(String xAxisCaption,
double lowerBound,
double upperBound)
xAxisCaption - the caption of this bin on the x axislowerBound - the lower bound of the bin intervalupperBound - the higher bound of the bin interval| Method Detail |
|---|
protected BarDataModel createBar(String barName,
Color color)
BarDataModel with the given color.
createBar in class BinDataModelbarName - the name of this barcolor - the Color of the bar
public void setBinRectangle(Rectangle binRectangle,
int baseLine,
List<Color> barElementColors,
Collection<ColorColumn> aggrColumns,
AbstractHistogramVizModel.HistogramHiliteCalculator calculator)
setBinRectangle in class BinDataModelbinRectangle - the Rectangle the bin should be drawn on the
screenbaseLine - the x coordinate of the base line (0) on the screenbarElementColors - all element colors which define the order
the elements should be drawnaggrColumns - the aggregation column array which indicates
the order of the barscalculator - the hilite shape calculator
public void updateBinWidth(int startX,
int binWidth,
List<Color> barElementColors,
Collection<ColorColumn> aggrColumns,
int baseLine,
AbstractHistogramVizModel.HistogramHiliteCalculator calculator)
updateBinWidth in class BinDataModelstartX - new x coordinatebinWidth - new bin widthbarElementColors - all element colors which define the order
the elements should be drawnaggrColumns - the current aggregation columnsbaseLine - the base linecalculator - the hilite shape calculatorpublic int getNoOfHilitedRows()
protected boolean setHilitedKeys(Set<RowKey> hilited,
AbstractHistogramVizModel.HistogramHiliteCalculator calculator)
hilited - the row keys to hilitecalculator - the hilite shape calculator
protected boolean removeHilitedKeys(Set<RowKey> hilited,
AbstractHistogramVizModel.HistogramHiliteCalculator calculator)
hilited - the row keys to unhilitecalculator - the hilite shape calculator
public void clearHilite()
public Rectangle2D getHiliteRectangle()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||