Package snap.viewx

Class ColorPanel.ImagePicker

java.lang.Object
snap.props.PropObject
snap.view.View
snap.viewx.ColorPanel.ImagePicker
All Implemented Interfaces:
PropChange.DoChange, XMLArchiver.Archivable
Enclosing class:
ColorPanel

public static class ColorPanel.ImagePicker extends View
An inner class to act as an image color picker.
  • Constructor Details

    • ImagePicker

      public ImagePicker()
      Creates new ImagePicker.
  • Method Details

    • getImage

      public Image getImage()
      Returns the image.
    • setImage

      public void setImage(Image anImage)
      Sets the image.
    • getColor

      public Color getColor()
      Returns the color.
    • paintFront

      protected void paintFront(Painter aPntr)
      Paints the image.
      Overrides:
      paintFront in class View
    • processEvent

      protected void processEvent(ViewEvent anEvent)
      Handle events.
      Overrides:
      processEvent in class View
    • getPrefWidthImpl

      protected double getPrefWidthImpl(double aH)
      Override to provide size.
      Overrides:
      getPrefWidthImpl in class View
    • getPrefHeightImpl

      protected double getPrefHeightImpl(double aW)
      Description copied from class: View
      Calculates the preferred height.
      Overrides:
      getPrefHeightImpl in class View