|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--sub_arctic.style.composition_part_base | +--sub_arctic.style.blank_base
This abstract class provides functionallity common to several classes of blanks. In particular it maintains both internal and extern geometry.
Field Summary | |
protected int |
_draw_area_h
Height of interior drawing area. |
protected int |
_draw_area_w
Width of interior drawing area. |
protected int |
_draw_area_x_off
Offset from left edge of bounding box to the left edge of the interior drawing area. |
protected int |
_draw_area_y_off
Offset from top edge of bounding box to the top edge of the interior drawing area. |
protected int |
_h
Height of the blank image. |
protected int |
_w
Width of the blank image. |
Fields inherited from class sub_arctic.style.composition_part_base |
_feature_points,
_x,
_y |
Constructor Summary | |
blank_base()
|
Method Summary | |
blank |
build(int size_kind,
int req_w,
int req_h)
Create a new blank of a given size using this one as a protype. |
abstract blank |
build(int w_size_kind,
int req_w,
int h_size_kind,
int req_h)
Build a new blank like this one, but with a different size. |
boolean |
can_set_h()
Indicate whether this object supports setting height. |
boolean |
can_set_w()
Indicate whether this object supports setting width. |
int |
draw_area_h()
Height of interior drawing area. |
int |
draw_area_w()
Width of interior drawing area. |
int |
draw_area_x_off()
Offset from left edge of bounding box to the left edge of the interior drawing area. |
int |
draw_area_y_off()
Offset from top edge of bounding box to the top edge of the interior drawing area. |
abstract void |
draw_self(drawable on_surface,
int at_x,
int at_y)
Draw the image of the blank on the given drawing surface with the top left corner of its bounding box at the given location. |
int |
h()
Height of the blank image. |
void |
set_draw_area_h(int val)
Set the height of interior drawing area. |
void |
set_draw_area_w(int val)
Set the width of interior drawing area. |
void |
set_h(int val)
Set the height of this object to the given value. |
void |
set_w(int val)
Set the width of this object to the given value. |
int |
w()
Width of the blank image. |
Methods inherited from class sub_arctic.style.composition_part_base |
feature_point,
num_feature_points,
set_feature_points,
set_x,
set_y,
toString,
x,
y |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
protected int _w
protected int _h
protected int _draw_area_x_off
protected int _draw_area_y_off
protected int _draw_area_w
protected int _draw_area_h
Constructor Detail |
public blank_base()
Method Detail |
public int w()
public boolean can_set_w()
public void set_w(int val)
public int h()
public boolean can_set_h()
public void set_h(int val)
public int draw_area_x_off()
public int draw_area_y_off()
public int draw_area_w()
public void set_draw_area_w(int val)
int
- val the new width of the interior drawing area (must be >= 0).public int draw_area_h()
public void set_draw_area_h(int val)
int
- val the new height of the interior drawing area (must be >= 0).public abstract void draw_self(drawable on_surface, int at_x, int at_y)
drawable
- on_surface the drawing surface to draw on.int
- at_x the x location to place the image at.int
- at_y the y location to place the image at.public blank build(int size_kind, int req_w, int req_h)
int
- size_kind either EXTERIOR_SIZED or INTERIOR_SIZED to indicate
whether the given size request is for the whole image
or the interior drawing area within the blank.
EXTERIOR_SIZED requests below a minimum size may
result in creation of a blank at the (larger) minimum
size instead of the requested size.int
- req_w requested width.int
- req_h requested height.public abstract blank build(int w_size_kind, int req_w, int h_size_kind, int req_h)
int
- w_size_kind either EXTERIOR_SIZED or INTERIOR_SIZED to indicate
whether the given size request is for the external
width of the whole blank or the interior drawing
width within the blank. EXTERIOR_SIZED requests
below a minimum size may result in creation of a
blank at the (larger) minimum size instead of the
requested size.int
- req_w requested width.int
- h_size_kind either EXTERIOR_SIZED or INTERIOR_SIZED to indicate
whether the given size request is for the external
width of the whole blank or the interior drawing
width within the blank. EXTERIOR_SIZED requests
below a minimum size may result in creation of a
blank at the (larger) minimum size instead of the
requested size.int
- req_h requested height.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |