sub_arctic.output
Class drawable

java.lang.Object
  |
  +--java.awt.Graphics
        |
        +--sub_arctic.output.drawable
Direct Known Subclasses:
drawable_wrapper, ignore_drawable, recording_drawable, shadow_drawable, transparent_drawable

public class drawable
extends java.awt.Graphics

Specialization of, and wrapper for, Graphics class.

This class provides a specialization of the AWT Graphics class that modifies drawing operations slightly to work better with subArctic (e.g., in the area of image drawing), and add some operations for convenience purposes.

Since we don't have access to the construction process for Graphics objects, we can't effectively subclass Graphics in the normal way to specialize it. Instead we create a wrapper around an existing Graphics object. For the most part, we just forward all the operations to the wrapped object. Only in a few places do we extend the API.

Routines that are not documented here are forwarded directly to the Graphics class (see that class for details).

See Also:
Graphics

Field Summary
protected static ignore_observer _ignore
          An observer object for effectively ignoring observation.
protected  java.awt.Graphics g
          Graphics object that we are a wrapper for
 
Constructor Summary
drawable(java.awt.Graphics wrappee)
          Construct a drawable from a Graphics object.
 
Method Summary
 void arrowhead_bound(int x1, int y1, int x2, int y2, int arrow_head_len, int arrow_head_angle, double arrow_inset, java.awt.Point min_pt, java.awt.Point max_pt)
          Find the min and max points bounding the arrowhead that would be drawn at the second point on the given line.
 void arrowhead_bound(int x1, int y1, int x2, int y2, java.awt.Point min_pt, java.awt.Point max_pt)
          Find the min and max points bounding the arrowhead that would be drawn at the second point on the given line.
 void clear_rect(int x, int y, int w, int h)
           
 void clearRect(int x, int y, int w, int h)
           
 void clip_rect(int x, int y, int w, int h)
           
 void clipRect(int x, int y, int w, int h)
           
 void copy_area(int x, int y, int w, int h, int dx, int dy)
           
 drawable copy()
          New version of create() that returns a drawable.
 drawable copy(int x, int y, int w, int h)
          New version of create() that returns a drawable.
 void copyArea(int x, int y, int w, int h, int dx, int dy)
           
 java.awt.Graphics create()
          Override create() to create a new wrapper also.
 java.awt.Graphics create(int x, int y, int w, int h)
          Override create() to create a new wrapper also.
 void dispose()
           
 void draw_3D_rect(int x, int y, int w, int h, boolean raised)
           
 void draw_arc(int x, int y, int w, int h, int start_ang, int arc_ang)
           
 void draw_arrowhead(int x1, int y1, int x2, int y2)
          Draw a hollow arrowhead (as lines) at the second end of the given line (this does not draw the line).
 void draw_arrowhead(int x1, int y1, int x2, int y2, int arrow_head_len, int arrow_head_angle, double arrow_inset)
          Draw a hollow arrowhead (as lines) at the second end of the given line (this does not draw the line).
 void draw_bytes(byte[] data, int off, int len, int x, int y)
           
 void draw_chars(char[] data, int off, int len, int x, int y)
           
 boolean draw_image(java.awt.Image img, int x, int y, java.awt.Color bgcolor, java.awt.image.ImageObserver obs)
           
 boolean draw_image(java.awt.Image img, int x, int y, java.awt.image.ImageObserver observer)
           
 boolean draw_image(java.awt.Image img, int x, int y, int w, int h, java.awt.Color bgcolor, java.awt.image.ImageObserver obs)
           
 boolean draw_image(java.awt.Image img, int x, int y, int w, int h, java.awt.image.ImageObserver obs)
           
 boolean draw_image(java.awt.Image img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2)
           
 boolean draw_image(java.awt.Image img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, java.awt.Color bgcolor)
           
 boolean draw_image(java.awt.Image img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, java.awt.Color bgcolor, java.awt.image.ImageObserver observer)
           
 boolean draw_image(java.awt.Image img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, java.awt.image.ImageObserver observer)
           
 boolean draw_image(loaded_image img, int x, int y)
          subArctic style renaming of drawImage.
 boolean draw_image(loaded_image img, int x, int y, java.awt.Color bgcolor)
          subArctic style renaming of drawImage
 boolean draw_image(loaded_image img, int x, int y, int w, int h)
          subArctic style renaming of drawImage.
 boolean draw_image(loaded_image img, int x, int y, int w, int h, java.awt.Color bgcolor)
          subArctic style renaming of drawImage
 void draw_line(int x1, int y1, int x2, int y2)
           
 void draw_oval(int x, int y, int w, int h)
           
 void draw_polygon(int[] xp, int[] yp, int np)
           
 void draw_polygon(java.awt.Polygon p)
           
 void draw_polyline(int[] xpts, int[] ypts, int npts)
           
 void draw_rect(int x, int y, int w, int h)
           
 void draw_round_rect(int x, int y, int w, int h, int arcw, int arch)
           
 void draw_string(java.lang.String str, int x, int y)
           
 void draw3DRect(int x, int y, int w, int h, boolean raised)
           
 void drawArc(int x, int y, int w, int h, int start_ang, int arc_ang)
           
 void drawBytes(byte[] data, int off, int len, int x, int y)
           
 void drawChars(char[] data, int off, int len, int x, int y)
           
 boolean drawImage(java.awt.Image img, int x, int y, java.awt.Color bgcolor, java.awt.image.ImageObserver obs)
           
 boolean drawImage(java.awt.Image img, int x, int y, java.awt.image.ImageObserver observer)
           
 boolean drawImage(java.awt.Image img, int x, int y, int w, int h, java.awt.Color bgcolor, java.awt.image.ImageObserver obs)
           
 boolean drawImage(java.awt.Image img, int x, int y, int w, int h, java.awt.image.ImageObserver obs)
           
 boolean drawImage(java.awt.Image img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2)
           
 boolean drawImage(java.awt.Image img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, java.awt.Color bgcolor)
           
 boolean drawImage(java.awt.Image img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, java.awt.Color bgcolor, java.awt.image.ImageObserver observer)
           
 boolean drawImage(java.awt.Image img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, java.awt.image.ImageObserver observer)
           
 boolean drawImage(loaded_image img, int x, int y)
          Extended draw image that can deal with a loaded_image w/o an observer.
 boolean drawImage(loaded_image img, int x, int y, java.awt.Color bgcolor)
          Extended draw image that can deal with a loaded_image w/o an observer.
 boolean drawImage(loaded_image img, int x, int y, int w, int h)
          Extended draw image that can deal with a loaded_image w/o an observer.
 boolean drawImage(loaded_image img, int x, int y, int w, int h, java.awt.Color bgcolor)
          Extended draw image that can deal with a loaded_image w/o an observer.
 void drawLine(int x1, int y1, int x2, int y2)
           
 void drawOval(int x, int y, int w, int h)
           
 void drawPolygon(int[] xp, int[] yp, int np)
           
 void drawPolygon(java.awt.Polygon p)
           
 void drawPolyline(int[] xpts, int[] ypts, int npts)
           
 void drawRect(int x, int y, int w, int h)
           
 void drawRoundRect(int x, int y, int w, int h, int arcw, int arch)
           
 void drawString(java.text.AttributedCharacterIterator s, int a, int b)
           
 void drawString(java.lang.String str, int x, int y)
           
 void end_interactor_draw(interactor of_interactor)
          Method to be called to mark the end of output for a particular interactor.
 void fill_3D_rect(int x, int y, int w, int h, boolean raised)
           
 void fill_arc(int x, int y, int w, int h, int start_ang, int arc_ang)
           
 void fill_arrowhead(int x1, int y1, int x2, int y2)
          Draw a filled arrowhead polygon (with good defaults) at the second end of the given line (this does not draw the line).
 void fill_arrowhead(int x1, int y1, int x2, int y2, int arrow_head_len, int arrow_head_angle, double arrow_inset)
          Draw a filled arrowhead polygon at the second end of the given line (this does not draw the line).
 void fill_oval(int x, int y, int w, int h)
           
 void fill_polygon(int[] xp, int[] yp, int np)
           
 void fill_polygon(java.awt.Polygon p)
           
 void fill_rect(int x, int y, int w, int h)
           
 void fill_round_rect(int x, int y, int w, int h, int arcw, int arch)
           
 void fill3DRect(int x, int y, int w, int h, boolean raised)
           
 void fillArc(int x, int y, int w, int h, int start_ang, int arc_ang)
           
 void fillOval(int x, int y, int w, int h)
           
 void fillPolygon(int[] xp, int[] yp, int np)
           
 void fillPolygon(java.awt.Polygon p)
           
 void fillRect(int x, int y, int w, int h)
           
 void fillRoundRect(int x, int y, int w, int h, int arcw, int arch)
           
 java.awt.Rectangle get_clip_bounds()
           
 java.awt.Shape get_clip()
           
 java.awt.Color get_color()
           
 java.awt.FontMetrics get_font_metrics()
           
 java.awt.FontMetrics get_font_metrics(java.awt.Font f)
           
 java.awt.Font get_font()
           
 java.awt.Shape getClip()
           
 java.awt.Rectangle getClipBounds()
           
 java.awt.Color getColor()
           
 java.awt.Font getFont()
           
 java.awt.FontMetrics getFontMetrics()
           
 java.awt.FontMetrics getFontMetrics(java.awt.Font f)
           
 java.awt.Graphics graphics()
          The Graphics object we are a wrapper for.
 boolean mark_interactor_draw(interactor of_interactor, java.lang.Object mark_obj)
          Method to be called to mark a significant point during output for a particular interactor.
 void set_clip(int x, int y, int w, int h)
           
 void set_clip(java.awt.Shape clp)
           
 void set_color(java.awt.Color c)
           
 void set_font(java.awt.Font font)
           
 void set_paint_mode()
           
 void set_XOR_mode(java.awt.Color c)
           
 void setClip(int x, int y, int w, int h)
           
 void setClip(java.awt.Shape clp)
           
 void setColor(java.awt.Color c)
           
 void setFont(java.awt.Font font)
           
 void setPaintMode()
           
 void setXORMode(java.awt.Color c)
           
 boolean start_interactor_draw(interactor of_interactor)
          Method to be called to mark the beginning of output for a particular interactor.
 boolean tile_image(loaded_image pattern, int x, int y, int w, int h)
          subArctic style renaming of tileImage
 boolean tileImage(loaded_image pattern, int x, int y, int w, int h)
          Tiled drawing of a pattern image over an area.
 java.lang.String toString()
          Convert to a human readable string.
 void translate(int x, int y)
           
 
