Package snap.styler

Class GradientAxisPicker

java.lang.Object
snap.props.PropObject
snap.view.View
snap.styler.GradientAxisPicker
All Implemented Interfaces:
PropChange.DoChange, XMLArchiver.Archivable

public class GradientAxisPicker extends View
GradientAxisPicker.
  • Constructor Details

    • GradientAxisPicker

      public GradientAxisPicker()
      Creates new GradientAxisPicker.
  • Method Details

    • getStartPoint

      public Point getStartPoint()
      Returns the starting point for gradient, defined as point in unit square where the first color stop is drawn.
    • setStartPoint

      public void setStartPoint(double aX, double aY)
      Sets the starting point for gradient.
    • getEndPoint

      public Point getEndPoint()
      Returns the ending point for the gradient, defined as a point in the unit square where a circle centered at StartPoint and with the color of the last color stop, passes through.
    • setEndPoint

      public void setEndPoint(double aX, double aY)
      Sets the ending point for the gradient.
    • getStops

      public GradientPaint.Stop[] getStops()
      Returns stops used for editing.
    • setStops

      public void setStops(GradientPaint.Stop[] theStops)
      Sets stops used for editing.
    • paintFront

      protected void paintFront(Painter aPntr)
      Paint node.
      Overrides:
      paintFront in class View
    • processEvent

      protected void processEvent(ViewEvent anEvent)
      Process events.
      Overrides:
      processEvent in class View