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

CanvasBlob Class Reference

Inheritance diagram for CanvasBlob::

ScribbleFigure ScribbleObject CanvasObject List of all members.

Public Methods

 CanvasBlob ()
 CanvasBlob (Image im, double x, double y)
 CanvasBlob (Image im, double x, double y, Color color)
 CanvasBlob (Image im, int[] codes, double x, double y)
 CanvasBlob (Image im, int[] codes, double x, double y, Color color)
 CanvasBlob (Image im, int[] codes, 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 setZoomFactor (double zoomFactor)
 Scale CanvasObject according to 'zoomFactor'. More...

void doPixelFit (double zoomFactor)
 Round internal ICS values to nearest natural number. More...

void doMove (double w, double h)
 Move CanvasObject 'w' positions in x-direction, and 'h' posi- tions in y-direction. More...

void setColor (Color color)
void setTransparency (float trans)
void setDrawMode (int mode)
 Set current draw-mode. More...

void showMask (boolean b)
void showChain (boolean b)
Vector getVisualChangeMethods ()
 Builds up a list of functions that are to fill a menu for changing the visualization aspects of an object. More...

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)
void doMove (int w, int h)
int changePoint (int index, int x, int y)

Protected Methods

void initBlob (Image im, int[] codes, double x, double y, Color color, float trans, double ccs_scale)
void setBox ()

Protected Attributes

CanvasMask mask = null
CanvasChain chain = null
boolean showMask = true
boolean showChain = true

Static Protected Attributes

final int INV_COLOR = 0x00FFFFFF

Constructor & Destructor Documentation

CanvasBlob::CanvasBlob   [inline]
 

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

CanvasBlob::CanvasBlob Image    im,
double    x,
double    y,
Color    color
[inline]
 

CanvasBlob::CanvasBlob Image    im,
int    codes[],
double    x,
double    y
[inline]
 

CanvasBlob::CanvasBlob Image    im,
int    codes[],
double    x,
double    y,
Color    color
[inline]
 

CanvasBlob::CanvasBlob Image    im,
int    codes[],
double    x,
double    y,
Color    color,
float    trans,
double    ccs_scale
[inline]
 


Member Function Documentation

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

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

Reimplemented from CanvasObject.

Object CanvasBlob::clone   [inline, virtual]
 

Return an identical copy of this CanvasObject.

Reimplemented from CanvasObject.

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

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

void CanvasBlob::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 CanvasBlob::setZoomFactor double    zoomFactor [inline]
 

Scale CanvasObject according to 'zoomFactor'.

The internal ICS values are taken as base values to calculate the associated CCS values.

Reimplemented from CanvasObject.

void CanvasBlob::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 CanvasBlob::doMove double    w,
double    h
[inline]
 

Move CanvasObject 'w' positions in x-direction, and 'h' posi- tions in y-direction.

Parameters are assumed Image Coordinate System values.

Reimplemented from ScribbleObject.

void CanvasBlob::setColor Color    color [inline]
 

Reimplemented from ScribbleFigure.

void CanvasBlob::setTransparency float    trans [inline]
 

Reimplemented from ScribbleFigure.

void CanvasBlob::setDrawMode int    mode [inline]
 

Set current draw-mode.

Reimplemented from CanvasObject.

void CanvasBlob::showMask boolean    b [inline]
 

void CanvasBlob::showChain boolean    b [inline]
 

Vector CanvasBlob::getVisualChangeMethods   [inline]
 

Builds up a list of functions that are to fill a menu for changing the visualization aspects of an object.

Classes derived from this one typically add their class-specific methods to their parents' methods by first calling the parent to fill the vector and then add their own. The result is a Vector of CallableMethods.

Reimplemented from ScribbleFigure.

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

To be removed.

Reimplemented from CanvasObject.

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

To be removed.

Reimplemented from CanvasObject.

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

Reimplemented from ScribbleObject.

void CanvasBlob::doMove int    w,
int    h
[inline]
 

Reimplemented from ScribbleObject.

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

Reimplemented from ScribbleFigure.

void CanvasBlob::initBlob Image    im,
int    codes[],
double    x,
double    y,
Color    color,
float    trans,
double    ccs_scale
[inline, protected]
 

void CanvasBlob::setBox   [inline, protected]
 


Member Data Documentation

final int CanvasBlob::INV_COLOR = 0x00FFFFFF [static, protected]
 

CanvasMask CanvasBlob::mask = null [protected]
 

CanvasChain CanvasBlob::chain = null [protected]
 

boolean CanvasBlob::showMask = true [protected]
 

boolean CanvasBlob::showChain = true [protected]
 


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