Class LinePaintlet

    • Field Detail

      • m_MarkerExtent

        protected int m_MarkerExtent
        the maximum width/height of the shape to plot around the points (= data point marker), if there's enough space.
      • m_MarkersEnabled

        protected boolean m_MarkersEnabled
        indicates whether marker shapes are painted or not.
      • m_AlwaysShowMarkers

        protected boolean m_AlwaysShowMarkers
        whether to show markers all the time.
      • m_PaintAll

        protected boolean m_PaintAll
        whether to paint all the data points (no optimization).
      • m_AntiAliasingEnabled

        protected boolean m_AntiAliasingEnabled
        whether anti-aliasing is enabled.
    • Constructor Detail

      • LinePaintlet

        public LinePaintlet()
    • Method Detail

      • isMarkersDisabled

        public boolean isMarkersDisabled()
        Returns whether marker shapes are disabled.
        Specified by:
        isMarkersDisabled in interface PaintletWithMarkers
        Returns:
        true if marker shapes are disabled
      • setMarkersDisabled

        public void setMarkersDisabled​(boolean value)
        Sets whether to draw markers or not.
        Specified by:
        setMarkersDisabled in interface PaintletWithMarkers
        Parameters:
        value - if true then marker shapes won't be drawn
      • markersDisabledTipText

        public String markersDisabledTipText()
        Returns the tip text for this property.
        Specified by:
        markersDisabledTipText in interface PaintletWithMarkers
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • getAlwaysShowMarkers

        public boolean getAlwaysShowMarkers()
        Returns whether marker shapes are always drawn.
        Specified by:
        getAlwaysShowMarkers in interface PaintletWithMarkers
        Returns:
        true if marker shapes are always drawn, not just when zoomed in
      • setAlwaysShowMarkers

        public void setAlwaysShowMarkers​(boolean value)
        Sets whether to always draw markers.
        Specified by:
        setAlwaysShowMarkers in interface PaintletWithMarkers
        Parameters:
        value - if true then marker are always drawn, not just when zoomed in
      • alwaysShowMarkersTipText

        public String alwaysShowMarkersTipText()
        Returns the tip text for this property.
        Specified by:
        alwaysShowMarkersTipText in interface PaintletWithMarkers
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setMarkerExtent

        public void setMarkerExtent​(int value)
        Sets the extent (width and height of the shape around the plotted point). 0 turns the plotting off. Should be an odd number for centering the shape.
        Specified by:
        setMarkerExtent in interface PaintletWithMarkers
        Parameters:
        value - the new extent
      • getMarkerExtent

        public int getMarkerExtent()
        Returns the current marker extent (which is the width and height of the shape).
        Specified by:
        getMarkerExtent in interface PaintletWithMarkers
        Returns:
        the current extent
      • markerExtentTipText

        public String markerExtentTipText()
        Returns the tip text for this property.
        Specified by:
        markerExtentTipText in interface PaintletWithMarkers
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • getPaintAll

        public boolean getPaintAll()
        Returns whether marker shapes are disabled.
        Returns:
        true if marker shapes are disabled
      • setPaintAll

        public void setPaintAll​(boolean value)
        Sets whether to draw markers or not.
        Parameters:
        value - if true then marker shapes won't be drawn
      • paintAllTipText

        public String paintAllTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setAntiAliasingEnabled

        public void setAntiAliasingEnabled​(boolean value)
        Sets whether to use anti-aliasing.
        Specified by:
        setAntiAliasingEnabled in interface AntiAliasingSupporter
        Parameters:
        value - if true then anti-aliasing is used
      • isAntiAliasingEnabled

        public boolean isAntiAliasingEnabled()
        Returns whether anti-aliasing is used.
        Specified by:
        isAntiAliasingEnabled in interface AntiAliasingSupporter
        Returns:
        true if anti-aliasing is used
      • antiAliasingEnabledTipText

        public String antiAliasingEnabledTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • doDrawCustomData

        public void doDrawCustomData​(Graphics g,
                                     PaintEvent.PaintMoment moment,
                                     XYSequence data,
                                     Color color)
        Draws the custom data with the given color.
        Parameters:
        g - the graphics context
        moment - the paint moment
        data - the data to draw
        color - the color to draw in
      • getMarkerShape

        protected LinePaintlet.MarkerShape getMarkerShape​(int index)
        Determines the shape to paint around the data points, based on the index of the data.
        Parameters:
        index - the index of the spectrum
        Returns:
        the marker shape