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

CanvasPoint Class Reference

Inheritance diagram for CanvasPoint::

ScribbleFigure ScribbleObject CanvasObject List of all members.

Public Methods

 CanvasPoint (double x, double y)
 CanvasPoint (double x, double y, Color color)
 CanvasPoint (double x, double y, Color color, double ccs_scale)
 CanvasPoint (double x, double y, int mode, 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...

 CanvasPoint (int x, int y, int mode, Color color, 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)

Static Public Attributes

final double STD_SIZE = 1.0

Protected Methods

void initPoint ()

Constructor & Destructor Documentation

CanvasPoint::CanvasPoint double    x,
double    y
[inline]
 

CanvasPoint::CanvasPoint double    x,
double    y,
Color    color
[inline]
 

CanvasPoint::CanvasPoint double    x,
double    y,
Color    color,
double    ccs_scale
[inline]
 

CanvasPoint::CanvasPoint double    x,
double    y,
int    mode,
Color    color,
float    trans,
double    ccs_scale
[inline]
 

CanvasPoint::CanvasPoint int    x,
int    y,
int    mode,
Color    color,
double    ccs_scale
[inline]
 


Member Function Documentation

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

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

Reimplemented from CanvasObject.

Object CanvasPoint::clone   [inline, virtual]
 

Return an identical copy of this CanvasObject.

Reimplemented from CanvasObject.

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

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

void CanvasPoint::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 CanvasPoint::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 CanvasPoint::isInsideCcs int    x,
int    y
[inline]
 

To be removed.

Reimplemented from CanvasObject.

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

To be removed.

Reimplemented from CanvasObject.

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

Reimplemented from ScribbleObject.

void CanvasPoint::initPoint   [inline, protected]
 


Member Data Documentation

final double CanvasPoint::STD_SIZE = 1.0 [static]
 


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