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

CanvasChain Class Reference

Inheritance diagram for CanvasChain::

ScribbleFigure ScribbleObject CanvasObject List of all members.

Public Methods

 CanvasChain (int[] chain, double x, double y)
 CanvasChain (int[] chain, double x, double y, Color color)
 CanvasChain (int[] chain, double x, double y, 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...

void setColor (Color newColor)
double getFirstX ()
double getFirstY ()
double[] getXPoints ()
double[] getYPoints ()
int getNrPoints ()
int[] getChain ()
boolean isCircular ()
void setCircular (boolean b)
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)

Protected Methods

void initChain (int[] chain, double x, double y)
void transformICStoCCS ()
 Perform a full ICS to CCS coordinate transformation. More...

void makeFreemanPoly (double x, double y, int[] chain)
void makePixelChain ()
void setBox ()

Protected Attributes

int[] freeman = null
double[] ics_xPoints = null
double[] ics_yPoints = null
Polygon ccs_poly = null
boolean circular = false
Image image = null

Constructor & Destructor Documentation

CanvasChain::CanvasChain (  int    chain[],
double    x,
double    y
)  [inline]
 

CanvasChain::CanvasChain (  int    chain[],
double    x,
double    y,
Color    color
)  [inline]
 

CanvasChain::CanvasChain (  int    chain[],
double    x,
double    y,
Color    color,
boolean    stroke,
float    linew,
float    trans,
double    ccs_scale
)  [inline]
 


Member Function Documentation

void CanvasChain::draw (  Graphics    g )  [inline, virtual]
 

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

Reimplemented from CanvasObject.

Object CanvasChain::clone (    )  [inline, virtual]
 

Return an identical copy of this CanvasObject.

Reimplemented from CanvasObject.

boolean CanvasChain::isInside (  double    x,
double    y
)  [inline]
 

boolean CanvasChain::isNear (  double    x,
double    y
)  [inline]
 

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

void CanvasChain::setColor (  Color    newColor )  [inline]
 

Reimplemented from ScribbleFigure.

double CanvasChain::getFirstX (    )  [inline]
 

double CanvasChain::getFirstY (    )  [inline]
 

double [] CanvasChain::getXPoints (    )  [inline]
 

double [] CanvasChain::getYPoints (    )  [inline]
 

int CanvasChain::getNrPoints (    )  [inline]
 

int [] CanvasChain::getChain (    )  [inline]
 

boolean CanvasChain::isCircular (    )  [inline]
 

void CanvasChain::setCircular (  boolean    b )  [inline]
 

boolean CanvasChain::isInsideCcs (  int    x,
int    y
)  [inline]
 

To be removed.

Reimplemented from CanvasObject.

boolean CanvasChain::isNearCcs (  int    x,
int    y
)  [inline]
 

To be removed.

Reimplemented from CanvasObject.

void CanvasChain::setDimension (  int    w,
int    h
)  [inline]
 

Reimplemented from ScribbleObject.

void CanvasChain::doMove (  int    w,
int    h
)  [inline]
 

Reimplemented from ScribbleObject.

int CanvasChain::changePoint (  int    index,
int    x,
int    y
)  [inline]
 

Reimplemented from ScribbleFigure.

void CanvasChain::initChain (  int    chain[],
double    x,
double    y
)  [inline, protected]
 

void CanvasChain::transformICStoCCS (    )  [inline, protected]
 

Perform a full ICS to CCS coordinate transformation.

Reimplemented from CanvasObject.

void CanvasChain::makeFreemanPoly (  double    x,
double    y,
int    chain[]
)  [inline, protected]
 

void CanvasChain::makePixelChain (    )  [inline, protected]
 

void CanvasChain::setBox (    )  [inline, protected]
 


Member Data Documentation

int [] CanvasChain::freeman = null [protected]
 

double [] CanvasChain::ics_xPoints = null [protected]
 

double [] CanvasChain::ics_yPoints = null [protected]
 

Polygon CanvasChain::ccs_poly = null [protected]
 

boolean CanvasChain::circular = false [protected]
 

Image CanvasChain::image = null [protected]
 


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