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

CanvasString Class Reference

Inheritance diagram for CanvasString::

ScribbleFigure ScribbleObject CanvasObject List of all members.

Public Methods

 CanvasString (String line, double x, double y, Color color)
 CanvasString (String line, double x, double y, double w, double h, Color color)
 CanvasString (String line, double x, double y, int mode, Color color, float trans, double ccs_scale)
 CanvasString (String line, double x, double y, double w, double h, int mode, Color color, 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 setZoomFactor (double zoomFactor)
 Scale CanvasObject according to 'zoomFactor'. More...

void doPixelFit (double zoomFactor)
 Round internal ICS values to nearest natural number. More...

 CanvasString (String line, int x, int y, int mode, Color color, double ccs_scale)
 CanvasString (String line, int x, int y, int w, int h, 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)

Static Public Attributes

final int STD_HEIGHT = 12

Protected Methods

void initString (String line)
void setFont (int h)

Protected Attributes

String line = ""
Label label = null
Font f = null
FontMetrics fm = null

Constructor & Destructor Documentation

CanvasString::CanvasString (  String    line,
double    x,
double    y,
Color    color
)  [inline]
 

CanvasString::CanvasString (  String    line,
double    x,
double    y,
double    w,
double    h,
Color    color
)  [inline]
 

CanvasString::CanvasString (  String    line,
double    x,
double    y,
int    mode,
Color    color,
float    trans,
double    ccs_scale
)  [inline]
 

CanvasString::CanvasString (  String    line,
double    x,
double    y,
double    w,
double    h,
int    mode,
Color    color,
float    trans,
double    ccs_scale
)  [inline]
 

CanvasString::CanvasString (  String    line,
int    x,
int    y,
int    mode,
Color    color,
double    ccs_scale
)  [inline]
 

CanvasString::CanvasString (  String    line,
int    x,
int    y,
int    w,
int    h,
int    mode,
Color    color,
double    ccs_scale
)  [inline]
 


Member Function Documentation

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

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

Reimplemented from CanvasObject.

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

Return an identical copy of this CanvasObject.

Reimplemented from CanvasObject.

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

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

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

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

To be removed.

Reimplemented from CanvasObject.

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

To be removed.

Reimplemented from CanvasObject.

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

Reimplemented from ScribbleObject.

void CanvasString::initString (  String    line )  [inline, protected]
 

void CanvasString::setFont (  int    h )  [inline, protected]
 


Member Data Documentation

final int CanvasString::STD_HEIGHT = 12 [static]
 

String CanvasString::line = "" [protected]
 

Label CanvasString::label = null [protected]
 

Font CanvasString::f = null [protected]
 

FontMetrics CanvasString::fm = null [protected]
 


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