|
|||||||||
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 | +--sub_arctic.style.op2_placement_rule
This abstract class provides most of the mechanism for a composition placement rule computing an equation with two referents (operands).
composer
,
composition_part
Field Summary | |
protected int |
_ref_coord2
Designator for the coordinate value within the second referent object. |
protected int |
_ref_num2
Number of the part, parameter, or constant being refered to in the second referent. |
protected int |
_ref_obj2
Designator for the object our second operand refers to (second referent object). |
Fields inherited from class sub_arctic.style.op1_placement_rule |
_ref_coord1,
_ref_num1,
_ref_obj1 |
Constructor Summary | |
op2_placement_rule(int referent1,
int referent_num1,
int referent_coord1,
int referent2,
int referent_num2,
int referent_coord2)
Full constructor. |
Method Summary | |
abstract int |
eval(composer comp_obj)
Evaluate the rule to produce a value. |
int |
get_op2(composer comp_obj)
Fetch the up-to-date value of the second referent (operand) for this rule. |
int |
ref_coord2()
Designator for the coordinate value within the second referent object. |
int |
ref_num2()
Number of the part, parameter, or constant being refered to in the second referent. |
int |
ref_obj2()
Designator for the object our second operand refers to (second referent object). |
void |
set_ref_coord2(int val)
Set the designator for the coordinate value within the second referent object. |
void |
set_ref_num2(int val)
Set the number of the part, parameter, or constant being refered to in the second referent. |
void |
set_ref_obj2(int val)
Set the Designator for the object our second operand refers to (second referent object). |
Methods inherited from class sub_arctic.style.op1_placement_rule |
get_op1,
ref_coord1,
ref_num1,
ref_obj1,
set_ref_coord1,
set_ref_num1,
set_ref_obj1 |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected int _ref_obj2
protected int _ref_num2
protected int _ref_coord2
Constructor Detail |
public op2_placement_rule(int referent1, int referent_num1, int referent_coord1, int referent2, int referent_num2, int referent_coord2)
int
- referent1 designator for first referent object. This
must be one of PART, PARM, or CONST.int
- refernent_num1 Number of part or parameter being refered to
(or a constant value if referent == CONST).int
- referent_coord1 designator for which coordinate of the first
referent is being refered to.
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.int
- referent2 designator for second referent object. This
must be one of PART, PARM, or CONST.int
- refernent_num2 Number of part or parameter being refered to
(or a constant value if referent == CONST).int
- referent_coord2 designator for which coordinate of the second
referent is being refered to.
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_obj2()
public void set_ref_obj2(int val)
int
- val the new designator constant.public int ref_num2()
public void set_ref_num2(int val)
int
- val the new number.public int ref_coord2()
public void set_ref_coord2(int val)
int
- val the new designator constant.public int get_op2(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 |