use of org.knime.base.node.viz.pie.datamodel.PieVizModel in project knime-core by knime.
the class PiePlotter method clearSelection.
/**
* {@inheritDoc}
*/
@Override
public void clearSelection() {
final PieVizModel vizModel = getVizModel();
if (vizModel == null) {
return;
}
vizModel.clearSelection();
repaint();
}
use of org.knime.base.node.viz.pie.datamodel.PieVizModel in project knime-core by knime.
the class PiePlotter method unHiLiteSelected.
/**
* {@inheritDoc}
*/
@Override
public void unHiLiteSelected() {
final PieVizModel vizModel = getVizModel();
if (vizModel == null || !vizModel.supportsHiliting()) {
LOGGER.debug("VizModel doesn't support hiliting or was null");
return;
}
final Set<RowKey> selectedKeys = vizModel.getSelectedKeys();
delegateUnHiLite(selectedKeys);
repaint();
}
use of org.knime.base.node.viz.pie.datamodel.PieVizModel in project knime-core by knime.
the class PiePlotter method updateSize.
/**
* {@inheritDoc}
*/
@Override
public void updateSize() {
final PieVizModel vizModel = getVizModel();
if (vizModel == null) {
LOGGER.debug("VizModel was null");
return;
}
final Dimension newDrawingSpace = getDrawingPaneDimension();
if (vizModel.setDrawingSpace(newDrawingSpace)) {
updatePaintModel();
}
}
use of org.knime.base.node.viz.pie.datamodel.PieVizModel in project knime-core by knime.
the class PiePlotter method unHiLite.
/**
* {@inheritDoc}
*/
@Override
public void unHiLite(final KeyEvent event) {
final PieVizModel vizModel = getVizModel();
if (vizModel == null || !vizModel.supportsHiliting()) {
LOGGER.debug("VizModel doesn't support hiliting or was null");
return;
}
final Set<RowKey> hilited = event.keys();
vizModel.updateHiliteInfo(hilited, false);
repaint();
}
use of org.knime.base.node.viz.pie.datamodel.PieVizModel in project knime-core by knime.
the class PiePlotter method hiLite.
/**
* {@inheritDoc}
*/
@Override
public void hiLite(final KeyEvent event) {
final PieVizModel vizModel = getVizModel();
if (vizModel == null || !vizModel.supportsHiliting()) {
LOGGER.debug("VizModel doesn't support hiliting or was null");
return;
}
final Set<RowKey> hilited = event.keys();
vizModel.updateHiliteInfo(hilited, true);
repaint();
}
Aggregations