Package snap.viewx

Class ColorDock.Swatch

java.lang.Object
snap.viewx.ColorDock.Swatch
Enclosing class:
ColorDock

protected class ColorDock.Swatch extends Object
A class to represent a color swatch.
  • Field Details

    • _row

      protected int _row
    • _col

      protected int _col
    • _color

      protected Color _color
  • Constructor Details

    • Swatch

      public Swatch(int aRow, int aCol)
      Creates swatch for row, col.
  • Method Details

    • getRow

      public int getRow()
      Returns the row.
    • getCol

      public int getCol()
      Returns the column.
    • getIndex

      public int getIndex()
      Returns the index of swatch in dock.
    • getColor

      public Color getColor()
      Returns the color.
    • setColor

      public void setColor(Color aColor)
      Sets the color.
    • equals

      public boolean equals(Object anObj)
      Standard equals.
      Overrides:
      equals in class Object