Search in sources :

Example 11 with PieVizModel

use of org.knime.base.node.viz.pie.datamodel.PieVizModel in project knime-core by knime.

the class PiePlotter method selectClickedElement.

/**
 * {@inheritDoc}
 */
@Override
public void selectClickedElement(final Point clicked) {
    final PieVizModel vizModel = getVizModel();
    if (vizModel == null) {
        return;
    }
    vizModel.selectElement(clicked);
    if (vizModel.explodeSelectedSections()) {
        updatePaintModel();
    }
    final P properties = getPropertiesPanel();
    if (properties != null) {
        properties.updateHTMLDetailsPanel(vizModel.getHTMLDetailData());
    }
    repaint();
}
Also used : PieVizModel(org.knime.base.node.viz.pie.datamodel.PieVizModel)

Aggregations

PieVizModel (org.knime.base.node.viz.pie.datamodel.PieVizModel)11 RowKey (org.knime.core.data.RowKey)4 Dimension (java.awt.Dimension)1 ActionEvent (java.awt.event.ActionEvent)1 ActionListener (java.awt.event.ActionListener)1 ItemEvent (java.awt.event.ItemEvent)1 ItemListener (java.awt.event.ItemListener)1 JSlider (javax.swing.JSlider)1 ChangeEvent (javax.swing.event.ChangeEvent)1 ChangeListener (javax.swing.event.ChangeListener)1 AggregationMethod (org.knime.base.node.viz.aggregation.AggregationMethod)1 AbstractDrawingPane (org.knime.base.node.viz.plotter.AbstractDrawingPane)1