Main Page   Packages   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

CanvasMask Class Reference

Inheritance diagram for CanvasMask::

ScribbleFigure ScribbleObject CanvasObject List of all members.

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

Constructor & Destructor Documentation

CanvasMask::CanvasMask Image    im,
double    x,
double    y
[inline]
 

CanvasMask::CanvasMask int    pixels[],
double    x,
double    y,
int    w,
int    h
[inline]
 

CanvasMask::CanvasMask Image    im,
double    x,
double    y,
Color    color,
float    trans,
double    ccs_scale
[inline]
 


Member Function Documentation

void CanvasMask::draw Graphics    g [inline, virtual]
 

Draw CanvasObject on 'g', using internal CCS values.

Reimplemented from CanvasObject.

Object CanvasMask::clone   [inline, virtual]
 

Return an identical copy of this CanvasObject.

Reimplemented from CanvasObject.

boolean CanvasMask::isInside double    x,
double    y
[inline]
 

boolean CanvasMask::isNear double    x,
double    y
[inline]
 

void CanvasMask::setDimension double    w,
double    h
[inline]
 

Resize CanvasObject to width 'w' and height 'h'.

Parameters are assumed Image Coordinate System values.

Reimplemented from ScribbleObject.

void CanvasMask::doPixelFit double    zoomFactor [inline]
 

Round internal ICS values to nearest natural number.

Although the ICS values are changed, they are not converted to 'integer' internally.

Reimplemented from ScribbleObject.

void CanvasMask::setColor Color    newColor [inline]
 

Reimplemented from ScribbleFigure.

void CanvasMask::setTransparency float    trans [inline]
 

Reimplemented from ScribbleFigure.

Image CanvasMask::getMask   [inline]
 

boolean CanvasMask::isInsideCcs int    x,
int    y
[inline]
 

To be removed.

Reimplemented from CanvasObject.

boolean CanvasMask::isNearCcs int    x,
int    y
[inline]
 

To be removed.

Reimplemented from CanvasObject.

void CanvasMask::setDimension int    w,
int    h
[inline]
 

Reimplemented from ScribbleObject.

int CanvasMask::changePoint int    index,
int    x,
int    y
[inline]
 

Reimplemented from ScribbleFigure.

void CanvasMask::initMask int    pixels[],
int    w,
int    h,
Color    color
[inline, protected]
 

void CanvasMask::initMask Image    im,
Color    color
[inline, protected]
 


Member Data Documentation

final int CanvasMask::NO_PIX = 0x00000000 [static]
 

Image CanvasMask::image = null [protected]
 


The documentation for this class was generated from the following file:
Generated on Tue Jan 8 14:14:23 2002 for JavaReference by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001