Documentation of 'jcckit.plot.Plot' Java class
Plot
jcckit.plot

Class Plot

    • Field Detail

      • COORDINATE_SYSTEM_KEY

        public static final java.lang.String COORDINATE_SYSTEM_KEY
        Configuration parameter key.
        See Also:
        Constant Field Values
      • CURVE_FACTORY_KEY

        public static final java.lang.String CURVE_FACTORY_KEY
        Configuration parameter key.
        See Also:
        Constant Field Values
      • LEGEND_VISIBLE_KEY

        public static final java.lang.String LEGEND_VISIBLE_KEY
        Configuration parameter key.
        See Also:
        Constant Field Values
      • LEGEND_KEY

        public static final java.lang.String LEGEND_KEY
        Configuration parameter key.
        See Also:
        Constant Field Values
      • INITIAL_HINT_FOR_NEXT_CURVE_KEY

        public static final java.lang.String INITIAL_HINT_FOR_NEXT_CURVE_KEY
        Configuration parameter key.
        See Also:
        Constant Field Values
    • Method Detail

      • addPlotListener

        public void addPlotListener(PlotListener listener)
        Adds the specified PlotListener. Does nothing if already added.
      • removePlotListener

        public void removePlotListener(PlotListener listener)
        Removes the specfied PlotListener. Does nothing if already removed.
      • connect

        public void connect(DataPlot dataPlot)
        Connect the specified DataPlot with this instance.

        If this Plot instance is already connected with a DataPlot the connection will be released and a PlotEvent of the type PlotEventType.DATA_PLOT_DISCONNECTED will be sent to all registrated PlotListeners.

        It registers itself at dataPlot and all its DataCurves.

        Finally all curves will be generated and a PlotEvent of the type PlotEventType.DATA_PLOT_CONNECTED will be transmitted.

        Parameters:
        dataPlot - Data to be connected with this plot instance. Can be null in order to disconnect this instance from any DataPlot.
      • transform

        public DataPoint transform(GraphPoint point)
        Transforms a point from device-independent coordinates into data coordinates.
        Parameters:
        point - Point in device-independent coordinates.
        Returns:
        transform point.
      • getCompletePlot

        public GraphicalComposite getCompletePlot()
        Creates a graphical representation of the complete plot.
        Returns:
        GraphicalComposite containing the views of the coordinate system, the curves, and optionally the legend (in this order).
      • getCoordinateSystem

        public GraphicalElement getCoordinateSystem()
        Returns the view of the coordinate system.
      • getCurves

        public GraphicalElement[] getCurves()
        Returns the graphical representations of all curves.
      • getAnnotation

        public GraphicalElement getAnnotation()
        Returns the annotation layer.
        Returns:
        null if no annotation layer.
      • setAnnotation

        public void setAnnotation(GraphicalElement annotation)
        Sets the annotation layer.
        Parameters:
        annotation - Any kind of graphics which will be drawn on the top of the curves but may be covered by the legend. Can be null.
      • isLegendVisible

        public boolean isLegendVisible()
        Returns true if the legend is visible.
      • getLegend

        public GraphicalElement getLegend()
        Returns the graphical representations of the legend.

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.