|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Specifies the common methods of the CompositeViewRuler and the
CompositeViewGrid.
CompositeViewGrid,
CompositeViewRuler| Field Summary | |
static java.lang.String |
METRIC_UNIT_DESC
Name of the unit Attribute |
static java.lang.String |
VISIBLE_DESC
Constant holding a name for the visibility attribute. |
| Fields inherited from interface com.tensegrity.generic.attribute.AttributableOnSet |
TREE_SUBSET_POSTFIX |
| Method Summary | |
CoordinateSystemMetric |
getMetric()
Returns the used CoordinateSystemMetric of this ruler. |
int |
getUnit()
Returns the metric unit used by this measurement object. |
boolean |
isVisible()
Returns the visibility of this ruler. |
void |
setMetric(CoordinateSystemMetric metric)
Sets the metric used by this ruler to the given CoordinateSystemMetric. |
void |
setUnit(int unit)
Sets the unit to be used for the concrete measurement object. |
void |
setVisible(boolean vis)
Sets the visibility of this ruler. |
| Methods inherited from interface com.tensegrity.generic.attribute.AttributableOnSet |
addAttributableOnSetListener, areAttributableEventsEnabled, disableAttributableEvents, enableAttributableEvents, getAttributes, getAttributesTree, removeAttributableOnSetListener, setAttributes, setAttributesTree |
| Methods inherited from interface com.tensegrity.generic.attribute.Attributable |
getAttribute, getAttributeType, getAttributeValue, setAttribute, setAttributeValue |
| Field Detail |
public static final java.lang.String METRIC_UNIT_DESC
public static final java.lang.String VISIBLE_DESC
| Method Detail |
public boolean isVisible()
public void setVisible(boolean vis)
vis - the visibility.public int getUnit()
MetricConstants.
public void setUnit(int unit)
MetricConstants, e.g.
MetricConstants.CENTIMETER is a valid value.
unit - the unit to use. The default is
MetricConstants.CENTIMETER.public void setMetric(CoordinateSystemMetric metric)
CoordinateSystemMetric.
metric - the metric to use.public CoordinateSystemMetric getMetric()
CoordinateSystemMetric of this ruler.
CoordinateSystemMetric of this ruler.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||