Methods inherited from class java.awt.Graphics
finalize, getClipBounds, getClipRect, hitClip
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

g

protected java.awt.Graphics g
Graphics object that we are a wrapper for

_ignore

protected static ignore_observer _ignore
An observer object for effectively ignoring observation.
Constructor Detail

drawable

public drawable(java.awt.Graphics wrappee)
Construct a drawable from a Graphics object.
Parameters:
Graphics - wrappee the object we are wrapper around.
Method Detail

drawString

public void drawString(java.text.AttributedCharacterIterator s,
                       int a,
                       int b)
Overrides:
drawString in class java.awt.Graphics

graphics

public java.awt.Graphics graphics()
The Graphics object we are a wrapper for. This is here only temporarily so we can get access to Graphics2D operations easily. This will go away once drawable is reorganized to support Graphics2D properly.

create

public java.awt.Graphics create()
Override create() to create a new wrapper also. Note: subclasses will typically need to do this also.
Returns:
Graphics a new drawable object copied from this one.
Overrides:
create in class java.awt.Graphics

create

public java.awt.Graphics create(int x,
                                int y,
                                int w,
                                int h)
Override create() to create a new wrapper also. Note: subclasses will typically need to do this also.
Parameters:
int - x x component of origin of new drawable
int - y y component of origin of new drawable
int - w width of new drawable
int - h height of new drawable
Returns:
Graphics a new drawable object derived from this one.
Overrides:
create in class java.awt.Graphics

