Class PlotlyPlot

java.lang.Object
llnl.gnem.core.gui.plotting.plotly.PlotlyPlot
All Implemented Interfaces:
Serializable, BasicPlot
Direct Known Subclasses:
PlotlyWaveformPlot

public class PlotlyPlot extends Object implements BasicPlot
See Also:
  • Field Details

    • engine

      protected transient javafx.scene.web.WebEngine engine
    • plotData

      protected final PlotData plotData
  • Constructor Details

    • PlotlyPlot

      public PlotlyPlot()
    • PlotlyPlot

      public PlotlyPlot(boolean isSubPlot)
    • PlotlyPlot

      public PlotlyPlot(boolean isSubPlot, PlotData plotData, int rows, int columns)
  • Method Details

    • setSubplotLayout

      public void setSubplotLayout(int columns, int rows)
      Specified by:
      setSubplotLayout in interface BasicPlot
    • exportData

      public String exportData()
    • log

      public void log(String text)
    • hasChanges

      public boolean hasChanges()
    • hasPersistentChanges

      public boolean hasPersistentChanges()
    • setClickPickingModeEnabled

      public void setClickPickingModeEnabled(boolean clickToPickEnabled)
    • isClickToPickEnabled

      public boolean isClickToPickEnabled()
    • setShowFreqLevelButtons

      public void setShowFreqLevelButtons(boolean showFreqLevelButtons)
      Specified by:
      setShowFreqLevelButtons in interface BasicPlot
    • isShowFreqLevelButtons

      public boolean isShowFreqLevelButtons()
    • fireShapeMoveEvent

      public void fireShapeMoveEvent(String name, double x0, double x1, double y0, double y1)
    • fireFreqLevelChange

      public void fireFreqLevelChange(boolean lflMode, double x, double y, double xx, double yy)
    • firePlotClickedEvent

      public void firePlotClickedEvent(double plotX, double plotY, double clientX, double clientY)
    • firePlotMouseMovedEvent

      public void firePlotMouseMovedEvent(double plotX, double plotY, double clientX, double clientY)
    • fireOtherChangeEvent

      public void fireOtherChangeEvent(String data)
    • fireAxisChangeEvent

      public void fireAxisChangeEvent(boolean reset, double xMin, double xMax, double yMin, double yMax)
    • fireSelectionEvent

      public void fireSelectionEvent(String eventType, String dataJSON)
    • replot

      public void replot()
      Specified by:
      replot in interface BasicPlot
    • fullReplot

      public void fullReplot()
      Specified by:
      fullReplot in interface BasicPlot
    • addAxes

      public void addAxes(Axis... axes)
      Specified by:
      addAxes in interface BasicPlot
    • clearAxes

      public void clearAxes()
      Specified by:
      clearAxes in interface BasicPlot
    • getPlotTypes

      public Map<String,PlotObjectData> getPlotTypes()
      Specified by:
      getPlotTypes in interface BasicPlot
    • attachToDisplayNode

      public void attachToDisplayNode(javafx.scene.layout.Pane parent)
      Specified by:
      attachToDisplayNode in interface BasicPlot
    • setBackgroundColor

      public void setBackgroundColor(javafx.scene.paint.Color color)
      Specified by:
      setBackgroundColor in interface BasicPlot
    • getBackgroundColor

      public javafx.scene.paint.Color getBackgroundColor()
    • setSymbolSize

      public void setSymbolSize(int pxSymbolSize)
      Specified by:
      setSymbolSize in interface BasicPlot
    • getTitle

      public Title getTitle()
      Specified by:
      getTitle in interface BasicPlot
    • addPlotObjectObserver

      public void addPlotObjectObserver(PropertyChangeListener observer)
      Specified by:
      addPlotObjectObserver in interface BasicPlot
    • setAxisLimits

      public void setAxisLimits(AxisLimits... axisLimits)
      Specified by:
      setAxisLimits in interface BasicPlot
    • addPlotObject

      public void addPlotObject(PlotObject object)
      Specified by:
      addPlotObject in interface BasicPlot
    • setUseHorizontalBottomLegend

      public void setUseHorizontalBottomLegend(boolean useHorizontalBottomLegend)
      Specified by:
      setUseHorizontalBottomLegend in interface BasicPlot
    • addPlotObject

      protected void addPlotObject(PlotObject object, PlotData plot)
    • removePlotObject

      public void removePlotObject(PlotObject object)
      Specified by:
      removePlotObject in interface BasicPlot
    • removePlotObject

      protected void removePlotObject(PlotObject object, PlotData plot)
    • setShowGroupVelocity

      public void setShowGroupVelocity(boolean showGroupVelocity)
    • setShowWindowLines

      public void setShowWindowLines(boolean showWindowLines)
    • setShowHorizontalErrorBars

      public void setShowHorizontalErrorBars(boolean showHorizontalErrorBars)
    • showLegend

      public void showLegend(boolean showLegend)
      Specified by:
      showLegend in interface BasicPlot
    • clear

      public void clear()
      Specified by:
      clear in interface BasicPlot
    • getSVG

      public String getSVG()
      Specified by:
      getSVG in interface BasicPlot
    • getPlotDataJSON

      public String getPlotDataJSON()
    • getPlotLayoutJSON

      public String getPlotLayoutJSON()
    • setColorMap

      public void setColorMap(String colorMap)
      Specified by:
      setColorMap in interface BasicPlot
    • createSubPlot

      public BasicPlot createSubPlot()
      Specified by:
      createSubPlot in interface BasicPlot
    • setMargin

      public void setMargin(Integer top, Integer bottom, Integer left, Integer right)
      Defines the margin for the plot, in pixels. Null parameters are left at default values.
      Specified by:
      setMargin in interface BasicPlot
      Parameters:
      top -
      bottom -
      left -
      right -
    • setDragMode

      public void setDragMode(String dragmode)
      Specified by:
      setDragMode in interface BasicPlot