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

ScribbleObject Class Reference

Extension of CanvasObject introducing scribble (editing) behaviour. More...

Inheritance diagram for ScribbleObject::

CanvasObject ScribbleFigure CanvasArrow CanvasArrowGrid CanvasBlob CanvasChain CanvasFigureAggregate CanvasLine CanvasMask CanvasOval CanvasPoint CanvasPolyline CanvasRectangle CanvasString List of all members.

Public Methods

 ScribbleObject (double x, double y, double w, double h)
 Create ScribbleObject with top-left corner of bounding box at position (x, y), and size (w, h). More...

 ScribbleObject (double x, double y, double w, double h, int mode)
 Create ScribbleObject with top-left corner of bounding box at position (x, y), size (w, h), and drawmode 'mode'. More...

 ScribbleObject (double x, double y, double w, double h, int mode, double ccs_scale)
 Create ScribbleObject with top-left corner of bounding box at position (x, y), size (w, h), drawmode 'mode', and scalefactor 'ccs_scale' (used for conversion between the Image Coordinate System and the Canvas Coordinate System). More...

void setDimension (double w, double h)
 Resize CanvasObject to width 'w' and height 'h'. More...

void setPosition (double x, double y)
 Place top left position of CanvasObject's bounding box at position (x, y). 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...

 ScribbleObject (int x, int y, int w, int h, int mode, double ccs_scale)
void setPosition (int x, int y)
void setDimension (int w, int h)
void doMove (int w, int h)

Detailed Description

Extension of CanvasObject introducing scribble (editing) behaviour.


Constructor & Destructor Documentation

ScribbleObject::ScribbleObject double    x,
double    y,
double    w,
double    h
[inline]
 

Create ScribbleObject with top-left corner of bounding box at position (x, y), and size (w, h).

Parameters are assumed Image Coordinate System values.

ScribbleObject::ScribbleObject double    x,
double    y,
double    w,
double    h,
int    mode
[inline]
 

Create ScribbleObject with top-left corner of bounding box at position (x, y), size (w, h), and drawmode 'mode'.

Parameters are assumed Image Coordinate System values.

ScribbleObject::ScribbleObject double    x,
double    y,
double    w,
double    h,
int    mode,
double    ccs_scale
[inline]
 

Create ScribbleObject with top-left corner of bounding box at position (x, y), size (w, h), drawmode 'mode', and scalefactor 'ccs_scale' (used for conversion between the Image Coordinate System and the Canvas Coordinate System).

Parameters are assumed Image Coordinate System values. Related CCS values are calculated according to 'ccs_scale'.

ScribbleObject::ScribbleObject int    x,
int    y,
int    w,
int    h,
int    mode,
double    ccs_scale
[inline]
 


Member Function Documentation

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

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

Parameters are assumed Image Coordinate System values.

Reimplemented in CanvasArrow, CanvasArrowGrid, CanvasBlob, CanvasChain, CanvasFigureAggregate, CanvasLine, CanvasMask, CanvasOval, CanvasPoint, CanvasPolyline, CanvasRectangle, and CanvasString.

void ScribbleObject::setPosition double    x,
double    y
[inline]
 

Place top left position of CanvasObject's bounding box at position (x, y).

Parameters are assumed Image Coordinate System values.

Reimplemented in CanvasArrow.

void ScribbleObject::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 in CanvasBlob, CanvasChain, CanvasFigureAggregate, CanvasLine, CanvasMask, CanvasOval, CanvasPoint, CanvasPolyline, CanvasRectangle, and CanvasString.

void ScribbleObject::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 in CanvasArrowGrid, CanvasBlob, CanvasChain, CanvasFigureAggregate, CanvasLine, and CanvasPolyline.

void ScribbleObject::setPosition int    x,
int    y
[inline]
 

Reimplemented in CanvasArrow.

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

Reimplemented in CanvasArrow, CanvasArrowGrid, CanvasBlob, CanvasChain, CanvasFigureAggregate, CanvasLine, CanvasMask, CanvasOval, CanvasPoint, CanvasPolyline, CanvasRectangle, and CanvasString.

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

Reimplemented in CanvasArrow, CanvasArrowGrid, CanvasBlob, CanvasChain, CanvasFigureAggregate, CanvasLine, and CanvasPolyline.


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