|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.awt.Graphics
|
+--sub_arctic.output.drawable
|
+--sub_arctic.output.recording_drawable
A drawable subclass that records (and potentially plays back) all the drawing operations applied to it.
This is currently an intrim implementation that simply records operations in memory. A later implementation will probably provide an API for hooking up input and output streams for recording to and playing back from.
| Fields inherited from class sub_arctic.output.drawable |
_ignore,
g |
| Constructor Summary | |
recording_drawable(java.awt.Graphics wrappee)
Construct a drawable from a Graphics object. |
|
| Method Summary | |
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)
|
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 |
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,
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)
|
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_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(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 |
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.lang.String str,
int x,
int y)
|
void |
end_recording()
Stop recording. |
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,
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)
|
void |
record(int op_code)
Record a drawing operation |
void |
record(int op_code,
byte[] bytes,
int i1,
int i2,
int i3,
int i4)
Record a drawing operation |
void |
record(int op_code,
char[] chars,
int i1,
int i2,
int i3,
int i4)
Record a drawing operation |
void |
record(int op_code,
java.awt.Color c)
Record a drawing operation |
void |
record(int op_code,
java.awt.Font fnt)
Record a drawing operation |
void |
record(int op_code,
java.awt.Image img,
int i1,
int i2,
java.awt.Color c,
java.awt.image.ImageObserver o)
Record a drawing operation |
void |
record(int op_code,
java.awt.Image img,
int i1,
int i2,
java.awt.image.ImageObserver o)
Record a drawing operation |
void |
record(int op_code,
java.awt.Image img,
int i1,
int i2,
int i3,
int i4,
java.awt.Color c,
java.awt.image.ImageObserver o)
Record a drawing operation |
void |
record(int op_code,
java.awt.Image img,
int i1,
int i2,
int i3,
int i4,
java.awt.image.ImageObserver o)
Record a drawing operation |
void |
record(int op_code,
int[] a1,
int[] a2,
int i1)
Record a drawing operation |
void |
record(int op_code,
int i1,
int i2)
Record a drawing operation |
void |
record(int op_code,
int i1,
int i2,
int i3,
int i4)
Record a drawing operation |
void |
record(int op_code,
int i1,
int i2,
int i3,
int i4,
boolean b)
Record a drawing operation |
void |
record(int op_code,
int i1,
int i2,
int i3,
int i4,
int i5,
int i6)
Record a drawing operation |
void |
record(int op_code,
int i1,
int i2,
int i3,
int i4,
int i5,
int i6,
double d)
Record a drawing operation |
void |
record(int op_code,
loaded_image l,
int i1,
int i2)
Record a drawing operation |
void |
record(int op_code,
loaded_image l,
int i1,
int i2,
java.awt.Color c)
Record a drawing operation |
void |
record(int op_code,
loaded_image l,
int i1,
int i2,
int i3,
int i4)
Record a drawing operation |
void |
record(int op_code,
loaded_image l,
int i1,
int i2,
int i3,
int i4,
java.awt.Color c)
Record a drawing operation |
void |
record(int op_code,
java.awt.Polygon p)
Record a drawing operation |
void |
record(int op_code,
java.lang.String s,
int i1,
int i2)
Record a drawing operation |
boolean |
recording()
Are we currently recording? |
void |
set_color(java.awt.Color c)
|
void |
set_font(java.awt.Font font)
|
void |
set_paint_mode()
|
void |
set_recording(boolean to_state)
Turn recording on or off. |
void |
set_XOR_mode(java.awt.Color c)
|
void |
setColor(java.awt.Color c)
|
void |
setFont(java.awt.Font font)
|
void |
setPaintMode()
|
void |
setXORMode(java.awt.Color c)
|
void |
start_recording()
Start recording. |
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 sub_arctic.output.drawable |
arrowhead_bound,
arrowhead_bound,
copy,
copy,
dispose,
draw_arrowhead,
draw_image,
draw_image,
draw_image,
draw_image,
draw_image,
draw_image,
draw_image,
draw_image,
draw_polyline,
drawImage,
drawImage,
drawImage,
drawImage,
drawPolyline,
drawString,
end_interactor_draw,
fill_arrowhead,
get_clip_bounds,
get_clip,
get_color,
get_font_metrics,
get_font_metrics,
get_font,
getClip,
getClipBounds,
getColor,
getFont,
getFontMetrics,
getFontMetrics,
graphics,
mark_interactor_draw,
set_clip,
set_clip,
setClip,
setClip,
start_interactor_draw,
tile_image |
| 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 |
public static final int OP_clear_rect_iiii
public static final int OP_clip_rect_iiii
public static final int OP_copy_area_iiiiii
public static final int OP_draw3D_rect_iiiib
public static final int OP_draw_arc_iiiiii
public static final int OP_draw_arrowhead_iiiiiid
public static final int OP_draw_bytes_Biiii
public static final int OP_draw_chars_ciiii
public static final int OP_draw_image_IiiCo
public static final int OP_draw_image_IiiiiCo
public static final int OP_draw_image_Iiiiio
public static final int OP_draw_image_Iiio
public static final int OP_draw_image_lii
public static final int OP_draw_image_liiC
public static final int OP_draw_image_liiii
public static final int OP_draw_image_liiiiC
public static final int OP_draw_line_iiii
public static final int OP_draw_oval_iiii
public static final int OP_draw_polygon_aai
public static final int OP_draw_polygon_p
public static final int OP_draw_rect_iiii
public static final int OP_draw_round_rect_iiiiii
public static final int OP_draw_string_sii
public static final int OP_fill3DRect_iiiib
public static final int OP_fill_arc_iiiiii
public static final int OP_fill_arrowhead_iiiiiid
public static final int OP_fill_oval_iiii
public static final int OP_fill_polygon_aai
public static final int OP_fill_polygon_p
public static final int OP_fill_rect_iiii
public static final int OP_fill_round_rect_iiiiii
public static final int OP_set_XOR_mode_C
public static final int OP_set_color_C
public static final int OP_set_font_f
public static final int OP_set_paint_mode
public static final int OP_tile_image_liiii
public static final int OP_translate_ii
protected boolean _recording
| Constructor Detail |
public recording_drawable(java.awt.Graphics wrappee)
Graphics - wrappee the object we are wrapper around.| Method Detail |
public void record(int op_code)
public void record(int op_code,
byte[] bytes,
int i1,
int i2,
int i3,
int i4)
public void record(int op_code,
java.awt.Color c)
public void record(int op_code,
java.awt.Image img,
int i1,
int i2,
java.awt.Color c,
java.awt.image.ImageObserver o)
public void record(int op_code,
java.awt.Image img,
int i1,
int i2,
int i3,
int i4,
java.awt.Color c,
java.awt.image.ImageObserver o)
public void record(int op_code,
java.awt.Image img,
int i1,
int i2,
int i3,
int i4,
java.awt.image.ImageObserver o)
public void record(int op_code,
java.awt.Image img,
int i1,
int i2,
java.awt.image.ImageObserver o)
public void record(int op_code,
int[] a1,
int[] a2,
int i1)
public void record(int op_code,
char[] chars,
int i1,
int i2,
int i3,
int i4)
public void record(int op_code,
java.awt.Font fnt)
public void record(int op_code,
int i1,
int i2)
public void record(int op_code,
int i1,
int i2,
int i3,
int i4)
public void record(int op_code,
int i1,
int i2,
int i3,
int i4,
boolean b)
public void record(int op_code,
int i1,
int i2,
int i3,
int i4,
int i5,
int i6)
public void record(int op_code,
int i1,
int i2,
int i3,
int i4,
int i5,
int i6,
double d)
public void record(int op_code,
loaded_image l,
int i1,
int i2)
public void record(int op_code,
loaded_image l,
int i1,
int i2,
java.awt.Color c)
public void record(int op_code,
loaded_image l,
int i1,
int i2,
int i3,
int i4)
public void record(int op_code,
loaded_image l,
int i1,
int i2,
int i3,
int i4,
java.awt.Color c)
public void record(int op_code,
java.awt.Polygon p)
public void record(int op_code,
java.lang.String s,
int i1,
int i2)
public boolean recording()
public void set_recording(boolean to_state)
public void start_recording()
public void end_recording()
public java.awt.Graphics create()
public java.awt.Graphics create(int x,
int y,
int w,
int h)
int - x x component of origin of new drawableint - y y component of origin of new drawableint - w width of new drawableint - h height of new drawable
public boolean drawImage(loaded_image img,
int x,
int y)
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.
public boolean drawImage(loaded_image img,
int x,
int y,
int w,
int h)
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.
public boolean drawImage(loaded_image img,
int x,
int y,
java.awt.Color bgcolor)
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.
public boolean drawImage(loaded_image img,
int x,
int y,
int w,
int h,
java.awt.Color bgcolor)
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.
public boolean tileImage(loaded_image pattern,
int x,
int y,
int w,
int h)
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.
public void fill_arrowhead(int x1,
int y1,
int x2,
int y2,
int arrow_head_len,
int arrow_head_angle,
double arrow_inset)
int - x1 first x coordinate of the lineint - y1 first y coordinate of the lineint - 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 headint - arrow_head_angle angle between each side and the line in
degreesdouble - arrow_inset percent inset for base of arrow [0..1]
(values around 0.60 seem to work well).
public void draw_arrowhead(int x1,
int y1,
int x2,
int y2,
int arrow_head_len,
int arrow_head_angle,
double arrow_inset)
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).
public void translate(int x,
int y)
public void setColor(java.awt.Color c)
public void set_color(java.awt.Color c)
public void setPaintMode()
public void set_paint_mode()
public void setXORMode(java.awt.Color c)
public void set_XOR_mode(java.awt.Color c)
public void setFont(java.awt.Font font)
public void set_font(java.awt.Font font)
public void clipRect(int x,
int y,
int w,
int h)
public void clip_rect(int x,
int y,
int w,
int h)
public void copyArea(int x,
int y,
int w,
int h,
int dx,
int dy)
public void copy_area(int x,
int y,
int w,
int h,
int dx,
int dy)
public void drawLine(int x1,
int y1,
int x2,
int y2)
public void draw_line(int x1,
int y1,
int x2,
int y2)
public void fillRect(int x,
int y,
int w,
int h)
public void fill_rect(int x,
int y,
int w,
int h)
public void drawRect(int x,
int y,
int w,
int h)
public void draw_rect(int x,
int y,
int w,
int h)
public void clearRect(int x,
int y,
int w,
int h)
public void clear_rect(int x,
int y,
int w,
int h)
public void drawRoundRect(int x,
int y,
int w,
int h,
int arcw,
int arch)
public void draw_round_rect(int x,
int y,
int w,
int h,
int arcw,
int arch)
public void fillRoundRect(int x,
int y,
int w,
int h,
int arcw,
int arch)
public void fill_round_rect(int x,
int y,
int w,
int h,
int arcw,
int arch)
public void draw3DRect(int x,
int y,
int w,
int h,
boolean raised)
public void draw_3D_rect(int x,
int y,
int w,
int h,
boolean raised)
public void fill3DRect(int x,
int y,
int w,
int h,
boolean raised)
public void fill_3D_rect(int x,
int y,
int w,
int h,
boolean raised)
public void drawOval(int x,
int y,
int w,
int h)
public void draw_oval(int x,
int y,
int w,
int h)
public void fillOval(int x,
int y,
int w,
int h)
public void fill_oval(int x,
int y,
int w,
int h)
public void drawArc(int x,
int y,
int w,
int h,
int start_ang,
int arc_ang)
public void draw_arc(int x,
int y,
int w,
int h,
int start_ang,
int arc_ang)
public void fillArc(int x,
int y,
int w,
int h,
int start_ang,
int arc_ang)
public void fill_arc(int x,
int y,
int w,
int h,
int start_ang,
int arc_ang)
public void drawPolygon(int[] xp,
int[] yp,
int np)
public void draw_polygon(int[] xp,
int[] yp,
int np)
public void drawPolygon(java.awt.Polygon p)
public void draw_polygon(java.awt.Polygon p)
public void fillPolygon(int[] xp,
int[] yp,
int np)
public void fill_polygon(int[] xp,
int[] yp,
int np)
public void fillPolygon(java.awt.Polygon p)
public void fill_polygon(java.awt.Polygon p)
public void drawString(java.lang.String str,
int x,
int y)
public void draw_string(java.lang.String str,
int x,
int y)
public void drawChars(char[] data,
int off,
int len,
int x,
int y)
public void draw_chars(char[] data,
int off,
int len,
int x,
int y)
public void drawBytes(byte[] data,
int off,
int len,
int x,
int y)
public void draw_bytes(byte[] data,
int off,
int len,
int x,
int y)
public boolean drawImage(java.awt.Image img,
int x,
int y,
java.awt.image.ImageObserver observer)
public boolean draw_image(java.awt.Image img,
int x,
int y,
java.awt.image.ImageObserver observer)
public boolean drawImage(java.awt.Image img,
int x,
int y,
int w,
int h,
java.awt.image.ImageObserver obs)
public boolean draw_image(java.awt.Image img,
int x,
int y,
int w,
int h,
java.awt.image.ImageObserver obs)
public boolean drawImage(java.awt.Image img,
int x,
int y,
java.awt.Color bgcolor,
java.awt.image.ImageObserver obs)
public boolean draw_image(java.awt.Image img,
int x,
int y,
java.awt.Color bgcolor,
java.awt.image.ImageObserver obs)
public boolean drawImage(java.awt.Image img,
int x,
int y,
int w,
int h,
java.awt.Color bgcolor,
java.awt.image.ImageObserver obs)
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)
public java.lang.String toString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||