Class AbstractLabelPlotter

    • Field Detail

      • m_Enabled

        protected boolean m_Enabled
        whether the plotter is enabled.
    • Constructor Detail

      • AbstractLabelPlotter

        public AbstractLabelPlotter()
    • Method Detail

      • setEnabled

        public void setEnabled​(boolean value)
        Sets whether the plotter is enabled.
        Parameters:
        value - true if enabled
      • getEnabled

        public boolean getEnabled()
        Returns whether the plotter is enabled.
        Returns:
        true if enabled
      • enabledTipText

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

        protected String generateQuickInfo()
        Returns a quick info about the object, which can be displayed in the GUI.
        Default implementation returns null.
        Returns:
        null if no info available, otherwise short string
      • getQuickInfo

        public String getQuickInfo()
        Returns a quick info about the object, which can be displayed in the GUI.
        Specified by:
        getQuickInfo in interface QuickInfoSupporter
        Returns:
        null if no info available, otherwise short string
      • doPlotLabel

        protected abstract void doPlotLabel​(LocatedObject object,
                                            Color color,
                                            Graphics2D g)
        Plots the label.
        Parameters:
        object - the object to plot
        color - the color to use
        g - the graphics context
      • plotLabel

        public void plotLabel​(LocatedObject object,
                              Color color,
                              Graphics2D g)
        Plots the label.
        Specified by:
        plotLabel in interface LabelPlotter
        Parameters:
        object - the object to plot
        color - the color to use
        g - the graphics context