copy

public drawable copy()
New version of create() that returns a drawable. This does exactly the same thing as create(), but is just more accurate about its return type.
Returns:
Graphics a new drawable object copied from this one.

copy

public drawable copy(int x,
                     int y,
                     int w,
                     int h)
New version of create() that returns a drawable. This does exactly the same thing as create(), but is just more accurate about its return type.
Parameters:
int - x x component of origin of new drawable
int - y y component of origin of new drawable
int - w width of new drawable
int - h height of new drawable
Returns:
Graphics a new drawable object derived from this one.

start_interactor_draw

public boolean start_interactor_draw(interactor of_interactor)
Method to be called to mark the beginning of output for a particular interactor. This is normally called (only) in draw_self(). The return value indicates whether the interactor (and its children) should be drawn (i.e., if false is returned, the drawing should be skipped and draw_self() should simply return). Here, this call is simply ignored and true is always returned. In subclasses, this is used as a hook for special effects such as isolating the drawing of an interactor from that of its children.
Parameters:
interactor - of_interactor the interactor we are starting to draw
boolean - whether the drawing of the interactor (and its children) should be performed.
See Also:
mark_interactor_draw(sub_arctic.lib.interactor, java.lang.Object), end_interactor_draw(sub_arctic.lib.interactor)

mark_interactor_draw

