Class AbstractStrokePaintlet

    • Field Detail

      • m_StrokeThickness

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

      • AbstractStrokePaintlet

        public AbstractStrokePaintlet()
    • Method Detail

      • setStrokeThickness

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

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

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

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

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

        protected abstract void doPerformPaint​(Graphics g,
                                               PaintEvent.PaintMoment moment)
        The actual paint routine of the paintlet.
        g - the graphics context to use for painting
        moment - what PaintEvent.PaintMoment is currently being painted