Class JFreeChartScatterPlot

  • All Implemented Interfaces:
    ImageObserver, MenuContainer, Serializable, Accessible

    public class JFreeChartScatterPlot
    extends JPanel
    Provides synchronization in between NexusTableModel and scatter plot. Data can be provided in different ways into the plot. First option is, to have fixed x/y coordinates for every row in the dataset.
    See Also:
    Serialized Form
    • Method Detail

      • setColor

        public void setColor​(org.jfree.data.general.DefaultKeyedValuesDataset data_color)
      • setColormap

        public void setColormap​(net.mahdilamb.colormap.Colormap colormap)
      • getPositionOfKey

        public double[] getPositionOfKey​(String ski)
      • setSelection

        public void setSelection​(Set<String> selection)
        Note: calling this method does NOT fire any events in ClusterAppModel
        Parameters:
        selection -
      • setHighlight

        public void setHighlight​(Set<String> highlight,
                                 boolean fireEvent)
      • setColorValues

        public void setColorValues​(Map<String,​Double> col)
      • getKeyForIndex

        public String getKeyForIndex​(int i)
      • getIndexForKey

        public int getIndexForKey​(String key)
      • setColoringByNexusColumn

        public void setColoringByNexusColumn​(NColumn nc)
      • setContextMenu

        public void setContextMenu​(JPopupMenu jpop)
      • getKeyForXYEntity

        public String getKeyForXYEntity​(org.jfree.chart.entity.XYItemEntity entity)
      • updatePlot

        public void updatePlot()
      • setHighlightNNearestNeighbors

        public void setHighlightNNearestNeighbors​(int n)
        set to -1 to deactivate
        Parameters:
        n -
      • java2dToChart

        public static double[] java2dToChart​(org.jfree.chart.ChartPanel cp,
                                             org.jfree.chart.plot.XYPlot plot,
                                             double px,
                                             double py)
      • getHighlightMap

        public Map<String,​Double> getHighlightMap​(org.jfree.chart.entity.EntityCollection entityCollection,
                                                        org.jfree.chart.entity.EntityCollection toHighlight)
      • getNNearestEntities

        public static org.jfree.chart.entity.EntityCollection getNNearestEntities​(org.jfree.chart.entity.EntityCollection entityCollection,
                                                                                  int px,
                                                                                  int py,
                                                                                  int n)