public boolean mark_interactor_draw(interactor of_interactor,
                                    java.lang.Object mark_obj)
Method to be called to mark a significant point during output for a particular interactor. The return value indicates whether the remaining output for the interactor (and its children) should be drawn (i.e., if false is returned, the remaining drawing should be skipped). The type and effect of the mark_obj parameter to this routine (as well as the effect of the routine) is dependent on subclasses that implement special effects via this call. Here in the base class, this call is simply ignored and true is always returned.
Parameters:
interactor - of_interactor the interactor we are currently drawing
Object - mark_obj an object giving additional information about the mark
boolean - whether the drawing of the interactor (and its children) should be performed.
See Also:
start_interactor_draw(sub_arctic.lib.interactor), end_interactor_draw(sub_arctic.lib.interactor)

end_interactor_draw

public void end_interactor_draw(interactor of_interactor)
Method to be called to mark the end of output for a particular interactor. This is normally called (only) in draw_self(). Here, this call is simply ignored. In subclasses, this is used as a hook for special effects such as isolating the drawing of an interactor from that of its children.
Parameters:
interactor - of_interactor the interactor we are starting to draw
See Also:
mark_interactor_draw(sub_arctic.lib.interactor, java.lang.Object), start_interactor_draw(sub_arctic.lib.interactor)

drawImage

public boolean drawImage(loaded_image img,
                         int x,
                         int y)
Extended draw image that can deal with a loaded_image w/o an observer. If the image has not actually been loaded yet, this will block until it has.
Parameters:
loaded_image - img the image to be drawn.
int - x x position to place the image at.
int - y y position to place the image at.
Returns:
boolean undocumented return value from AWT drawImage() routine.

drawImage

public boolean drawImage(loaded_image img,
                         int x,
                         int y,
                         int w,
                         int h)
Extended draw image that can deal with a loaded_image w/o an observer. If the image has not actually been loaded yet, this will block until it has.
Parameters:
loaded_image - img the image to be drawn.
int - x x position to place the image at.
int - y y position to place the image at.
int - w width image will be scaled to.
int - h height image will be scaled to.
Returns:
boolean undocumented return value from AWT drawImage() routine.

drawImage

public boolean drawImage(loaded_image img,
                         int x,
                         int y,
                         java.awt.Color bgcolor)
Extended draw image that can deal with a loaded_image w/o an observer. If the image has not actually been loaded yet, this will block until it has.
Parameters:
loaded_image - img the image to be drawn.
int - x x position to place the image at.
int - y y position to place the image at.
Color - bgcolor background color.
Returns:
boolean undocumented return value from AWT drawImage() routine.

drawImage

public boolean drawImage(loaded_image img,
                         int x,
                         int y,
                         int w,
                         int h,
                         java.awt.Color bgcolor)
Extended draw image that can deal with a loaded_image w/o an observer. If the image has not actually been loaded yet, this will block until it has.
Parameters:
loaded_image - img the image to be drawn.
int - x x position to place the image at.
int - y y position to place the image at.
int - w width image will be scaled to.
int - h height image will be scaled to.
Color - bgcolor background color.
Returns:
boolean undocumented return value from AWT drawImage() routine.

draw_image

public boolean draw_image(loaded_image img,
                          int x,
                          int y)
subArctic style renaming of drawImage.
Parameters:
loaded_image - img the image to be drawn.
int - x x position to place the image at.
int - y y position to place the image at.
Returns:
boolean undocumented return value from AWT drawImage() routine.

draw_image

public boolean draw_image(loaded_image img,
                          int x,
                          int y,
                          int w,
                          int h)
subArctic style renaming of drawImage.
Parameters:
loaded_image - img the image to be drawn.
int - x x position to place the image at.
int - y y position to place the image at.
int - w width image will be scaled to.
int - h height image will be scaled to.
Returns:
boolean undocumented return value from AWT drawImage() routine.

draw_image

public boolean draw_image(loaded_image img,
                          int x,
                          int y,
                          java.awt.Color bgcolor)
