ZetaGrid v1.9

zeta.util
Class Graphics

java.lang.Object
  |
  +--zeta.util.Graphics

public class Graphics
extends java.lang.Object

The Graphics class contains advanced graphical functions.


Constructor Summary
Graphics()
           
 
Method Summary
static java.awt.Image floodFill(java.awt.Image image, java.util.List coordinatesColor, java.awt.Color notFillColor)
          floodFill starts at a particular x and y coordinate and fills it, and all the surrounding pixels with a color.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Graphics

public Graphics()
Method Detail

floodFill

public static java.awt.Image floodFill(java.awt.Image image,
                                       java.util.List coordinatesColor,
                                       java.awt.Color notFillColor)
                                throws java.lang.InterruptedException
floodFill starts at a particular x and y coordinate and fills it, and all the surrounding pixels with a color.

Parameters:
image - Image
coordinatesColor - list of triples (Integer: staring x coordinate, Integer: staring y coordinate, Color: color for flood fill)
notFillColor - flood fill will not be performed if the starting point has this color
Returns:
image with filled coordinated and coordinatesColor contains the not filles coordinates
java.lang.InterruptedException

ZetaGrid v1.9

For further technical papers, see ZetaGrid Technical Documentation.
 
Copyright © 2001,2002 Sebastian Wedeniwski. All Rights Reserved.