| java.lang.Object org.geotools.resources.GraphicsUtilities
GraphicsUtilities | final public class GraphicsUtilities (Code) | | A set of utilities methods for painting in a
Graphics2D handle.
Method in this class was used to be in
org.geotools.gui.swing.ExceptionMonitor .
We had to extract them in a separated class in order to avoid dependencies of renderer
module toward the GUI one, especially since the extracted methods are not Swing specific.
since: 2.0 version: $Id: GraphicsUtilities.java 22443 2006-10-27 20:47:22Z desruisseaux $ author: Martin Desruisseaux |
paintStackTrace | public static void paintStackTrace(Graphics2D graphics, Rectangle widgetBounds, Throwable exception)(Code) | | Writes the specified exception trace in the specified graphics
context. This method is useful when an exception has occurred
inside a
Component.paint method and we want to write it
rather than leaving an empty window.
Parameters: exception - Exception whose trace we want to write. Parameters: graphics - Graphics context in which to write exception. Thegraphics context should be in its initial state (default affinetransform, default colour, etc...) Parameters: widgetBounds - Size of the trace which was being drawn. |
|
|