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

CanvasLine Class Reference

Inheritance diagram for CanvasLine::

ScribbleFigure ScribbleObject CanvasObject List of all members.

Public Methods

 CanvasLine (double x1, double y1, double x2, double y2)
 CanvasLine (double x1, double y1, double x2, double y2, Color color)
 CanvasLine (double x1, double y1, double x2, double y2, int mode, Color color, boolean stroke, float linew, 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...

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

 CanvasLine (int x1, int y1, int x2, int y2, 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)
void doMove (int w, int h)
int changePoint (int index, int x, int y)
Point getStart ()
Point getEnd ()

Protected Methods

void initLine (double x1, double y1, double x2, double y2)
void transformICStoCCS ()
 Perform a full ICS to CCS coordinate transformation. More...

void transformCCStoICS ()
 Perform a full CCS to ICS coordinate transformation. More...


Protected Attributes

double ics_endX
double ics_endY
int ccs_endX
int ccs_endY

Constructor & Destructor Documentation

CanvasLine::CanvasLine double    x1,
double    y1,
double    x2,
double    y2
[inline]
 

CanvasLine::CanvasLine double    x1,
double    y1,
double    x2,
double    y2,
Color    color
[inline]
 

CanvasLine::CanvasLine double    x1,
double    y1,
double    x2,
double    y2,
int    mode,
Color    color,
boolean    stroke,
float    linew,
float    trans,
double    ccs_scale
[inline]
 

CanvasLine::CanvasLine int    x1,
int    y1,
int    x2,
int    y2,
int    mode,
Color    color,
double    ccs_scale
[inline]
 


Member Function Documentation

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

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

Reimplemented from CanvasObject.

Object CanvasLine::clone   [inline, virtual]
 

Return an identical copy of this CanvasObject.

Reimplemented from CanvasObject.

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

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

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

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

To be removed.

Reimplemented from CanvasObject.

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

To be removed.

Reimplemented from CanvasObject.

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

Reimplemented from ScribbleObject.

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

Reimplemented from ScribbleObject.

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

Reimplemented from ScribbleFigure.

Point CanvasLine::getStart   [inline]
 

Point CanvasLine::getEnd   [inline]
 

void CanvasLine::initLine double    x1,
double    y1,
double    x2,
double    y2
[inline, protected]
 

void CanvasLine::transformICStoCCS   [inline, protected]
 

Perform a full ICS to CCS coordinate transformation.

Reimplemented from CanvasObject.

void CanvasLine::transformCCStoICS   [inline, protected]
 

Perform a full CCS to ICS coordinate transformation.

This function is used only for scribbled objects.

Reimplemented from CanvasObject.


Member Data Documentation

double CanvasLine::ics_endX [protected]
 

double CanvasLine::ics_endY [protected]
 

int CanvasLine::ccs_endX [protected]
 

int CanvasLine::ccs_endY [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