|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmaclib.GrafPort
public final class GrafPort
A GrafPort
object implements QuickDraw-like drawing and
event routines onto an object of class DrawingApplet
,
used for a drawing panel.
The DrawingApplet
provides automatic repaint, using
an off-screen image, and also listeners for keyboard and mouse events.
Usual GrafPort
constructors initialize a
DrawingFrame
, which contains this DrawingApplet
.
DrawingFrame
,
DrawingApplet
,
MacLib
Field Summary | |
---|---|
static int |
BLACK_COLOR
Used to specify one of the standard painting color. |
static int |
BLUE_COLOR
Used to specify one of the standard painting color. |
static int |
BOLD
Used to specify a text style. |
static int |
CONTROL
Used to encode the control modifier in the button state. |
static int |
CYAN_COLOR
Used to specify one of the standard painting color. |
static java.lang.String |
DIALOG
Used to specify one of the standard text font. |
static java.lang.String |
DIALOG_INPUT
Used to specify one of the standard text font. |
static int |
GREEN_COLOR
Used to specify one of the standard painting color. |
static int |
ITALIC
Used to specify a text style. |
static int |
MAGENTA_COLOR
Used to specify one of the standard painting color. |
static int |
META
Used to encode the meta modifier in the button state. |
static java.lang.String |
MONOSPACED
Used to specify one of the standard text font. |
static int |
NONE
Used to specify no modifier in the button state. |
static int |
PAT_COPY
Used to specify the normal painting mode. |
static int |
PAT_XOR
Used to specify the normal painting mode. |
static int |
PLAIN
Used to specify a text style. |
static int |
RED_COLOR
Used to specify one of the standard painting color. |
static java.lang.String |
SANS_SERIF
Used to specify one of the standard text font. |
static java.lang.String |
SERIF
Used to specify one of the standard text font. |
static int |
SHIFT
Used to encode the shift modifier in the button state. |
static int |
WHITE_COLOR
Used to specify one of the standard painting color. |
static int |
YELLOW_COLOR
Used to specify one of the standard painting color. |
Constructor Summary | |
---|---|
GrafPort()
Constructs and initializes a GrafPort and an attached
DrawingFrame having :
the title "Drawing" ,
the default initial size for the frame,
the default size for the off-screen image
|
|
GrafPort(java.lang.String title)
Constructs and initializes a GrafPort and an attached
DrawingFrame having :
the specified title,
the default initial size for the frame,
the default size for the off-screen image
|
|
GrafPort(java.lang.String title,
int width,
int height)
Constructs and initializes a GrafPort and an attached
DrawingFrame having :
the specified title,
the specified initial size for the frame,
the default final size for the off-screen image
|
|
GrafPort(java.lang.String title,
int width,
int height,
int fullWidth,
int fullHeight)
Constructs and initializes a GrafPort and an attached
DrawingFrame having :
the specified title,
the specified initial size for the frame,
the specified final size for the off-screen image
|
Method Summary | |
---|---|
void |
backColor(java.awt.Color color)
Sets the current background color, used when erasing or inverting, as specified by the given java.awt.Color object. |
void |
backColor(int color)
Sets the current background color, used when erasing or inverting, as specified by one of the height constant flags : BLACK_COLOR ,
WHITE_COLOR ,
RED_COLOR ,
GREEN_COLOR ,
BLUE_COLOR ,
CYAN_COLOR ,
MAGENTA_COLOR or
YELLOW_COLOR . |
boolean |
button()
Returns the state of the mouse button for the attached drawing panel. |
int |
buttonState()
Returns the int value that describes the modifier keys state
at the time of the last mouse pressed event. |
int |
charWidth(char c)
Returns the width in pixels of the given character. |
java.awt.Image |
createImage(java.awt.image.ImageProducer producer)
Creates an image from the specified image producer. |
java.awt.Image |
createImage(int width,
int height)
Creates an off-screen drawable image to be used for double buffering. |
void |
dispose()
Disposes of this GrafPort and attached objects. |
void |
drawChar(char c)
Draws the given character. |
boolean |
drawImage(java.awt.Image img)
Draws the given image, starting at location (0,0) . |
void |
drawLine(int x1,
int y1,
int x2,
int y2)
Draws a line from the location that is specified by x1 and y1 to the location that is specified by x2 and y2 (in coordinates relative to the drawing panel). |
void |
drawString(java.lang.String s)
Draws the given text string. |
void |
drawText(char[] textBuf,
int firstByte,
int byteCount)
Draws the specified text. |
void |
eraseArc(Rect r,
int startAngle,
int arcAngle)
Paints inside a wedge of the oval that fits inside the specified rectangle, using the background color. |
void |
eraseOval(Rect r)
Paints inside the oval that fits inside the specified rectangle, using the background color. |
void |
erasePolygon(Point[] points,
int pCount)
Paints inside the specified polygon, using the background color. |
void |
eraseRect(Rect r)
Paints inside the specified rectangle, using the background color. |
void |
eraseRoundRect(Rect r,
int arcWidth,
int arcHeight)
Paints inside the specified rounded-corner rectangle, using the background color. |
void |
finalize()
Called by the garbage collector when there are no more reference to this GrafPort . |
void |
foreColor(java.awt.Color color)
Sets the current pen color, used for drawing lines or text and painting shapes, as specified by the given java.awt.Color object. |
void |
foreColor(int color)
Sets the current pen color, used for drawing lines or text and painting shapes, as specified by one of the height constant flags : BLACK_COLOR ,
WHITE_COLOR ,
RED_COLOR ,
GREEN_COLOR ,
BLUE_COLOR ,
CYAN_COLOR ,
MAGENTA_COLOR or
YELLOW_COLOR . |
void |
frameArc(Rect r,
int startAngle,
int arcAngle)
Draws an arc of outline just inside the oval that fits inside the specified rectangle. |
void |
frameOval(Rect r)
Draws an outline just inside the oval that fits inside the specified rectangle. |
void |
framePolygon(Point[] points,
int pCount)
Draws an outline of the specified polygon. |
void |
frameRect(Rect r)
Draws an outline just inside the specified rectangle. |
void |
frameRoundRect(Rect r,
int arcWidth,
int arcHeight)
Draws an outline just inside the specified rounded-corner rectangle. |
Point |
getClick()
Waits until the mouse button is pressed and then released in the attached drawing panel. |
Rect |
getDrawingRect()
Gets the drawing bounds of the attached drawing panel. |
FontInfo |
getFontInfo()
Returns the metric informations about the current font as a FontInfo object. |
char |
getKey()
Returns the char corresponding to the last keyboard event in the drawing panel. |
Point |
getMouse()
Returns the current mouse location (relative to the attached drawing panel) as a Point Point object. |
DrawingApplet |
getPanel()
Returns the drawing panel attached to this GrafPort . |
Point |
getPen()
Returns the current pen location (relative to the attached drawing panel) as a Point object. |
void |
hideDrawing()
Hides the attached drawing panel. |
void |
invertArc(Rect r,
int startAngle,
int arcAngle)
Inverts pixels inside a wedge of the oval that fits inside the specified rectangle. |
void |
invertCircle(int x,
int y,
int r)
Inverts pixels inside the specified circle. |
void |
invertOval(Rect r)
Inverts pixels inside the oval that fits inside the specified rectangle. |
void |
invertPolygon(Point[] points,
int pCount)
Inverts pixels inside the specified polygon. |
void |
invertRect(Rect r)
Inverts pixels inside the specified rectangle. |
void |
invertRoundRect(Rect r,
int arcWidth,
int arcHeight)
Inverts pixels inside the specified rounded-corner rectangle. |
boolean |
keyPressed()
Checks whether the char, corresponding to the last keyboard event occured in the drawing panel, is still available. |
void |
line(int dh,
int dv)
Draws a line from the current pen location to the location that is at distance of dh horizontally and dv vertically. |
void |
lineTo(int h,
int v)
Draws a line from the current pen location to the location that is specified by h and v (in coordinates relative to the drawing panel). |
void |
move(int dh,
int dv)
Translates the coordinates of the pen by the specified displacement vector. |
void |
moveTo(int h,
int v)
Sets the coordinates of the pen (relative to the drawing panel) to the specified location. |
void |
paintArc(Rect r,
int startAngle,
int arcAngle)
Paints inside a wedge of the oval that fits inside the specified rectangle. |
void |
paintCircle(int x,
int y,
int r)
Paints inside the specified circle. |
void |
paintOval(Rect r)
Paints inside the oval that fits inside the specified rectangle. |
void |
paintPolygon(Point[] points,
int pCount)
Paints inside the specified polygon. |
void |
paintRect(Rect r)
Paints inside the specified rectangle. |
void |
paintRoundRect(Rect r,
int arcWidth,
int arcHeight)
Paints inside the specified rounded-corner rectangle. |
void |
penMode(int mode)
Sets the current transfer mode, used for drawing lines and painting shapes, to be one of the two constant flags PAT_COPY or PAT_XOR . |
void |
penNormal()
Resets the initial state, that is the mode and size, of the pen. |
void |
penSize(int width,
int height)
Sets the dimensions of the rectangular pen, used for drawing lines and framed shapes. |
void |
reset()
Resets the drawing context attached to this GrafPort . |
void |
resize(int width,
int height)
Sets the size of the attached drawing panel as specified. |
void |
setDrawingRect(Rect r)
Sets the bounds of the attached drawing panel as specified by the given Rect object. |
void |
showDrawing()
Makes the attached drawing panel visible and brings it to the front. |
void |
showStatus(java.lang.String s)
Prints a string of text (for user information). |
int |
stringWidth(java.lang.String s)
Returns the width in pixels of the given text string. |
void |
textFace(int face)
Sets the style of the font used for drawing text, it should be one of the followings constants : PLAIN ,
BOLD ,
ITALIC or
BOLD+ITALIC . |
void |
textFont(java.lang.String name)
Sets the name of the font used for drawing text. |
void |
textSize(int size)
Sets the size of the font used for drawing text. |
int |
textWidth(char[] textBuf,
int firstByte,
int byteCount)
Returns the width in pixels of the specified text. |
java.lang.String |
toString()
Returns a string representation of the state of this GrafPort . |
boolean |
trackMouse(Point p)
Waits until the mouse button is released, after being pressed, or until the mouse location is dragged. |
void |
waitClickDown()
Waits until the mouse button is pressed in the attached drawing panel. |
void |
waitClickUp()
Waits until the mouse button is released after being pressed in the attached drawing panel. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int PAT_COPY
penMode(int)
,
Constant Field Valuespublic static final int PAT_XOR
penMode(int)
,
Constant Field Valuespublic static final int BLACK_COLOR
foreColor(int)
,
backColor(int)
,
Constant Field Valuespublic static final int WHITE_COLOR
foreColor(int)
,
backColor(int)
,
Constant Field Valuespublic static final int RED_COLOR
foreColor(int)
,
backColor(int)
,
Constant Field Valuespublic static final int GREEN_COLOR
foreColor(int)
,
backColor(int)
,
Constant Field Valuespublic static final int BLUE_COLOR
foreColor(int)
,
backColor(int)
,
Constant Field Valuespublic static final int CYAN_COLOR
foreColor(int)
,
backColor(int)
,
Constant Field Valuespublic static final int MAGENTA_COLOR
foreColor(int)
,
backColor(int)
,
Constant Field Valuespublic static final int YELLOW_COLOR
foreColor(int)
,
backColor(int)
,
Constant Field Valuespublic static final java.lang.String DIALOG
textFont(String)
,
Constant Field Valuespublic static final java.lang.String DIALOG_INPUT
textFont(String)
,
Constant Field Valuespublic static final java.lang.String SANS_SERIF
textFont(String)
,
Constant Field Valuespublic static final java.lang.String SERIF
textFont(String)
,
Constant Field Valuespublic static final java.lang.String MONOSPACED
textFont(String)
,
Constant Field Valuespublic static final int PLAIN
textFace(int)
,
Constant Field Valuespublic static final int BOLD
textFace(int)
,
Constant Field Valuespublic static final int ITALIC
textFace(int)
,
Constant Field Valuespublic static final int NONE
buttonState()
,
Constant Field Valuespublic static final int SHIFT
buttonState()
,
Constant Field Valuespublic static final int CONTROL
buttonState()
,
Constant Field Valuespublic static final int META
buttonState()
,
Constant Field ValuesConstructor Detail |
---|
public GrafPort(java.lang.String title, int width, int height, int fullWidth, int fullHeight)
GrafPort
and an attached
DrawingFrame
having :
title
- the name given to the created DrawingFrame
width
- the initial width of the frameheight
- the initial height of the framefullWidth
- the final width of the off-screen imagefullHeight
- the final height of the off-screen imagepublic GrafPort(java.lang.String title, int width, int height)
GrafPort
and an attached
DrawingFrame
having :
title
- the name given to the created DrawingFrame
width
- the initial width of the frameheight
- the initial height of the frameDrawingStuff.DEFAULT_SCREEN_WIDTH
,
DrawingStuff.DEFAULT_SCREEN_HEIGHT
public GrafPort(java.lang.String title)
GrafPort
and an attached
DrawingFrame
having :
title
- the name given to the created DrawingFrame
DrawingFrame.DEFAULT_FRAME_WIDTH
,
DrawingFrame.DEFAULT_FRAME_HEIGHT
,
DrawingStuff.DEFAULT_SCREEN_WIDTH
,
DrawingStuff.DEFAULT_SCREEN_HEIGHT
public GrafPort()
GrafPort
and an attached
DrawingFrame
having :
"Drawing"
,
DrawingFrame.DEFAULT_FRAME_WIDTH
,
DrawingFrame.DEFAULT_FRAME_HEIGHT
,
DrawingStuff.DEFAULT_SCREEN_WIDTH
,
DrawingStuff.DEFAULT_SCREEN_HEIGHT
Method Detail |
---|
public void reset()
GrafPort
.
Also, it clears the content of the drawing panel.
public void dispose()
GrafPort
and attached objects.
public void finalize()
GrafPort
.
finalize
in class java.lang.Object
public void setDrawingRect(Rect r)
Rect
object.
r
- a Rect
object that specifies the new
screen coordinatesresize(int, int)
,
getDrawingRect()
public void resize(int width, int height)
width
- the width of the panel in pixelsheight
- the height of the panel in pixelssetDrawingRect(Rect)
public Rect getDrawingRect()
Rect
object filled with the screen
coordinates of the drawing areasetDrawingRect(Rect)
public void showDrawing()
public void hideDrawing()
public boolean button()
true
if the button is currently down after
being pressed in the drawing panel;
false
otherwisepublic void waitClickDown()
public void waitClickUp()
public Point getMouse()
Point
Point object.
Point
Point object giving the mouse locationpublic Point getClick()
Point
Point object giving the mouse locationpublic boolean trackMouse(Point p)
p
- the Point
object to be modifiedpublic int buttonState()
int
value that describes the modifier keys state
at the time of the last mouse pressed event.
The returned value is either NONE
, or a combination of
the SHIFT
, CONTROL
and META
(for the Alt key) constant flags.
int
valueNONE
,
SHIFT
,
CONTROL
,
META
public boolean keyPressed()
true
if any char available;
false
otherwisepublic char getKey()
public void penMode(int mode)
PAT_COPY
or PAT_XOR
.
The initial pen mode is PAT_COPY
.
mode
- the specified painting modePAT_COPY
,
PAT_XOR
public void penSize(int width, int height)
The initial pen size is 1x1
.
width
- the new width for the penheight
- the new height for the penpublic void penNormal()
penMode(int)
,
penSize(int, int)
public void foreColor(java.awt.Color color)
java.awt.Color
object.
The initial pen color is as specified by
java.awt.Color.black
.
color
- the Color
objectpublic void foreColor(int color)
BLACK_COLOR
,
WHITE_COLOR
,
RED_COLOR
,
GREEN_COLOR
,
BLUE_COLOR
,
CYAN_COLOR
,
MAGENTA_COLOR
or
YELLOW_COLOR
.
The initial pen color is as specified by BLACK_COLOR
.
color
- the specified color flagBLACK_COLOR
,
WHITE_COLOR
,
RED_COLOR
,
GREEN_COLOR
,
BLUE_COLOR
,
CYAN_COLOR
,
MAGENTA_COLOR
,
YELLOW_COLOR
public void backColor(java.awt.Color color)
java.awt.Color
object.
The initial background color is as specified by
java.awt.Color.white
.
color
- the Color
objectpublic void backColor(int color)
BLACK_COLOR
,
WHITE_COLOR
,
RED_COLOR
,
GREEN_COLOR
,
BLUE_COLOR
,
CYAN_COLOR
,
MAGENTA_COLOR
or
YELLOW_COLOR
.
The initial background color is as specified by
WHITE_COLOR
.
color
- the specified color flagBLACK_COLOR
,
WHITE_COLOR
,
RED_COLOR
,
GREEN_COLOR
,
BLUE_COLOR
,
CYAN_COLOR
,
MAGENTA_COLOR
,
YELLOW_COLOR
public Point getPen()
Point
object giving the pen locationpublic void moveTo(int h, int v)
No drawing is performed.
h
- the horizontal coordinate of the new locationv
- the vertical coordinate of the new locationpublic void move(int dh, int dv)
No drawing is performed.
dh
- the horizontal displacementdv
- the vertical displacementpublic void textFont(java.lang.String name)
DIALOG
,
DIALOG_INPUT
,
SANS_SERIF
,
SERIF
or
MONOSPACED
.
The initial text font is as specified by SERIF
.
the
- name of the new font used for drawing textDIALOG
,
DIALOG_INPUT
,
SANS_SERIF
,
SERIF
,
MONOSPACED
public void textSize(int size)
The initial text size is 12
.
the
- new size for drawing textpublic void textFace(int face)
PLAIN
,
BOLD
,
ITALIC
or
BOLD+ITALIC
.
The initial text style is as specified by PLAIN
.
the
- code of the new style for drawing textPLAIN
,
BOLD
,
ITALIC
public FontInfo getFontInfo()
FontInfo
object.
FontInfo
objectpublic void line(int dh, int dv)
dh
- the horizontal displacementdv
- the vertical displacementpenMode(int)
,
penSize(int, int)
,
foreColor(java.awt.Color)
public void lineTo(int h, int v)
h
- the horizontal coordinate of the new locationv
- the vertical coordinate of the new locationpenMode(int)
,
penSize(int, int)
,
foreColor(java.awt.Color)
public void drawLine(int x1, int y1, int x2, int y2)
x1
- the horizontal coordinate of the first locationy1
- the vertical coordinate of the first locationx2
- the horizontal coordinate of the second locationy2
- the vertical coordinate of the second locationpenMode(int)
,
penSize(int, int)
,
foreColor(java.awt.Color)
public void frameRect(Rect r)
r
- a Rect
object that specifies
the rectangle to be framedpenMode(int)
,
penSize(int, int)
,
foreColor(java.awt.Color)
public void paintRect(Rect r)
r
- a Rect
object that specifies
the rectangle to be paintedpenMode(int)
,
foreColor(java.awt.Color)
public void eraseRect(Rect r)
r
- a Rect
object that specifies
the rectangle to be erasedbackColor(java.awt.Color)
public void invertRect(Rect r)
r
- a Rect
object that specifies
the rectangle to be invertedpublic void frameOval(Rect r)
r
- a Rect
object that specifies
the oval to be framedpenMode(int)
,
penSize(int, int)
,
foreColor(java.awt.Color)
public void paintOval(Rect r)
r
- a Rect
object that specifies
the oval to be paintedpenMode(int)
,
foreColor(java.awt.Color)
public void eraseOval(Rect r)
r
- a Rect
object that specifies
the oval to be erasedbackColor(java.awt.Color)
public void invertOval(Rect r)
r
- a Rect
object that specifies
the oval to be invertedpublic void paintCircle(int x, int y, int r)
x
- the x coordinate of the center of the circley
- the y coordinate of the center of the circler
- the radius of the circlepenMode(int)
,
foreColor(java.awt.Color)
public void invertCircle(int x, int y, int r)
x
- the x coordinate of the center of the circley
- the y coordinate of the center of the circler
- the radius of the circlepublic void frameRoundRect(Rect r, int arcWidth, int arcHeight)
r
- a Rect
object that specifies
the shape to be framedarcWidth
- the horizontal diameter of curvature for the
corners arcsarcHeight
- the vertical diameter of curvature for the
corners arcspenMode(int)
,
penSize(int, int)
,
foreColor(java.awt.Color)
public void paintRoundRect(Rect r, int arcWidth, int arcHeight)
r
- a Rect
object that specifies
the shape to be paintedarcWidth
- the horizontal diameter of curvature for the
corners arcsarcHeight
- the vertical diameter of curvature for the
corners arcspenMode(int)
,
foreColor(java.awt.Color)
public void eraseRoundRect(Rect r, int arcWidth, int arcHeight)
r
- a Rect
object that specifies
the shape to be erasedarcWidth
- the horizontal diameter of curvature for the
corners arcsarcHeight
- the vertical diameter of curvature for the
corners arcsbackColor(java.awt.Color)
public void invertRoundRect(Rect r, int arcWidth, int arcHeight)
r
- a Rect
object that specifies
the shape to be invertedarcWidth
- the horizontal diameter of curvature for the
corners arcsarcHeight
- the vertical diameter of curvature for the
corners arcspublic void frameArc(Rect r, int startAngle, int arcAngle)
r
- a Rect
object that specifies
the shape to be framedstartAngle
- indicates where the arc beginsarcAngle
- defines the extent of the arcpenMode(int)
,
penSize(int, int)
,
foreColor(java.awt.Color)
public void paintArc(Rect r, int startAngle, int arcAngle)
r
- a Rect
object that specifies
the shape to be paintedstartAngle
- indicates where the arc beginsarcAngle
- defines the extent of the arcpenMode(int)
,
foreColor(java.awt.Color)
public void eraseArc(Rect r, int startAngle, int arcAngle)
r
- a Rect
object that specifies
the shape to be erasedstartAngle
- indicates where the arc beginsarcAngle
- defines the extent of the arcbackColor(java.awt.Color)
public void invertArc(Rect r, int startAngle, int arcAngle)
r
- a Rect
object that specifies
the shape to be invertedstartAngle
- indicates where the arc beginsarcAngle
- defines the extent of the arcpublic void framePolygon(Point[] points, int pCount)
points
- an array of the Point
objects that
specify the polygon to be framedpCount
- the number of pointsMacLib.newPointArray(int)
,
penMode(int)
,
penSize(int, int)
,
foreColor(java.awt.Color)
public void paintPolygon(Point[] points, int pCount)
points
- an array of the Point
objects that
specify the polygon to be paintedpCount
- the number of pointsMacLib.newPointArray(int)
,
penMode(int)
,
foreColor(java.awt.Color)
public void erasePolygon(Point[] points, int pCount)
points
- an array of the Point
objects that
specify the polygon to be erasedpCount
- the number of pointsMacLib.newPointArray(int)
,
backColor(java.awt.Color)
public void invertPolygon(Point[] points, int pCount)
points
- an array of the Point
objects that
specify the polygon to be invertedpCount
- the number of pointsMacLib.newPointArray(int)
public int stringWidth(java.lang.String s)
s
- the string to be measured
drawString(java.lang.String)
public int textWidth(char[] textBuf, int firstByte, int byteCount)
textBuf
- the array of characters that stores the textfirstByte
- indicates where the measured text beginsbyteCount
- indicates the number of characters to be measured
drawText(char[], int, int)
public int charWidth(char c)
c
- the character to be measured
drawChar(char)
public void drawString(java.lang.String s)
s
- the string to be drawnmoveTo(int, int)
,
foreColor(java.awt.Color)
,
textFont(java.lang.String)
,
textSize(int)
,
textFace(int)
public void drawText(char[] textBuf, int firstByte, int byteCount)
textBuf
- the array of characters that stores the textfirstByte
- indicates where the drawn text beginsbyteCount
- indicates the number of characters to be drawnmoveTo(int, int)
,
foreColor(java.awt.Color)
,
textFont(java.lang.String)
,
textSize(int)
,
textFace(int)
public void drawChar(char c)
c
- the character to be drawnmoveTo(int, int)
,
foreColor(java.awt.Color)
,
textFont(java.lang.String)
,
textSize(int)
,
textFace(int)
public java.awt.Image createImage(java.awt.image.ImageProducer producer)
producer
- the image producer
public java.awt.Image createImage(int width, int height)
width
- the specified width.height
- the specified height.
public DrawingApplet getPanel()
GrafPort
.
public boolean drawImage(java.awt.Image img)
(0,0)
.
img
- the Image
object to be drawn
true
if the image has been completely drawn.Graphics.drawImage(Image, int, int, java.awt.image.ImageObserver)
public void showStatus(java.lang.String s)
GrafPort
explicitely constructed,
the string is printed on System.out
.
In the case of the GrafPort
that is initialized by a
DrawingApplet
, the string is forwarded to the
showStatus
method of the applet.
s
- the string to be printedApplet.showStatus(java.lang.String)
public java.lang.String toString()
GrafPort
.
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |