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

CanvasRectangle Class Reference

Inheritance diagram for CanvasRectangle::

ScribbleFigure ScribbleObject CanvasObject List of all members.

Public Methods

 CanvasRectangle (double x, double y, double w, double h)
 CanvasRectangle (double x, double y, double w, double h, Color color)
 CanvasRectangle (double x, double y, double w, double h, Color color, boolean square)
 CanvasRectangle (double x, double y, double w, double h, int mode, Color color, boolean stroke, float linew, float trans, boolean square, double ccsScale)
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...

boolean isSquare ()
void setSquare (boolean square)
 CanvasRectangle (int x, int y, int w, int h, int mode, Color color, boolean square, double ccs_scale)
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)

Protected Attributes

boolean square = false

Constructor & Destructor Documentation

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

CanvasRectangle::CanvasRectangle double    x,
double    y,
double    w,
double    h,
Color    color
[inline]
 

CanvasRectangle::CanvasRectangle double    x,
double    y,
double    w,
double    h,
Color    color,
boolean    square
[inline]
 

CanvasRectangle::CanvasRectangle double    x,
double    y,
double    w,
double    h,
int    mode,
Color    color,
boolean    stroke,
float    linew,
float    trans,
boolean    square,
double    ccsScale
[inline]
 

CanvasRectangle::CanvasRectangle int    x,
int    y,
int    w,
int    h,
int    mode,
Color    color,
boolean    square,
double    ccs_scale
[inline]
 


Member Function Documentation

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

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

Reimplemented from CanvasObject.

Object CanvasRectangle::clone   [inline, virtual]
 

Return an identical copy of this CanvasObject.

Reimplemented from CanvasObject.

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

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

void CanvasRectangle::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 CanvasRectangle::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.

boolean CanvasRectangle::isSquare   [inline]
 

void CanvasRectangle::setSquare boolean    square [inline]
 

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

To be removed.

Reimplemented from CanvasObject.

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

To be removed.

Reimplemented from CanvasObject.

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

Reimplemented from ScribbleObject.

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

Reimplemented from ScribbleFigure.


Member Data Documentation

boolean CanvasRectangle::square = false [protected]
 


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