subArctic style renaming of drawImage
Parameters:
loaded_image - img the image to be drawn.
int - x x position to place the image at.
int - y y position to place the image at.
Color - bgcolor background color.
Returns:
boolean undocumented return value from AWT drawImage() routine.

draw_image

public boolean draw_image(loaded_image img,
                          int x,
                          int y,
                          int w,
                          int h,
                          java.awt.Color bgcolor)
subArctic style renaming of drawImage
Parameters:
loaded_image - img the image to be drawn.
int - x x position to place the image at.
int - y y position to place the image at.
int - w width image will be scaled to.
int - h height image will be scaled to.
Color - bgcolor background color.
Returns:
boolean undocumented return value from AWT drawImage() routine.

tileImage

public boolean tileImage(loaded_image pattern,
                         int x,
                         int y,
                         int w,
                         int h)
Tiled drawing of a pattern image over an area. The given image is drawn repeatedly to fill the given area.
Parameters:
loaded_image - pattern the pattern to be tiled with the given space.
int - x x position to place the image at.
int - y y position to place the image at.
int - w width of area to tile.
int - h height of area to tile.
Returns:
boolean undocumented return value from AWT drawImage() routine.

tile_image

public boolean tile_image(loaded_image pattern,
                          int x,
                          int y,
                          int w,
                          int h)
subArctic style renaming of tileImage
Parameters:
loaded_image - pattern the pattern to be tiled with the given space.
int - x x position to place the image at.
int - y y position to place the image at.
int - w width of area to tile.
int - h height of area to tile.
Returns:
boolean undocumented return value from AWT drawImage() routine.

fill_arrowhead

public void fill_arrowhead(int x1,
                           int y1,
                           int x2,
                           int y2,
                           int arrow_head_len,
                           int arrow_head_angle,
                           double arrow_inset)
Draw a filled arrowhead polygon at the second end of the given line (this does not draw the line).

Parameters:
int - x1 first x coordinate of the line
int - y1 first y coordinate of the line
int - x2 second x coordinate of the line (arrow head point goes here)
int - y2 second y coordinate of the line (arrow head point goes here)
int - arrow_head_len length of the sides of the arrow head
int - arrow_head_angle angle between each side and the line in degrees
double - arrow_inset percent inset for base of arrow [0..1] (values around 0.60 seem to work well).

fill_arrowhead

public void fill_arrowhead(int x1,
                           int y1,
                           int x2,
                           int y2)
Draw a filled arrowhead polygon (with good defaults) at the second end of the given line (this does not draw the line).
Parameters:
int - x1 first x coordinate of the line
int - y1 first y coordinate of the line
int - x2 second x coordinate of the line (arrow head point goes here)
int - y2 second y coordinate of the line (arrow head point goes here)

draw_arrowhead

public void draw_arrowhead(int x1,
                           int y1,
                           int x2,
                           int y2,
                           int arrow_head_len,
                           int arrow_head_angle,
                           double arrow_inset)
Draw a hollow arrowhead (as lines) at the second end of the given line (this does not draw the line).

Parameters:
int - x1 first x coordinate of the line.
int - y1 first y coordinate of the line.
int - x2 second x coordinate of the line (arrow head point goes here).
int - y2 second y coordinate of the line (arrow head point goes here).
int - arrow_head_len length of the sides of the arrow head.
int - arrow_head_angle angle between each side and the line in degrees.
double - arrow_inset percent inset for base of arrow [0..1] (values around 0.60 seem to work well).

draw_arrowhead

public void draw_arrowhead(int x1,
                           int y1,
                           int x2,
                           int y2)
Draw a hollow arrowhead (as lines) at the second end of the given line (this does not draw the line). This version provides good defaults for the arrow size and shape.

Parameters:
int - x1 first x coordinate of the line
int - y1 first y coordinate of the line
int - x2 second x coordinate of the line (arrow head point goes here)
int - y2 second y coordinate of the line (arrow head point goes here)

arrowhead_bound

public void arrowhead_bound(int x1,
                            int y1,
                            int x2,
                            int y2,
                            int arrow_head_len,
                            int arrow_head_angle,
                            double arrow_inset,
                            java.awt.Point min_pt,
                            java.awt.Point max_pt)
Find the min and max points bounding the arrowhead that would be drawn at the second point on the given line.

