|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--sub_arctic.style.op1_placement_rule
This abstract class provides most of the mechanism for a composition placement rule computing an equation with one referent (operand).
composer
,
composition_part
Field Summary | |
protected int |
_ref_coord1
Designator for the coordinate value within the referent object that we are expressed relative to. |
protected int |
_ref_num1
Number of the part, parameter, or constant being refered to in the referent. |
protected int |
_ref_obj1
Designator for the object we our single operand refers to (the referent object). |
Constructor Summary | |
op1_placement_rule(int referent,
int referent_num,
int referent_coord)
Full constructor. |
Method Summary | |
abstract int |
eval(composer comp_obj)
Evaluate the rule to produce a value. |
int |
get_op1(composer comp_obj)
Fetch the up-to-date value of the single referent (operand) for this rule. |
int |
ref_coord1()
Designator for the coordinate value within the referent object that we are expressed relative to. |
int |
ref_num1()
Number of the part, parameter, or constant being refered to in the referent. |
int |
ref_obj1()
Designator for the object we our single operand refers to (the referent object). |
void |
set_ref_coord1(int val)
Set the Designator for the coordinate value within the referent object that we are expressed relative to. |
void |
set_ref_num1(int val)
Set the number of the part, parameter, or constant being refered to in the referent. |
void |
set_ref_obj1(int val)
Set the Designator for the object we our single operand refers to (the referent object). |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected int _ref_obj1
protected int _ref_num1
protected int _ref_coord1
Constructor Detail |
public op1_placement_rule(int referent, int referent_num, int referent_coord)
int
- referent designator for which object we are computed
from. This must be one of PART, PARM, or CONST.int
- refernent_num Number of part or parameter being refered to
(or a constant value if referent == CONST).int
- referent_coord designator for which coordinate of the referent
This must either be one of LEFT, RIGHT, TOP,
BOTTOM, HCENTER, or VCENTER, or it must be
constructed from a feature point number (FPN)
using either: (FPN << FEATURE_SHIFT) | FEATURE_X
to designate the x value of a feature point,
or as (FPN << FEATURE_SHIFT) | FEATURE_Y to
designate the y value of a feature point.Method Detail |
public int ref_obj1()
public void set_ref_obj1(int val)
int
- val the new designator constant.public int ref_num1()
public void set_ref_num1(int val)
int
- val the new number.public int ref_coord1()
public void set_ref_coord1(int val)
int
- val the new designator constant.public int get_op1(composer comp_obj)
composer
- comp_obj the composer object doing the evaluation.
This object provides access the referent and
keeps bookkeeping regarding whether it has
already been computed.public abstract int eval(composer comp_obj)
composer
- comp_obj the composer object doing the evaluation.
This object provides access the value of other
parts, and to the set of parameters to the
composition. It also keeps some of the
evauation bookkeeping.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |