|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--sub_arctic.constraints.ext_objpart_encoding
Class to provide a non-standard object/part encoding. Unlike standard references, these may refer to arbitrary objects and not just the local neighborhood. Either non-standard (given by a part number) or standard parts (given by one of the standard part codes plus an orientation value) may be used with the reference.
Methods are provided for creating a new instance from an existing instance by filling in the part portion only. This allows a cleaner notation (i.e., EXT.OBJ(other).W()).
Field Summary | |
protected int |
_orientation
The orientation of this part. |
protected interactor |
_ref_obj
The object being referenced. |
protected int |
_ref_part
Encoding of the referenced part. |
protected boolean |
_uses_std_part
Indication of whether the referenced part is one of the standard ones (i.e,. |
Constructor Summary | |
ext_objpart_encoding(interactor obj,
int part_number)
Constructor for a non-local reference to a non-standard part. |
|
ext_objpart_encoding(interactor obj,
int part_code,
int orient_code)
Constructor for a non-local reference to a standard part. |
Method Summary | |
ext_objpart_encoding |
BOTTOM()
Method returning an instance designating the y2 part of this object. |
ext_objpart_encoding |
ENABLED()
Method returning an instance designating the "enabled" part of this object |
ext_objpart_encoding |
H()
Method returning an instance designating the h part of this object |
ext_objpart_encoding |
HCENTER()
Method returning an instance designating the horizontal center part of this object |
ext_objpart_encoding |
LEFT()
Method returning an instance designating the x part of this object. |
int |
orientation()
The orientation of this part. |
ext_objpart_encoding |
PART_A()
Method returning an instance designating the "part_a" part of this object. |
ext_objpart_encoding |
PART_B()
Method returning an instance designating the "part_b" part of this object. |
ext_objpart_encoding |
PART(int part_num)
Method returning an instance designating an arbitrary part of the object being referenced by this object. |
interactor |
ref_obj()
The object being referenced. |
int |
ref_part()
Encoding of the referenced part. |
ext_objpart_encoding |
RIGHT()
Method returning an instance designating the x2 part of this object. |
ext_objpart_encoding |
TOP()
Method returning an instance designating the y part of this object. |
boolean |
uses_std_part()
Indication of whether the referenced part is one of the standard ones (i.e,. |
ext_objpart_encoding |
VCENTER()
Method returning an instance designating the vertical center part of this object |
ext_objpart_encoding |
VISIBLE()
Method returning an instance designating the "visible" part of this object |
ext_objpart_encoding |
W()
Method returning an instance designating the w part of this object |
ext_objpart_encoding |
X()
Method returning an instance designating the x part of this object |
ext_objpart_encoding |
X1()
Method returning an instance designating the x part of this object. |
ext_objpart_encoding |
X2()
Method returning an instance designating the x2 part of this object |
ext_objpart_encoding |
Y()
Method returning an instance designating the y part of this object |
ext_objpart_encoding |
Y1()
Method returning an instance designating the y part of this object. |
ext_objpart_encoding |
Y2()
Method returning an instance designating the y2 part of this object |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected boolean _uses_std_part
protected interactor _ref_obj
protected int _orientation
protected int _ref_part
Constructor Detail |
public ext_objpart_encoding(interactor obj, int part_code, int orient_code)
interactor
- obj object being referenced.int
- part_code value for part encoding. This must be between
zero and PARTCODE_MAX. Values outside this range
will be silently truncated.int
- orient_code code for the orientation of this part. Should be
one of HORIZONTAL, VERTICAL, or NOT_ORIENTEDpublic ext_objpart_encoding(interactor obj, int part_number)
interactor
- obj object being referenced.int
- part_number part number for non-standard part being referenced.
Note: the PARTCODE_* values should NOT be
used for this parameter.Method Detail |
public boolean uses_std_part()
public interactor ref_obj()
public int orientation()
public int ref_part()
public ext_objpart_encoding X()
public ext_objpart_encoding X1()
public ext_objpart_encoding LEFT()
public ext_objpart_encoding Y()
public ext_objpart_encoding Y1()
public ext_objpart_encoding TOP()
public ext_objpart_encoding X2()
public ext_objpart_encoding RIGHT()
public ext_objpart_encoding Y2()
public ext_objpart_encoding BOTTOM()
public ext_objpart_encoding W()
public ext_objpart_encoding H()
public ext_objpart_encoding HCENTER()
public ext_objpart_encoding VCENTER()
public ext_objpart_encoding VISIBLE()
public ext_objpart_encoding ENABLED()
public ext_objpart_encoding PART_A()
public ext_objpart_encoding PART_B()
public ext_objpart_encoding PART(int part_num)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |