de.laures.cewolf.util
Class RenderingHelper
java.lang.Object
de.laures.cewolf.util.RenderingHelper
public class RenderingHelper
- extends java.lang.Object
Some methods to render messages or exceptions into an image.
- Author:
- glaures
Method Summary |
private static void |
drawStackTrace(java.awt.Graphics gr,
int x,
int y,
java.lang.Throwable ex)
|
private static java.lang.String |
getStackTrace(java.lang.Throwable t)
|
static java.lang.String |
renderException(java.lang.Throwable ex,
int width,
int height,
java.io.OutputStream out)
|
static java.lang.String |
renderMessage(java.lang.String msg,
int width,
int height,
java.io.OutputStream out)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PADDING_X
private static final int PADDING_X
- See Also:
- Constant Field Values
RenderingHelper
public RenderingHelper()
renderMessage
public static java.lang.String renderMessage(java.lang.String msg,
int width,
int height,
java.io.OutputStream out)
throws java.io.IOException
- Throws:
java.io.IOException
renderException
public static java.lang.String renderException(java.lang.Throwable ex,
int width,
int height,
java.io.OutputStream out)
throws java.io.IOException
- Throws:
java.io.IOException
drawStackTrace
private static void drawStackTrace(java.awt.Graphics gr,
int x,
int y,
java.lang.Throwable ex)
getStackTrace
private static java.lang.String getStackTrace(java.lang.Throwable t)