Class AbstractStrokeOutlinePlotter

    • Field Detail

      • m_StrokeThickness

        protected float m_StrokeThickness
        the thickness of the stroke.
    • Constructor Detail

      • AbstractStrokeOutlinePlotter

        public AbstractStrokeOutlinePlotter()
    • Method Detail

      • getStrokeThickness

        public float getStrokeThickness()
        Returns the current stroke thickness.
        Returns:
        the thickness
      • setStrokeThickness

        public void setStrokeThickness​(float value)
        Sets the stroke thickness to use.
        Parameters:
        value - the thickness
      • strokeThicknessTipText

        public String strokeThicknessTipText()
        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.
        Overrides:
        generateQuickInfo in class AbstractOutlinePlotter
        Returns:
        null if no info available, otherwise short string
      • getStrokeWidth

        protected float getStrokeWidth​(Graphics g,
                                       float defValue)
        Returns the thickness of the stroke.
        Parameters:
        g - graphics context to get the thickness from
        defValue - the default value to return in case of failure
        Returns:
        the stroke, default value if failed to extract
      • applyStroke

        protected void applyStroke​(Graphics g,
                                   float stroke)
        Applies the stroke thickness.
        Parameters:
        stroke - the thickness to apply
      • doPlot

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