Parameters:
int - x1 first x coordinate of the line
int - y1 first y coordinate of the line
int - x2 second x coordinate of the line (arrow head point goes here)
int - y2 second y coordinate of the line (arrow head point goes here)
int - arrow_head_len length of the sides of the arrow head
int - arrow_head_angle angle between each side and the line in degrees
double - arrow_inset percent inset for base of arrow [0..1]
Point - min_pt returns holding the min x,y of the bound
Point - max_pt returns holding the max x,y of the bound

arrowhead_bound

public void arrowhead_bound(int x1,
                            int y1,
                            int x2,
                            int y2,
                            java.awt.Point min_pt,
                            java.awt.Point max_pt)
Find the min and max points bounding the arrowhead that would be drawn at the second point on the given line.

Parameters:
int - x1 first x coordinate of the line
int - y1 first y coordinate of the line
int - x2 second x coordinate of the line (arrow head point goes here)
int - y2 second y coordinate of the line (arrow head point goes here)
Point - min_pt returns holding the min x,y of the bound
Point - max_pt returns holding the max x,y of the bound

translate

public void translate(int x,
                      int y)
Overrides:
translate in class java.awt.Graphics

getColor

public java.awt.Color getColor()
Overrides:
getColor in class java.awt.Graphics

get_color

public java.awt.Color get_color()

setColor

public void setColor(java.awt.Color c)
Overrides:
setColor in class java.awt.Graphics

set_color

public void set_color(java.awt.Color c)

setPaintMode

public void setPaintMode()
Overrides:
setPaintMode in class java.awt.Graphics

set_paint_mode

public void set_paint_mode()

setXORMode

public void setXORMode(java.awt.Color c)
Overrides:
setXORMode in class java.awt.Graphics

set_XOR_mode

public void set_XOR_mode(java.awt.Color c)

getFont

public java.awt.Font getFont()
Overrides:
getFont in class java.awt.Graphics

get_font

public java.awt.Font get_font()

setFont

public void setFont(java.awt.Font font)
Overrides:
setFont in class java.awt.Graphics

set_font

public void set_font(java.awt.Font font)

getFontMetrics

public java.awt.FontMetrics getFontMetrics()
Overrides:
getFontMetrics in class java.awt.Graphics

get_font_metrics

public java.awt.FontMetrics get_font_metrics()

getFontMetrics

public java.awt.FontMetrics getFontMetrics(java.awt.Font f)
Overrides:
getFontMetrics in class java.awt.Graphics

get_font_metrics

public java.awt.FontMetrics get_font_metrics(java.awt.Font f)

clipRect

public void clipRect(int x,
                     int y,
                     int w,
                     int h)
Overrides:
clipRect in class java.awt.Graphics

clip_rect

public void clip_rect(int x,
                      int y,
                      int w,
                      int h)

copyArea

public void copyArea(int x,
                     int y,
                     int w,
                     int h,
                     int dx,
                     int dy)
Overrides:
copyArea in class java.awt.Graphics

copy_area

public void copy_area(int x,
                      int y,
                      int w,
                      int h,
                      int dx,
                      int dy)

drawLine

public void drawLine(int x1,
                     int y1,
                     int x2,
                     int y2)
Overrides:
drawLine in class java.awt.Graphics

draw_line

public void draw_line(int x1,
                      int y1,
                      int x2,
                      int y2)

fillRect

public void fillRect(int x,
                     int y,
                     int w,
                     int h)
Overrides:
fillRect in class java.awt.Graphics

fill_rect

public void fill_rect(int x,
                      int y,
                      int w,
                      int h)

drawRect

public void drawRect(int x,
                     int y,
                     int w,
                     int h)
Overrides:
drawRect in class java.awt.Graphics

draw_rect

public void draw_rect(int x,
                      int y,
                      int w,
                      int h)

clearRect

public void clearRect(int x,
                      int y,
                      int w,
                      int h)
Overrides:
clearRect in class java.awt.Graphics

clear_rect

public void clear_rect(int x,
                       int y,
                       int w,
                       int h)

drawRoundRect

public void drawRoundRect(int x,
                          int y,
                          int w,
                          int h,
                          int arcw,
                          int arch)
Overrides:
drawRoundRect in class java.awt.Graphics

draw_round_rect

public void draw_round_rect(int x,
                            int y,
                            int w,
                            int h,
                            int arcw,
                            int arch)

fillRoundRect

