classPixelStitch::ColorPreview

sys::Obj
  fwt::Widget
    fwt::Canvas
      PixelStitch::ColorPreview

Color Preview Canvas Displays a single color with a text label

(rectangle shaped)

color

Color color

make

new make(Color c)

onPaint

virtual override Void onPaint(Graphics g)

prefSize

virtual override Size prefSize(Hints hint := Hints.defVal)

text

Str text := ""