public class RenderUtils extends Object
| Constructor and Description |
|---|
RenderUtils() |
| Modifier and Type | Method and Description |
|---|---|
static BufferedImage |
invertImage(BufferedImage image) |
static boolean |
isInverted(float[][] CTM) |
static boolean |
rectangleContains(int[] area,
int x,
int y)
Rectangle contains code does not handle negative values
Use this instead.
|
static void |
renderClip(Area clip,
Rectangle dirtyRegion,
Shape defaultClip,
Graphics2D g2)
update clip
|
static Object |
restoreFromStream(ByteArrayInputStream bis)
generic method to return a serilized object from an InputStream
|
static void |
writeToStream(ByteArrayOutputStream bos,
Object obj)
generic method to serilized an object to an OutputStream
|
public static boolean isInverted(float[][] CTM)
public static BufferedImage invertImage(BufferedImage image)
public static void renderClip(Area clip, Rectangle dirtyRegion, Shape defaultClip, Graphics2D g2)
defaultClip - public static boolean rectangleContains(int[] area,
int x,
int y)
area - : Rectangle to look inx - : value on the x axisy - : value on the y axispublic static Object restoreFromStream(ByteArrayInputStream bis) throws IOException, ClassNotFoundException
NOT PART OF API and subject to change (DO NOT USE)
bis - - ByteArrayInputStream containing serilized objectIOExceptionClassNotFoundExceptionpublic static void writeToStream(ByteArrayOutputStream bos, Object obj) throws IOException
NOT PART OF API and subject to change (DO NOT USE)
bos - - ByteArrayOutputStream to serilize toobj - - object to serilizeIOExceptionCopyright © 2017. All rights reserved.