|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectyu.ac.bg.etf.javaqx.core.AbstractDisposable
yu.ac.bg.etf.javaqx.qswing.graphics.Graphics
Abstract Graphics Object.
Constructor Summary | |
protected |
Graphics()
Constructs new Graphics object. |
Method Summary | |
abstract void |
draw(Shape shape)
Draws the shape. |
abstract void |
drawImage(Image image,
int x,
int y)
Draw the image. |
abstract void |
drawLine(int x1,
int y1,
int x2,
int y2)
Draws the line. |
abstract void |
drawOval(int x,
int y,
int width,
int height)
Draws the oval. |
abstract void |
drawRect(int x,
int y,
int width,
int height)
Draws the rectangle. |
abstract void |
drawString(java.lang.String str,
int x,
int y)
Draws the string. |
abstract void |
fill(Shape shape)
Fills the shape. |
abstract void |
fillOval(int x,
int y,
int width,
int height)
Fills the oval. |
abstract void |
fillRect(int x,
int y,
int width,
int height)
Fills the rectangle. |
abstract Color |
getColor()
Returns color of the graphics. |
abstract Font |
getFont()
Returns font of the graphics. |
abstract FontMetrics |
getFontMetrics()
Returns font metrics of the current font. |
abstract Paint |
getPaint()
Returns paint. |
abstract Stroke |
getStroke()
Returns stroke. |
abstract void |
setColor(Color color)
Sets color for the graphics. |
abstract void |
setFont(Font font)
Sets font for the graphics. |
abstract void |
setPaint(Paint paint)
Sets paint. |
abstract void |
setStroke(Stroke stroke)
Sets stroke. |
java.lang.String |
toString()
|
Methods inherited from class yu.ac.bg.etf.javaqx.core.AbstractDisposable |
addDisposeListener, dispose, disposedCheck, disposedErrorString, disposeObject, finalize, isDisposed, removeDisposeListener |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
protected Graphics()
Method Detail |
public abstract Color getColor()
public abstract void setColor(Color color)
color
- the new colorpublic abstract Font getFont()
public abstract void setFont(Font font)
font
- the new fontpublic abstract FontMetrics getFontMetrics()
public abstract Paint getPaint()
public abstract void setPaint(Paint paint)
paint
- the paintpublic abstract Stroke getStroke()
public abstract void setStroke(Stroke stroke)
stroke
- the strokepublic abstract void draw(Shape shape)
shape
- the shapepublic abstract void drawLine(int x1, int y1, int x2, int y2)
x1
- the x coordinate of the first pointy1
- the y coordinate of the first pointx2
- the x coordinate of the second pointy2
- the y coordinate of the second pointpublic abstract void drawRect(int x, int y, int width, int height)
x
- the x coordinate of the rectangley
- the y coordinate of the rectanglewidth
- the width of the rectangleheight
- the height of the rectanglepublic abstract void drawOval(int x, int y, int width, int height)
x
- the x coordinate of the ovaly
- the y coordinate of the ovalwidth
- the width of the ovalheight
- the height of the ovalpublic abstract void drawImage(Image image, int x, int y)
image
- the imagex
- the x coordinate of the imagey
- the y coordinate of the imagepublic abstract void drawString(java.lang.String str, int x, int y)
str
- the stringx
- the x coordinate of the stringy
- the y coordinate of the stringpublic abstract void fill(Shape shape)
shape
- the shapepublic abstract void fillRect(int x, int y, int width, int height)
x
- the x coordinate of the rectangley
- the y coordinate of the rectanglewidth
- the width of the rectangleheight
- the height of the rectanglepublic abstract void fillOval(int x, int y, int width, int height)
x
- the x coordinate of the ovaly
- the y coordinate of the ovalwidth
- the width of the ovalheight
- the height of the ovalpublic java.lang.String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |