|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.knime.base.node.viz.aggregation.AggregationValModel<BarElementDataModel,Rectangle2D,Rectangle2D>
org.knime.base.node.viz.histogram.datamodel.BarDataModel
public class BarDataModel
This class represents one bar in the histogram. A bar corresponds to one
selected aggregation column and belongs to one
BinDataModel.
It contains one or more BarElementDataModel.
| Constructor Summary | |
|---|---|
protected |
BarDataModel(String barName,
Color color)
Constructor for class BarDataModel. |
protected |
BarDataModel(String barName,
Color color,
boolean supportHiliting)
Constructor for class BarDataModel. |
| Method Summary | |
|---|---|
protected BarDataModel |
clone()
|
protected BarElementDataModel |
createElement(Color color)
|
double |
getMaxAggregationValue(AggregationMethod method,
HistogramLayout layout)
|
double |
getMinAggregationValue(AggregationMethod method,
HistogramLayout layout)
|
List<BarElementDataModel> |
getSelectedElements()
|
Rectangle2D |
getSurroundingRectangle()
|
protected Collection<BarElementDataModel> |
loadElements(ConfigRO config,
ExecutionMonitor exec)
|
static BarDataModel |
loadFromFile(Config config,
ExecutionMonitor exec)
|
protected void |
saveElements(Collection<BarElementDataModel> elements,
ConfigWO config,
ExecutionMonitor exec)
|
protected void |
setBarRectangle(Rectangle2D barRect,
int baseLine,
List<Color> barElementColors,
AbstractHistogramVizModel.HistogramHiliteCalculator calculator)
|
void |
updateBarWidth(int startX,
int newWidth,
List<Color> barElementColors,
int baseLine,
AbstractHistogramVizModel.HistogramHiliteCalculator calculator)
|
| 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 |
|---|
protected BarDataModel(String barName,
Color color)
barName - the name of this barcolor - the color to use for this bar
protected BarDataModel(String barName,
Color color,
boolean supportHiliting)
barName - the name of this barcolor - the color to use for this barsupportHiliting - if hiliting should be supported| Method Detail |
|---|
protected BarElementDataModel createElement(Color color)
createElement in class AggregationValModel<BarElementDataModel,Rectangle2D,Rectangle2D>color - the color of the new sub element
public Rectangle2D getSurroundingRectangle()
Rectangle the aggregation color of this bar
should be drawn on the screen
public double getMinAggregationValue(AggregationMethod method,
HistogramLayout layout)
method - the AggregationMethod to uselayout - the histogram layout
public double getMaxAggregationValue(AggregationMethod method,
HistogramLayout layout)
method - the AggregationMethod to uselayout - the histogram layout
protected void setBarRectangle(Rectangle2D barRect,
int baseLine,
List<Color> barElementColors,
AbstractHistogramVizModel.HistogramHiliteCalculator calculator)
barRect - the Rectangle the bar 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 drawncalculator - the hilite shape calculator
public void updateBarWidth(int startX,
int newWidth,
List<Color> barElementColors,
int baseLine,
AbstractHistogramVizModel.HistogramHiliteCalculator calculator)
startX - the x coordinatenewWidth - the new bar widthbarElementColors - all element colors which define the order
the elements should be drawnbaseLine - the base linecalculator - the hilite shape calculatorpublic List<BarElementDataModel> getSelectedElements()
getSelectedElements in class AggregationValModel<BarElementDataModel,Rectangle2D,Rectangle2D>protected BarDataModel clone()
clone in class AggregationValModel<BarElementDataModel,Rectangle2D,Rectangle2D>
public static BarDataModel loadFromFile(Config config,
ExecutionMonitor exec)
throws CanceledExecutionException,
InvalidSettingsException
config - the config object to useexec - the ExecutionMonitor to provide progress messages
BarDataModel
CanceledExecutionException - if the operation is canceled
InvalidSettingsException - if the config object is invalid
protected void saveElements(Collection<BarElementDataModel> elements,
ConfigWO config,
ExecutionMonitor exec)
throws CanceledExecutionException
saveElements in class AggregationValModel<BarElementDataModel,Rectangle2D,Rectangle2D>elements - the elements to saveconfig - the config object to useexec - the ExecutionMonitor to provide progress information
CanceledExecutionException - if the operation is canceled
protected Collection<BarElementDataModel> loadElements(ConfigRO config,
ExecutionMonitor exec)
throws CanceledExecutionException,
InvalidSettingsException
loadElements in class AggregationValModel<BarElementDataModel,Rectangle2D,Rectangle2D>config - the config object to useexec - the ExecutionMonitor to provide progress information
CanceledExecutionException - if the operation is canceled
InvalidSettingsException - if the config object is invalid
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||