|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.geotools.resources.GraphicsUtilities
A set of utilities methods for painting in a Graphics2D
handle.
Method in this class was used to be in 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.
Method Summary | |
static void |
paintStackTrace(java.awt.Graphics2D graphics,
java.awt.Rectangle widgetBounds,
java.lang.Throwable exception)
Writes the specified exception trace in the specified graphics context. |
static java.lang.String |
printStackTrace(java.lang.Throwable exception)
Returns an exception trace. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static void paintStackTrace(java.awt.Graphics2D graphics, java.awt.Rectangle widgetBounds, java.lang.Throwable exception)
Component.paint(java.awt.Graphics)
method and we want to write it
rather than leaving an empty window.
exception
- Exception whose trace we want to write.graphics
- Graphics context in which to write exception. The
graphics context should be in its initial state (default affine
transform, default colour, etc...)widgetBounds
- Size of the trace which was being drawn.public static java.lang.String printStackTrace(java.lang.Throwable exception)
ExceptionMonitor
.
Do not rely on it.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |