Package snap.viewx

Class ColorPanel.GradSlider

All Implemented Interfaces:
PropChange.DoChange, XMLArchiver.Archivable
Enclosing class:
ColorPanel

public static class ColorPanel.GradSlider extends Slider
A Slider subclass to show colors in slider groove.
  • Constructor Details

    • GradSlider

      public GradSlider()
  • Method Details

    • setColors

      public void setColors(Color start, Color end)
    • paintTrack

      public void paintTrack(Painter g)
      Description copied from class: Slider
      Override to wrap in Painter and forward.
      Overrides:
      paintTrack in class Slider