fdda.dialog.java2d
Interface GraphicHolder

All Known Implementing Classes:
Java2DControl

public interface GraphicHolder

Defines the interface of the object holding the graphics of a project.

Author:
Jörg Rüdenauer

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

getGraphicalSystem

public GraphicalSystem getGraphicalSystem()
Returns the graphical system

Returns:
the graphical system

redraw

public void redraw(Rectangle clippingRect,
                   Painter painter)
Repaints a part of the screen (that should contain the graphics). Closely resembles repaint of Component

Parameters:
clippingRect - a rectangle defining the clipping area
painter - the painter instance used for drawing
See Also:
Component.repaint()

stringWidth

public double stringWidth(String s)
Returns the width of a string in the current graphics context.

Parameters:
s - the string
Returns:
the width of the string

stringHeight

public double stringHeight()
Returns the height of a (any) string in the current graphics context.

Returns:
the string height
See Also:
FontMetrics.getHeight()


API documentation for FDDA version 0.9. Generated on 17/02/2004 14:12.