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

CanvasArrowGrid Class Reference

Inheritance diagram for CanvasArrowGrid::

ScribbleFigure ScribbleObject CanvasObject List of all members.

Public Methods

 CanvasArrowGrid (double x, double y, double[][] lengths, int[][] angles)
 CanvasArrowGrid (double x, double y, double[][] lengths, int[][] angles, double distance)
 CanvasArrowGrid (double x, double y, double[][] lengths, int[][] angles, double distance, Color color)
 CanvasArrowGrid (double x, double y, double[][] lengths, int[][] angles, double distance, Color color, boolean stroke, float linew, float trans, 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 setZoomFactor (double zoomFactor)
 Scale CanvasObject according to 'zoomFactor'. More...

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

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)

Static Public Attributes

final double DEF_DIST = 1.0

Protected Methods

void initGrid (double[][] lengths, int[][] angles, double distance)
void allocGridSpace ()
void placeArrows ()
void transformICStoCCS ()
 Perform a full ICS to CCS coordinate transformation. More...

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


Protected Attributes

int nr_x = 0
int nr_y = 0
double distance = DEF_DIST
double[] ics_xs = null
double[] ics_ys = null
double[][] ics_xHeads = null
double[][] ics_yHeads = null
double[][] ics_Bx = null
double[][] ics_By = null
double[][] ics_Gx = null
double[][] ics_Gy = null
int[] ccs_xs = null
int[] ccs_ys = null
int[][] ccs_xHeads = null
int[][] ccs_yHeads = null
int[][] ccs_Bx = null
int[][] ccs_By = null
int[][] ccs_Gx = null
int[][] ccs_Gy = null
double[][] lengths = null
int[][] angles = null

Static Protected Attributes

final int HEAD_LENGTH = 6
final int HEAD_ANGLE = 20

Constructor & Destructor Documentation

CanvasArrowGrid::CanvasArrowGrid double    x,
double    y,
double    lengths[][],
int    angles[][]
[inline]
 

CanvasArrowGrid::CanvasArrowGrid double    x,
double    y,
double    lengths[][],
int    angles[][],
double    distance
[inline]
 

CanvasArrowGrid::CanvasArrowGrid double    x,
double    y,
double    lengths[][],
int    angles[][],
double    distance,
Color    color
[inline]
 

CanvasArrowGrid::CanvasArrowGrid double    x,
double    y,
double    lengths[][],
int    angles[][],
double    distance,
Color    color,
boolean    stroke,
float    linew,
float    trans,
double    ccsScale
[inline]
 


Member Function Documentation

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

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

Reimplemented from CanvasObject.

Object CanvasArrowGrid::clone   [inline, virtual]
 

Return an identical copy of this CanvasObject.

Reimplemented from CanvasObject.

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

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

void CanvasArrowGrid::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 CanvasArrowGrid::setZoomFactor double    zoomFactor [inline]
 

Scale CanvasObject according to 'zoomFactor'.

The internal ICS values are taken as base values to calculate the associated CCS values.

Reimplemented from CanvasObject.

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

To be removed.

Reimplemented from CanvasObject.

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

To be removed.

Reimplemented from CanvasObject.

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

Reimplemented from ScribbleObject.

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

Reimplemented from ScribbleObject.

void CanvasArrowGrid::initGrid double    lengths[][],
int    angles[][],
double    distance
[inline, protected]
 

void CanvasArrowGrid::allocGridSpace   [inline, protected]
 

void CanvasArrowGrid::placeArrows   [inline, protected]
 

void CanvasArrowGrid::transformICStoCCS   [inline, protected]
 

Perform a full ICS to CCS coordinate transformation.

Reimplemented from CanvasObject.

void CanvasArrowGrid::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

final double CanvasArrowGrid::DEF_DIST = 1.0 [static]
 

final int CanvasArrowGrid::HEAD_LENGTH = 6 [static, protected]
 

final int CanvasArrowGrid::HEAD_ANGLE = 20 [static, protected]
 

int CanvasArrowGrid::nr_x = 0 [protected]
 

int CanvasArrowGrid::nr_y = 0 [protected]
 

double CanvasArrowGrid::distance = DEF_DIST [protected]
 

double [] CanvasArrowGrid::ics_xs = null [protected]
 

double [] CanvasArrowGrid::ics_ys = null [protected]
 

double [][] CanvasArrowGrid::ics_xHeads = null [protected]
 

double [][] CanvasArrowGrid::ics_yHeads = null [protected]
 

double [][] CanvasArrowGrid::ics_Bx = null [protected]
 

double [][] CanvasArrowGrid::ics_By = null [protected]
 

double [][] CanvasArrowGrid::ics_Gx = null [protected]
 

double [][] CanvasArrowGrid::ics_Gy = null [protected]
 

int [] CanvasArrowGrid::ccs_xs = null [protected]
 

int [] CanvasArrowGrid::ccs_ys = null [protected]
 

int [][] CanvasArrowGrid::ccs_xHeads = null [protected]
 

int [][] CanvasArrowGrid::ccs_yHeads = null [protected]
 

int [][] CanvasArrowGrid::ccs_Bx = null [protected]
 

int [][] CanvasArrowGrid::ccs_By = null [protected]
 

int [][] CanvasArrowGrid::ccs_Gx = null [protected]
 

int [][] CanvasArrowGrid::ccs_Gy = null [protected]
 

double [][] CanvasArrowGrid::lengths = null [protected]
 

int [][] CanvasArrowGrid::angles = 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