public void fillRoundRect(int x,
                          int y,
                          int w,
                          int h,
                          int arcw,
                          int arch)
Overrides:
fillRoundRect in class java.awt.Graphics

fill_round_rect

public void fill_round_rect(int x,
                            int y,
                            int w,
                            int h,
                            int arcw,
                            int arch)

draw3DRect

public void draw3DRect(int x,
                       int y,
                       int w,
                       int h,
                       boolean raised)
Overrides:
draw3DRect in class java.awt.Graphics

draw_3D_rect

public void draw_3D_rect(int x,
                         int y,
                         int w,
                         int h,
                         boolean raised)

fill3DRect

public void fill3DRect(int x,
                       int y,
                       int w,
                       int h,
                       boolean raised)
Overrides:
fill3DRect in class java.awt.Graphics

fill_3D_rect

public void fill_3D_rect(int x,
                         int y,
                         int w,
                         int h,
                         boolean raised)

drawOval

public void drawOval(int x,
                     int y,
                     int w,
                     int h)
Overrides:
drawOval in class java.awt.Graphics

draw_oval

public void draw_oval(int x,
                      int y,
                      int w,
                      int h)

fillOval

public void fillOval(int x,
                     int y,
                     int w,
                     int h)
Overrides:
fillOval in class java.awt.Graphics

fill_oval

public void fill_oval(int x,
                      int y,
                      int w,
                      int h)

drawArc

public void drawArc(int x,
                    int y,
                    int w,
                    int h,
                    int start_ang,
                    int arc_ang)
Overrides:
drawArc in class java.awt.Graphics

draw_arc

public void draw_arc(int x,
                     int y,
                     int w,
                     int h,
                     int start_ang,
                     int arc_ang)

fillArc

public void fillArc(int x,
                    int y,
                    int w,
                    int h,
                    int start_ang,
                    int arc_ang)
Overrides:
fillArc in class java.awt.Graphics

fill_arc

public void fill_arc(int x,
                     int y,
                     int w,
                     int h,
                     int start_ang,
                     int arc_ang)

drawPolygon

public void drawPolygon(int[] xp,
                        int[] yp,
                        int np)
Overrides:
drawPolygon in class java.awt.Graphics

draw_polygon

public void draw_polygon(int[] xp,
                         int[] yp,
                         int np)

drawPolygon

public void drawPolygon(java.awt.Polygon p)
Overrides:
drawPolygon in class java.awt.Graphics

draw_polygon

public void draw_polygon(java.awt.Polygon p)

fillPolygon

public void fillPolygon(int[] xp,
                        int[] yp,
                        int np)
Overrides:
fillPolygon in class java.awt.Graphics

fill_polygon

public void fill_polygon(int[] xp,
                         int[] yp,
                         int np)

fillPolygon

public void fillPolygon(java.awt.Polygon p)
Overrides:
fillPolygon in class java.awt.Graphics

fill_polygon

public void fill_polygon(java.awt.Polygon p)

drawString

public void drawString(java.lang.String str,
                       int x,
                       int y)
Overrides:
drawString in class java.awt.Graphics

draw_string

public void draw_string(java.lang.String str,
                        int x,
                        int y)

drawChars

public void drawChars(char[] data,
                      int off,
                      int len,
                      int x,
                      int y)
Overrides:
drawChars in class java.awt.Graphics

draw_chars

public void draw_chars(char[] data,
                       int off,
                       int len,
                       int x,
                       int y)

drawBytes

public void drawBytes(byte[] data,
                      int off,
                      int len,
                      int x,
                      int y)
Overrides:
drawBytes in class java.awt.Graphics

draw_bytes

public void draw_bytes(byte[] data,
                       int off,
                       int len,
                       int x,
                       int y)

drawImage

public boolean drawImage(java.awt.Image img,
                         int x,
                         int y,
                         java.awt.image.ImageObserver observer)
Overrides:
drawImage in class java.awt.Graphics

draw_image

public boolean draw_image(java.awt.Image img,
                          int x,
                          int y,
                          java.awt.image.ImageObserver observer)

drawImage

public boolean drawImage(java.awt.Image img,
                         int x,
                         int y,
                         int w,
                         int h,
                         java.awt.image.ImageObserver obs)
Overrides:
drawImage in class java.awt.Graphics

draw_image

public boolean draw_image(java.awt.Image img,
                          int x,
                          int y,
                          int w,
                          int h,
                          java.awt.image.ImageObserver obs)

