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

CanvasOval Class Reference

Inheritance diagram for CanvasOval::

ScribbleFigure ScribbleObject CanvasObject List of all members.

Public Methods

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

boolean isCircle ()
void setCircle (boolean circle)
 CanvasOval (int x, int y, int w, int h, int mode, Color color, boolean circle, 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 circle = false

Constructor & Destructor Documentation

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

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

CanvasOval::CanvasOval double    x,
double    y,
double    w,
double    h,
Color    color,
boolean    circle
[inline]
 

CanvasOval::CanvasOval double    x,
double    y,
double    w,
double    h,
int    mode,
Color    color,
boolean    stroke,
float    linew,
float    trans,
boolean    circle,
double    ccs_scale
[inline]
 

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


Member Function Documentation

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

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

Reimplemented from CanvasObject.

Object CanvasOval::clone   [inline, virtual]
 

Return an identical copy of this CanvasObject.

Reimplemented from CanvasObject.

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

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

void CanvasOval::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 CanvasOval::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 CanvasOval::isCircle   [inline]
 

void CanvasOval::setCircle boolean    circle [inline]
 

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

To be removed.

Reimplemented from CanvasObject.

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

To be removed.

Reimplemented from CanvasObject.

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

Reimplemented from ScribbleObject.

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

Reimplemented from ScribbleFigure.


Member Data Documentation

boolean CanvasOval::circle = false [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