Ejemplo n.º 1
0
 /**
  * Ensures that the canvas image is at least the specified dimensions and cleared to all
  * transparent pixels. Also creates and adds the image layer to the parent layer if needed.
  */
 public void prepare(IDimension dim) {
   prepare(dim.width(), dim.height());
 }
Ejemplo n.º 2
0
 /** Creates the sizable widget with the given preferred size. */
 public SizableWidget(IDimension size) {
   this(size.width(), size.height());
 }