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

ScribbleFigure Class Reference

Inheritance diagram for ScribbleFigure::

ScribbleObject CanvasObject CanvasArrow CanvasArrowGrid CanvasBlob CanvasChain CanvasFigureAggregate CanvasLine CanvasMask CanvasOval CanvasPoint CanvasPolyline CanvasRectangle CanvasString List of all members.

Public Methods

void addPoint (double x, double y)
boolean removePoint (int index)
boolean removeLastPoint ()
boolean hasNoColor ()
Color getColor ()
void setColor (Color newColor)
boolean getStroke ()
void setStroke (boolean stroke)
boolean hasLineWidth ()
float getLineWidth ()
void setLineWidth (float linew)
float getTransparency ()
void setTransparency (float trans)
boolean isComplex ()
boolean isResizeable ()
Vector getVisualChangeMethods ()
 Builds up a list of functions that are to fill a menu for changing the visualization aspects of an object. More...

 ScribbleFigure (int x, int y, int w, int h, int mode, Color color, double ccs_scale)
 ScribbleFigure (int x, int y, int w, int h, int mode, Color color, boolean complex, double ccs_scale)
int changePoint (int index, int x, int y)
void addPoint (int x, int y)

Static Public Attributes

final Color NO_COLOR = (Color)null
final Color DEF_COLOR = Color.red
final float DEF_LINEW = 1.0f
final float DEF_TRANS = 1.0f

Protected Methods

void initFigure (Color color, boolean stroke, float linew, float trans, boolean complex)
void setupDrawMode (Graphics g)
 Setup drawmode for 'g'. More...

void setComplex (boolean complex)

Protected Attributes

boolean complex = false
boolean resizeable = true
boolean strokeSet = false
boolean hasLineWidth = true
boolean hasNoColor = true
Color drawColor = NO_COLOR
float lineWidth = DEF_LINEW
float transparency = DEF_TRANS

Constructor & Destructor Documentation

ScribbleFigure::ScribbleFigure int    x,
int    y,
int    w,
int    h,
int    mode,
Color    color,
double    ccs_scale
[inline]
 

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


Member Function Documentation

void ScribbleFigure::addPoint double    x,
double    y
[inline]
 

Reimplemented in CanvasPolyline.

boolean ScribbleFigure::removePoint int    index [inline]
 

Reimplemented in CanvasColoredPolyline, and CanvasPolyline.

boolean ScribbleFigure::removeLastPoint   [inline]
 

Reimplemented in CanvasPolyline.

boolean ScribbleFigure::hasNoColor   [inline]
 

Color ScribbleFigure::getColor   [inline]
 

void ScribbleFigure::setColor Color    newColor [inline]
 

Reimplemented in CanvasBlob, CanvasChain, CanvasColoredPolyline, CanvasFigureAggregate, and CanvasMask.

boolean ScribbleFigure::getStroke   [inline]
 

void ScribbleFigure::setStroke boolean    stroke [inline]
 

Reimplemented in CanvasFigureAggregate.

boolean ScribbleFigure::hasLineWidth   [inline]
 

float ScribbleFigure::getLineWidth   [inline]
 

void ScribbleFigure::setLineWidth float    linew [inline]
 

Reimplemented in CanvasFigureAggregate.

float ScribbleFigure::getTransparency   [inline]
 

void ScribbleFigure::setTransparency float    trans [inline]
 

Reimplemented in CanvasBlob, CanvasFigureAggregate, and CanvasMask.

boolean ScribbleFigure::isComplex   [inline]
 

boolean ScribbleFigure::isResizeable   [inline]
 

Vector ScribbleFigure::getVisualChangeMethods   [inline]
 

Builds up a list of functions that are to fill a menu for changing the visualization aspects of an object.

Classes derived from this one typically add their class-specific methods to their parents' methods by first calling the parent to fill the vector and then add their own. The result is a Vector of CallableMethods.

Reimplemented from CanvasObject.

Reimplemented in CanvasArrow, CanvasBlob, and CanvasPolyline.

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

Reimplemented in CanvasArrow, CanvasBlob, CanvasChain, CanvasLine, CanvasMask, CanvasOval, CanvasPolyline, and CanvasRectangle.

void ScribbleFigure::addPoint int    x,
int    y
[inline]
 

Reimplemented in CanvasPolyline.

void ScribbleFigure::initFigure Color    color,
boolean    stroke,
float    linew,
float    trans,
boolean    complex
[inline, protected]
 

void ScribbleFigure::setupDrawMode Graphics    g [inline, protected]
 

Setup drawmode for 'g'.

Reimplemented from CanvasObject.

void ScribbleFigure::setComplex boolean    complex [inline, protected]
 


Member Data Documentation

final Color ScribbleFigure::NO_COLOR = (Color)null [static]
 

final Color ScribbleFigure::DEF_COLOR = Color.red [static]
 

final float ScribbleFigure::DEF_LINEW = 1.0f [static]
 

final float ScribbleFigure::DEF_TRANS = 1.0f [static]
 

boolean ScribbleFigure::complex = false [protected]
 

boolean ScribbleFigure::resizeable = true [protected]
 

boolean ScribbleFigure::strokeSet = false [protected]
 

boolean ScribbleFigure::hasLineWidth = true [protected]
 

boolean ScribbleFigure::hasNoColor = true [protected]
 

Color ScribbleFigure::drawColor = NO_COLOR [protected]
 

float ScribbleFigure::lineWidth = DEF_LINEW [protected]
 

float ScribbleFigure::transparency = DEF_TRANS [protected]
 


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