|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface provides the API for something that can be part of an interactor image composition. These objects have a size and position, and provide an operation to draw themselves on request. In addition, the object can optionally advertise one or more feature points. These are significant locations within themselves that can be used for alignment.
composer
Method Summary | |
boolean |
can_set_h()
Does the object support setting it's height to externally defined values? |
boolean |
can_set_w()
Does the object support setting it's width to externally defined values? |
void |
draw_self(drawable on_surf,
int at_x,
int at_y)
Draw the object on the given drawing surface at the given location. |
java.awt.Point |
feature_point(int indx)
Return the feature point corresponding to a given feature point index. |
int |
h()
Current height of the object. |
int |
num_feature_points()
The number of feature points that this object has. |
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. |
void |
set_x(int val)
Set the current x location of the object. |
void |
set_y(int val)
Set the current y location of the object. |
int |
w()
Current width of the object. |
int |
x()
Current x location of the object. |
int |
y()
Current y location of the object. |
Method Detail |
public int x()
public void set_x(int val)
int
- val the new value for the x location of the objectpublic int y()
public void set_y(int val)
int
- val the new value for the y location of the objectpublic 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 num_feature_points()
public java.awt.Point feature_point(int indx)
int
- indx the index of the point being requested.public void draw_self(drawable on_surf, int at_x, int at_y)
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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |