Package snap.styler

Class GradientPaintTool

All Implemented Interfaces:
PropChange.DoChange

public class GradientPaintTool extends StylerOwner
UI editing for GradientPaint.
  • Constructor Details

    • GradientPaintTool

      public GradientPaintTool()
  • Method Details

    • initUI

      protected void initUI()
      Initialize UI.
      Overrides:
      initUI in class ViewOwner
    • resetUI

      protected void resetUI()
      Updates the UI controls from the currently selected shape.
      Overrides:
      resetUI in class ViewOwner
    • respondUI

      protected void respondUI(ViewEvent anEvent)
      Updates the currently selected shape from the UI controls.
      Overrides:
      respondUI in class ViewOwner
    • getDefaultFill

      public GradientPaint getDefaultFill()
      Returns the gradient for the shape. Creates one if the shape doesn't have a gradient fill.
    • getWindowTitle

      public String getWindowTitle()
      Returns the string used for the inspector window title.