Class ScatterPlotModel


  • public class ScatterPlotModel
    extends Object
    • Method Detail

      • setColor

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

        public void setColorExpclicit​(org.jfree.chart.renderer.PaintScale colors,
                                      Map<String,​Integer> values)
      • setColorValues

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

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

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

        public void setHighlightNNearestNeighbors​(int n)
        set to -1 to deactivate
        Parameters:
        n -
      • 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)
      • 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)
      • getHighlightNNearestNeighbors

        public int getHighlightNNearestNeighbors()
      • getKeyForIndex

        public String getKeyForIndex​(int i)
      • getIndexForKey

        public int getIndexForKey​(String key)
      • getChart

        public org.jfree.chart.JFreeChart getChart()
      • getXYPlot

        public org.jfree.chart.plot.XYPlot getXYPlot()
      • reinitPlot

        public void reinitPlot()
      • getXYShapeRenderer

        public org.jfree.chart.renderer.xy.XYShapeRenderer getXYShapeRenderer()
      • setRendererShapeSize

        public void setRendererShapeSize​(int size)
      • setWithoutAxisAndLegend

        public void setWithoutAxisAndLegend()