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

CanvasColoredPolyline Class Reference

Inheritance diagram for CanvasColoredPolyline::

CanvasPolyline ScribbleFigure ScribbleObject CanvasObject List of all members.

Public Methods

 CanvasColoredPolyline (double[] xpoints, double[] ypoints, int npoints, Color[] colors)
 CanvasColoredPolyline (double[] xpoints, double[] ypoints, int npoints, Color[] colors, boolean closed)
 CanvasColoredPolyline (double[] xpoints, double[] ypoints, int npoints, Color[] colors, boolean stroke, float linew, float trans, boolean closed, 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...

void setColor (Color color)
void addPoint (double x, double y, Color color)
boolean removePoint (int index)
 CanvasColoredPolyline (int[] xpoints, int[] ypoints, int npoints, Color[] colors, boolean closed, double ccs_scale)
void addPoint (int x, int y, Color color)

Protected Methods

void initColoredPoly (Color[] colors)
void transformICStoCCS ()
 Perform a full ICS to CCS coordinate transformation. More...

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

void setMidPoints ()

Protected Attributes

Color[] colors = null
int[] midXPoints = null
int[] midYPoints = null

Constructor & Destructor Documentation

CanvasColoredPolyline::CanvasColoredPolyline double    xpoints[],
double    ypoints[],
int    npoints,
Color    colors[]
[inline]
 

CanvasColoredPolyline::CanvasColoredPolyline double    xpoints[],
double    ypoints[],
int    npoints,
Color    colors[],
boolean    closed
[inline]
 

CanvasColoredPolyline::CanvasColoredPolyline double    xpoints[],
double    ypoints[],
int    npoints,
Color    colors[],
boolean    stroke,
float    linew,
float    trans,
boolean    closed,
double    ccs_scale
[inline]
 

CanvasColoredPolyline::CanvasColoredPolyline int    xpoints[],
int    ypoints[],
int    npoints,
Color    colors[],
boolean    closed,
double    ccs_scale
[inline]
 


Member Function Documentation

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

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

Reimplemented from CanvasPolyline.

Object CanvasColoredPolyline::clone   [inline, virtual]
 

Return an identical copy of this CanvasObject.

Reimplemented from CanvasPolyline.

void CanvasColoredPolyline::setColor Color    color [inline]
 

Reimplemented from ScribbleFigure.

void CanvasColoredPolyline::addPoint double    x,
double    y,
Color    color
[inline]
 

boolean CanvasColoredPolyline::removePoint int    index [inline]
 

Reimplemented from CanvasPolyline.

void CanvasColoredPolyline::addPoint int    x,
int    y,
Color    color
[inline]
 

void CanvasColoredPolyline::initColoredPoly Color    colors[] [inline, protected]
 

void CanvasColoredPolyline::transformICStoCCS   [inline, protected]
 

Perform a full ICS to CCS coordinate transformation.

Reimplemented from CanvasPolyline.

void CanvasColoredPolyline::transformCCStoICS   [inline, protected]
 

Perform a full CCS to ICS coordinate transformation.

This function is used only for scribbled objects.

Reimplemented from CanvasPolyline.

void CanvasColoredPolyline::setMidPoints   [inline, protected]
 


Member Data Documentation

Color [] CanvasColoredPolyline::colors = null [protected]
 

int [] CanvasColoredPolyline::midXPoints = null [protected]
 

int [] CanvasColoredPolyline::midYPoints = 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