|
||||||||||
| 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.AbstractHistogramVizModel
org.knime.base.node.viz.histogram.datamodel.InteractiveHistogramVizModel
public class InteractiveHistogramVizModel
Extends the AbstractHistogramVizModel to allow hiliting and
column changing.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.knime.base.node.viz.histogram.datamodel.AbstractHistogramVizModel |
|---|
AbstractHistogramVizModel.HistogramHiliteCalculator |
| Field Summary |
|---|
| Fields inherited from class org.knime.base.node.viz.histogram.datamodel.AbstractHistogramVizModel |
|---|
BAR_SURROUNDING_SPACE, BIN_SURROUNDING_SPACE, DEFAULT_NO_OF_BINS, HILITE_RECT_WIDTH_FACTOR, INTERVAL_DIGITS, MIN_BIN_WIDTH, MINIMUM_BAR_HEIGHT, MINIMUM_ELEMENT_WIDTH, MISSING_VAL_BAR_CAPTION, SPACE_BETWEEN_BARS, SPACE_BETWEEN_BINS, SPACE_BETWEEN_ELEMENTS |
| Constructor Summary | |
|---|---|
InteractiveHistogramVizModel(List<Color> rowColors,
AggregationMethod aggrMethod,
HistogramLayout layout,
DataTableSpec spec,
List<DataRow> rows,
DataColumnSpec xColSpec,
Collection<ColorColumn> aggrColumns,
int noOfBins)
Constructor for class InteractiveHistogramVizModel. |
|
| Method Summary | |
|---|---|
Collection<ColorColumn> |
getAggrColumns()
|
Set<RowKey> |
getHilitedKeys()
|
Set<RowKey> |
getSelectedKeys()
|
DataTableSpec |
getTableSpec()
|
String |
getXColumnName()
|
DataColumnSpec |
getXColumnSpec()
|
boolean |
setAggregationColumns(Collection<ColorColumn> aggrCols)
|
boolean |
setNoOfBins(int noOfBins)
|
boolean |
setXColumn(DataColumnSpec xColSpec)
|
boolean |
supportsHiliting()
|
void |
unHiliteAll()
Unhilites all rows. |
void |
updateHiliteInfo(Set<RowKey> hilited,
boolean hilite)
This method un/hilites all rows with the given key. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InteractiveHistogramVizModel(List<Color> rowColors,
AggregationMethod aggrMethod,
HistogramLayout layout,
DataTableSpec spec,
List<DataRow> rows,
DataColumnSpec xColSpec,
Collection<ColorColumn> aggrColumns,
int noOfBins)
rowColors - all possible colors the user has defined for a rownoOfBins - the number of bins to createaggrMethod - the AggregationMethod to uselayout - HistogramLayout to usespec - the DataTableSpecrows - the DataRowxColSpec - the DataColumnSpec of the selected x columnaggrColumns - the selected aggregation columns| Method Detail |
|---|
public boolean setNoOfBins(int noOfBins)
setNoOfBins in class AbstractHistogramVizModelnoOfBins - the new number of bins to create
true if the number of bins has changedpublic boolean setXColumn(DataColumnSpec xColSpec)
xColSpec - the new x column specification
true if the variable has changedpublic boolean setAggregationColumns(Collection<ColorColumn> aggrCols)
aggrCols - the new aggregation columns
true if the variable has changedpublic String getXColumnName()
getXColumnName in class AbstractHistogramVizModelpublic DataColumnSpec getXColumnSpec()
getXColumnSpec in class AbstractHistogramVizModelpublic Collection<ColorColumn> getAggrColumns()
getAggrColumns in class AbstractHistogramVizModelpublic boolean supportsHiliting()
supportsHiliting in class AbstractHistogramVizModeltrue if the bins support hiliting otherwise
falsepublic DataTableSpec getTableSpec()
DataTableSpec of the table on which this
histogram based onpublic Set<RowKey> getHilitedKeys()
getHilitedKeys in class AbstractHistogramVizModelpublic Set<RowKey> getSelectedKeys()
getSelectedKeys in class AbstractHistogramVizModel
public void updateHiliteInfo(Set<RowKey> hilited,
boolean hilite)
updateHiliteInfo in class AbstractHistogramVizModelhilited - the rowKeys of the rows to un/hilitehilite - if the given keys should be hilited true
or unhilited falsepublic void unHiliteAll()
unHiliteAll in class AbstractHistogramVizModel
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||