Public Methods |
| CanvasMask (Image im, double x, double y) |
| CanvasMask (int[] pixels, double x, double y, int w, int h) |
| CanvasMask (Image im, double x, double y, Color color, float trans, double ccs_scale) |
void | draw (Graphics g) |
| Draw CanvasObject on 'g', using internal CCS values. More...
|
Object | clone () |
| Return an identical copy of this CanvasObject. More...
|
boolean | isInside (double x, double y) |
boolean | isNear (double x, double y) |
void | setDimension (double w, double h) |
| Resize CanvasObject to width 'w' and height 'h'. More...
|
void | doPixelFit (double zoomFactor) |
| Round internal ICS values to nearest natural number. More...
|
void | setColor (Color newColor) |
void | setTransparency (float trans) |
Image | getMask () |
boolean | isInsideCcs (int x, int y) |
| To be removed. More...
|
boolean | isNearCcs (int x, int y) |
| To be removed. More...
|
void | setDimension (int w, int h) |
int | changePoint (int index, int x, int y) |
Static Public Attributes |
final int | NO_PIX = 0x00000000 |
Protected Methods |
void | initMask (int[] pixels, int w, int h, Color color) |
void | initMask (Image im, Color color) |
Protected Attributes |
Image | image = null |