public interface Locatable extends Settable
This interface is generally implemented by attributes of objects in a model and is used by the Vergil user interface to store the location of objects in the visual editor.
Location
Green (cxh) |
Green (cxh) |
Settable.Visibility
EXPERT, FULL, NONE, NOT_EDITABLE
Modifier and Type | Method and Description |
---|---|
double[] |
getLocation()
Get the location in some cartesian coordinate system.
|
void |
setLocation(double[] location)
Set the location in some cartesian coordinate system, and notify
the container and any value listeners of the new location.
|
addValueListener, getDefaultExpression, getDisplayName, getExpression, getValueAsString, getVisibility, removeValueListener, setExpression, setVisibility, validate
description, getContainer, getFullName, getName, getName, setName
double[] getLocation()
setLocation(double [])
void setLocation(double[] location) throws IllegalActionException
location
- The location.IllegalActionException
- If the location is rejected.getLocation()