|
|||||||||
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
This class provides an abstract base class for several of the common *_composition_part classes.
composer
Field Summary | |
protected java.awt.Point[] |
_feature_points
Feature point array for this object. |
protected int |
_x
Current x location of the object. |
protected int |
_y
Current y location of the object. |
Constructor Summary | |
composition_part_base()
|
Method Summary | |
boolean |
can_set_h()
Can we set the height of the object. |
boolean |
can_set_w()
Can we set the width of the object. |
abstract 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. |
abstract int |
h()
Current height of the object. |
int |
num_feature_points()
The number of feature points that this object has. |
void |
set_feature_points(java.awt.Point[] pts)
Set the feature point array for this object. |
void |
set_h(int val)
Set the height of the object. |
void |
set_w(int val)
Set the width of the object. |
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. |
java.lang.String |
toString()
Convert to a human readable string suitable for a debugging dump. |
abstract int |
w()
Current width of the object. |
int |
x()
Current x location of the object. |
int |
y()
Current y location of the object. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
protected int _x
protected int _y
protected java.awt.Point[] _feature_points
Constructor Detail |
public composition_part_base()
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 abstract int w()
public boolean can_set_w()
public void set_w(int val)
int
- val new value for w.public abstract int h()
public boolean can_set_h()
public void set_h(int val)
int
- val new value for h.public void set_feature_points(java.awt.Point[] pts)
Point[]
- pts the new set of feature points (or null for no points).public int num_feature_points()
In our case the number of feature points is determined by the internal _feature_points array.
_feature_points
,
set_feature_points(java.awt.Point[])
public java.awt.Point feature_point(int indx)
In our case the features points are controlled by the internal _feature_points array.
int
- indx the index of the point being requested._feature_points
,
set_feature_points(java.awt.Point[])
public abstract 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.public java.lang.String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |