|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Defines the interface of the object holding the graphics of a project.
Method Summary | |
GraphicalSystem |
getGraphicalSystem()
Returns the graphical system |
void |
redraw(Rectangle clippingRect,
Painter painter)
Repaints a part of the screen (that should contain the graphics). |
double |
stringHeight()
Returns the height of a (any) string in the current graphics context. |
double |
stringWidth(String s)
Returns the width of a string in the current graphics context. |
Method Detail |
public GraphicalSystem getGraphicalSystem()
public void redraw(Rectangle clippingRect, Painter painter)
clippingRect
- a rectangle defining the clipping areapainter
- the painter instance used for drawingComponent.repaint()
public double stringWidth(String s)
s
- the string
public double stringHeight()
FontMetrics.getHeight()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |