|
|||||||||
| 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.transparent_drawable
A drawable object that draws everything with increased transparency. Well, almost everything -- AWT does not support transparent text so text is always drawn at full opacity.
RGBImageFilter| Field Summary | |
protected int |
_alpha_value
Max transparency that we paint everything with. |
protected int |
alpha_mask
Copy of _alpha_value pre-shifted to apply directly as alpha value in RGB-alpha encoding. |
protected java.awt.image.ImageFilter |
trans_filter
Filter to increase transparency of images |
| Fields inherited from class sub_arctic.output.drawable |
_ignore,
g |
| Constructor Summary | |
transparent_drawable(drawable wrappee)
Constructor from drawable that defaults to alpha value of 50% |
|
transparent_drawable(drawable wrappee,
int alph)
Full constructor from a drawable. |
|
transparent_drawable(java.awt.Graphics wrappee)
Constructor that defaults to alpha value of 50% |
|
transparent_drawable(java.awt.Graphics wrappee,
int alph)
Full constructor. |
|
| Method Summary | |
int |
alpha_factor()
Max transparency that we paint everything with. |
protected java.awt.Color |
apply_alpha(java.awt.Color c)
Apply transparency value to a color. |
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. |
boolean |
drawImage(java.awt.Image img,
int x,
int y,
java.awt.Color bgcolor,
java.awt.image.ImageObserver obs)
Override to filter images, modifying transparency. |
boolean |
drawImage(java.awt.Image img,
int x,
int y,
java.awt.image.ImageObserver observer)
Override to filter images, modifying transparency. |
boolean |
drawImage(java.awt.Image img,
int x,
int y,
int w,
int h,
java.awt.Color bgcolor,
java.awt.image.ImageObserver obs)
Override to filter images, modifying transparency. |
boolean |
drawImage(java.awt.Image img,
int x,
int y,
int w,
int h,
java.awt.image.ImageObserver obs)
Override to filter images, modifying transparency. |
protected java.awt.Image |
make_trans(java.awt.Image from_img)
Filter the given image to add our transparency to it. |
void |
set_alpha_value(int a)
Set max transparency that we paint everything with. |
void |
setColor(java.awt.Color c)
Override to set all colors to one with modified transparency. |
boolean |
tileImage(loaded_image pattern,
int x,
int y,
int w,
int h)
Override tiled image drawing, modifying transparency. |
| 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 |
protected int _alpha_value
protected int alpha_mask
protected java.awt.image.ImageFilter trans_filter
| Constructor Detail |
public transparent_drawable(java.awt.Graphics wrappee,
int alph)
Graphics - wrappee the Graphics object we wrap.int - alph the minimum alpha value (0 = fully transparent,
255 = fully opaque) that this drawable draws in.public transparent_drawable(java.awt.Graphics wrappee)
Graphics - wrappee the Graphics object we wrap.
public transparent_drawable(drawable wrappee,
int alph)
drawable - wrappee the drawable object we wrap.int - alph the minimum alpha value (0 = fully transparent,
255 = fully opaque) that this drawable draws in.public transparent_drawable(drawable wrappee)
drawable - wrappee the drawable object we wrap.| Method Detail |
public int alpha_factor()
public void set_alpha_value(int a)
protected java.awt.Color apply_alpha(java.awt.Color c)
Color - c the color to be transformed.public java.awt.Graphics create()
public java.awt.Graphics create(int x,
int y,
int w,
int h)
int - x x origin for new drawable.int - y y origin for new drawable.int - w width of new drawable.int - h height of new drawable.public void setColor(java.awt.Color c)
Color - c base color we are setting current color to.protected java.awt.Image make_trans(java.awt.Image from_img)
Image - from_img the original image.
public boolean drawImage(java.awt.Image img,
int x,
int y,
java.awt.image.ImageObserver observer)
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.ImageObserver - observer observer to notify us of progress drawing
the Image
public boolean drawImage(java.awt.Image img,
int x,
int y,
int w,
int h,
java.awt.image.ImageObserver obs)
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 that image will be scaled to.int - h height that image will be scaled to.ImageObserver - observer observer to notify us of progress drawing
the Image
public boolean drawImage(java.awt.Image img,
int x,
int y,
java.awt.Color bgcolor,
java.awt.image.ImageObserver obs)
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.ImageObserver - observer observer to notify us of progress drawing
the Image
public boolean drawImage(java.awt.Image img,
int x,
int y,
int w,
int h,
java.awt.Color bgcolor,
java.awt.image.ImageObserver obs)
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 that image will be scaled to.int - h height that image will be scaled to.Color - bgcolor background color.ImageObserver - observer observer to notify us of progress drawing
the Image
public boolean tileImage(loaded_image pattern,
int x,
int y,
int w,
int h)
loaded_image - pattern the pattern we tile with.int - x x position to place the tiling at.int - y y position to place the tiling at.int - w width of tiled area.int - h height of tiled area.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||