sub_arctic.style
Class anchor_pt_comp_part
java.lang.Object
|
+--sub_arctic.style.composition_part_base
|
+--sub_arctic.style.anchor_pt_comp_part
- public class anchor_pt_comp_part
- extends composition_part_base
This class provides a composition_part which is a simple point. It produces
no output when drawn and always has size 0,0 (basically it just maintains
a position.
- See Also:
composer
Method Summary |
void |
draw_self(drawable on_surf,
int at_x,
int at_y)
Draw the object on the given drawing surface at the given location. |
int |
h()
Current height of the object. |
int |
w()
Current width of the object. |
Methods inherited from class sub_arctic.style.composition_part_base |
can_set_h,
can_set_w,
feature_point,
num_feature_points,
set_feature_points,
set_h,
set_w,
set_x,
set_y,
toString,
x,
y |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
anchor_pt_comp_part
public anchor_pt_comp_part(int x_pos,
int y_pos)
- Full constructor.
- Parameters:
int
- x_pos x position of this part.int
- y_pos y position of this part.
anchor_pt_comp_part
public anchor_pt_comp_part()
- Constructor with default position of 0,0.
w
public int w()
- Current width of the object. For this subclass this is always 0.
- Returns:
- int the width of the object
- Overrides:
- w in class composition_part_base
h
public int h()
- Current height of the object. For this subclass this is always 0.
- Returns:
- int the height of the object
- Overrides:
- h in class composition_part_base
draw_self
public void draw_self(drawable on_surf,
int at_x,
int at_y)
- Draw the object on the given drawing surface at the given location.
For this class we draw nothing.
- Parameters:
drawable
- on_surf the drawing surface to draw on.int
- at_x the x location to draw at.int
- at_y the y location to draw at.- Overrides:
- draw_self in class composition_part_base