Class SequencePlotterPanel

    • Field Detail

      • m_MarkerPaintlet

        protected MarkerPaintlet m_MarkerPaintlet
        the paintlet to use for marker paintlets.
      • m_OverlayPaintlet

        protected XYSequencePaintlet m_OverlayPaintlet
        paintlet for drawing the overlays.
      • m_MouseClickAction

        protected MouseClickAction m_MouseClickAction
        the mouse click action.
      • m_SelectionEnabled

        protected boolean m_SelectionEnabled
        whether selection is enabled.
      • m_Selection

        protected List<Point2D.Double> m_Selection
        the selection points collected so far.
    • Constructor Detail

      • SequencePlotterPanel

        public SequencePlotterPanel​(String title)
        Initializes the panel with the specified title.
        Parameters:
        title - the title to use
    • Method Detail

      • newMarkerContainerManager

        protected XYSequenceContainerManager newMarkerContainerManager()
        Returns the manager for the marker sequences.
        Returns:
        the new container manager
      • getMarkerContainerManager

        public XYSequenceContainerManager getMarkerContainerManager()
        Returns the marker container manager in use.
        Returns:
        the container manager
      • newOverlayContainerManager

        protected XYSequenceContainerManager newOverlayContainerManager()
        Returns the manager for the overlay data.
        Returns:
        the new container manager
      • getOverlayContainerManager

        public XYSequenceContainerManager getOverlayContainerManager()
        Returns the overlay container manager in use.
        Returns:
        the container manager
      • setMarkerPaintlet

        public void setMarkerPaintlet​(MarkerPaintlet value)
        Sets the marker paintlet to use.
        Parameters:
        value - the marker paintlet
      • getMarkerPaintlet

        public MarkerPaintlet getMarkerPaintlet()
        Returns the marker paintlet to use.
        Returns:
        the marker paintlet
      • setOverlayPaintlet

        public void setOverlayPaintlet​(XYSequencePaintlet value)
        Sets the overlay paintlet to use.
        Parameters:
        value - the overlay paintlet
      • getOverlayPaintlet

        public XYSequencePaintlet getOverlayPaintlet()
        Returns the overlay paintlet to use.
        Returns:
        the overlay paintlet
      • setErrorPaintlet

        public void setErrorPaintlet​(AbstractErrorPaintlet value)
        Sets the error paintlet to use.
        Parameters:
        value - the error paintlet
      • getErrorPaintlet

        public AbstractErrorPaintlet getErrorPaintlet()
        Returns the error paintlet to use.
        Returns:
        the error paintlet
      • setMouseClickAction

        public void setMouseClickAction​(MouseClickAction value)
        Sets the mouse click action to use.
        Parameters:
        value - the action
      • getMouseClickAction

        public MouseClickAction getMouseClickAction()
        Returns the current mouse click action in use.
        Returns:
        the action
      • setColorProvider

        public void setColorProvider​(ColorProvider value)
        Sets the color provider to use.
        Parameters:
        value - the color provider
      • getColorProvider

        public ColorProvider getColorProvider()
        Returns the color provider to use.
        Returns:
        the color provider in use
      • setOverlayColorProvider

        public void setOverlayColorProvider​(ColorProvider value)
        Sets the color provider to use for the overlays.
        Parameters:
        value - the color provider
      • getOverlayColorProvider

        public ColorProvider getOverlayColorProvider()
        Returns the color provider to use for the overlays.
        Returns:
        the color provider in use
      • setAntiAliasingEnabled

        public void setAntiAliasingEnabled​(boolean value)
        Sets whether to use anti-aliasing.
        Overrides:
        setAntiAliasingEnabled in class XYSequencePanel
        Parameters:
        value - if true then anti-aliasing is used
      • toMarkerIndices

        protected int[] toMarkerIndices​(int[] seqIndices)
        Translates the indices of the sequence container manager into the ones from the marker container manager.
        Parameters:
        seqIndices - the indices of the sequence container manager
        Returns:
        the indices of the marker container manager
      • toOverlayIndices

        protected int[] toOverlayIndices​(int[] seqIndices)
        Translates the indices of the sequence container manager into the ones from the overlay container manager.
        Parameters:
        seqIndices - the indices of the sequence container manager
        Returns:
        the indices of the overlay container manager
      • getSelection

        public List<Point2D.Double> getSelection()
        Returns the currently selected points.
        Returns:
        the points
      • clearSelection

        public void clearSelection()
        Removes any selected points.
      • setSelectionEnabled

        public void setSelectionEnabled​(boolean value)
        Sets whether data points can be selected.
        Parameters:
        value - true if can be selected
      • isSelectionEnabled

        public boolean isSelectionEnabled()
        Returns whether data points can be selected.
        Returns:
        true if can be selected