drawImage

public boolean drawImage(java.awt.Image img,
                         int x,
                         int y,
                         java.awt.Color bgcolor,
                         java.awt.image.ImageObserver obs)
Overrides:
drawImage in class java.awt.Graphics

draw_image

public boolean draw_image(java.awt.Image img,
                          int x,
                          int y,
                          java.awt.Color bgcolor,
                          java.awt.image.ImageObserver obs)

drawImage

public boolean drawImage(java.awt.Image img,
                         int x,
                         int y,
                         int w,
                         int h,
                         java.awt.Color bgcolor,
                         java.awt.image.ImageObserver obs)
Overrides:
drawImage in class java.awt.Graphics

draw_image

public boolean draw_image(java.awt.Image img,
                          int x,
                          int y,
                          int w,
                          int h,
                          java.awt.Color bgcolor,
                          java.awt.image.ImageObserver obs)

dispose

public void dispose()
Overrides:
dispose in class java.awt.Graphics

getClipBounds

public java.awt.Rectangle getClipBounds()
Overrides:
getClipBounds in class java.awt.Graphics

get_clip_bounds

public java.awt.Rectangle get_clip_bounds()

setClip

public void setClip(int x,
                    int y,
                    int w,
                    int h)
Overrides:
setClip in class java.awt.Graphics

set_clip

public void set_clip(int x,
                     int y,
                     int w,
                     int h)

setClip

public void setClip(java.awt.Shape clp)
Overrides:
setClip in class java.awt.Graphics

set_clip

public void set_clip(java.awt.Shape clp)

getClip

public java.awt.Shape getClip()
Overrides:
getClip in class java.awt.Graphics

get_clip

public java.awt.Shape get_clip()

drawPolyline

public void drawPolyline(int[] xpts,
                         int[] ypts,
                         int npts)
Overrides:
drawPolyline in class java.awt.Graphics

draw_polyline

public void draw_polyline(int[] xpts,
                          int[] ypts,
                          int npts)

drawImage

public boolean drawImage(java.awt.Image img,
                         int dx1,
                         int dy1,
                         int dx2,
                         int dy2,
                         int sx1,
                         int sy1,
                         int sx2,
                         int sy2,
                         java.awt.image.ImageObserver observer)
Overrides:
drawImage in class java.awt.Graphics

draw_image

public boolean draw_image(java.awt.Image img,
                          int dx1,
                          int dy1,
                          int dx2,
                          int dy2,
                          int sx1,
                          int sy1,
                          int sx2,
                          int sy2,
                          java.awt.image.ImageObserver observer)

drawImage

public boolean drawImage(java.awt.Image img,
                         int dx1,
                         int dy1,
                         int dx2,
                         int dy2,
                         int sx1,
                         int sy1,
                         int sx2,
                         int sy2,
                         java.awt.Color bgcolor,
                         java.awt.image.ImageObserver observer)
Overrides:
drawImage in class java.awt.Graphics

draw_image

public boolean draw_image(java.awt.Image img,
                          int dx1,
                          int dy1,
                          int dx2,
                          int dy2,
                          int sx1,
                          int sy1,
                          int sx2,
                          int sy2,
                          java.awt.Color bgcolor,
                          java.awt.image.ImageObserver observer)

drawImage

public boolean drawImage(java.awt.Image img,
                         int dx1,
                         int dy1,
                         int dx2,
                         int dy2,
                         int sx1,
                         int sy1,
                         int sx2,
                         int sy2)

draw_image

public boolean draw_image(java.awt.Image img,
                          int dx1,
                          int dy1,
                          int dx2,
                          int dy2,
                          int sx1,
                          int sy1,
                          int sx2,
                          int sy2)

drawImage

public boolean drawImage(java.awt.Image img,
                         int dx1,
                         int dy1,
                         int dx2,
                         int dy2,
                         int sx1,
                         int sy1,
                         int sx2,
                         int sy2,
                         java.awt.Color bgcolor)

draw_image

public boolean draw_image(java.awt.Image img,
                          int dx1,
                          int dy1,
                          int dx2,
                          int dy2,
                          int sx1,
                          int sy1,
                          int sx2,
                          int sy2,
                          java.awt.Color bgcolor)

toString

public java.lang.String toString()
Convert to a human readable string.
Overrides:
toString in class java.awt.Graphics