JPlanner Programmer's Guide
Graphics Members
Methods
 


Represents a drawing surface.

The following tables list the members exposed by the Graphics type.

 Public Methods

  Name Description

applyOpacity

Creates a new color from the specified color with opacity multiplied by the specified value.

createRegion

Overloaded. Creates a new Region object.

dispose

Releases all resources used by this Graphics object.

drawImage

Overloaded. Draws an image.

drawLine

Overloaded. Draws a line.

drawPath

Draws the outline of the specified graphics path.

drawPolygon

Overloaded. Draws a polygon.

drawRectangle

Overloaded. Draws a rectangle.

drawString

Overloaded. Draws a string.

fillPath

Fills the interior of the specified graphics path.

fillPolygon

Overloaded. Fills a polygon.

fillRectangle

Overloaded. Fills a rectangle.

getClip

Gets a Region that limits the drawing region of this graphics.

getClipBounds

Gets a Rectangle object that bounds the clipping region of this graphics.

getFontHeight

Returns the height of the specified font, in pixels, when used in the context of the current graphics.

measureString

Overloaded. Measures a string.

restore

Restores the state of this graphics to the state represented the specified object.

rotateTransform

Applies the specified rotation to the transformation matrix of this graphics.

save

Saves the current state of this graphics and identifies the saved state with an object.

setClip

Sets a Region that limits the drawing region of this graphics.

translateTransform

Changes the origin of the coordinate system by prepending the specified translation to the transformation matrix of this graphics.

 See Also

Graphics Interface
com.mindfusion.drawing Namespace