|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
A representation of the model object 'Bounds'. This type defines the bounds of an element.
The following features are supported:
AttributePackage.getBounds()| Method Summary | |
void |
adjust(Insets ins)
Causes the internal (left,right,width,height) values to be scaled by a the specified Insets |
Bounds |
adjustedInstance(Insets ins)
Creates a new 'Bounds' instance by adjusting the existing 'Bounds' instance using the given 'Insets' NOTE: Manually written |
boolean |
contains(Location lo)
Returns if the given point is within this bounds. |
void |
delta(double dLeft,
double dTop,
double dWidth,
double dHeight)
Adds a 'delta' value to the existing member variables and applies it to the current instance |
double |
getHeight()
Returns the value of the 'Height' attribute. |
double |
getLeft()
Returns the value of the 'Left' attribute. |
double |
getTop()
Returns the value of the 'Top' attribute. |
double |
getWidth()
Returns the value of the 'Width' attribute. |
boolean |
isSetHeight()
Returns whether the value of the ' Height' attribute is set. |
boolean |
isSetLeft()
Returns whether the value of the ' Left' attribute is set. |
boolean |
isSetTop()
Returns whether the value of the ' Top' attribute is set. |
boolean |
isSetWidth()
Returns whether the value of the ' Width' attribute is set. |
void |
scale(double dScale)
Causes the internal (left,right,width,height) values to be scaled by a relative (dScale) value |
Bounds |
scaledInstance(double dScale)
Returns a new Bounds instance with scaled members |
void |
set(double dLeft,
double dTop,
double dWidth,
double dHeight)
A convenience method provided to update all members of an existing instance |
void |
setHeight(double value)
Sets the value of the ' Height' attribute. |
void |
setLeft(double value)
Sets the value of the ' Left' attribute. |
void |
setTop(double value)
Sets the value of the ' Top' attribute. |
void |
setWidth(double value)
Sets the value of the ' Width' attribute. |
void |
translate(double dTranslateX,
double dTranslateY)
Causes the internal (left,right) location to be translated by a relative value of (dTranslateX, dTranslateY) |
Bounds |
translateInstance(double dTranslateX,
double dTranslateY)
Creates a new 'Bounds' instance by translate the existing 'Bounds' instance using given offsets. |
void |
unsetHeight()
Unsets the value of the ' Height' attribute. |
void |
unsetLeft()
Unsets the value of the ' Left' attribute. |
void |
unsetTop()
Unsets the value of the ' Top' attribute. |
void |
unsetWidth()
Unsets the value of the ' Width' attribute. |
void |
updateFrom(Location[] loa)
Updates an existing Bounds instance to encompass the polygon specified by a given set of points |
| Methods inherited from interface org.eclipse.emf.ecore.EObject |
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eIsProxy, eIsSet, eResource, eSet, eUnset |
| Methods inherited from interface org.eclipse.emf.common.notify.Notifier |
eAdapters, eDeliver, eNotify, eSetDeliver |
| Method Detail |
public double getLeft()
isSetLeft(),
unsetLeft(),
setLeft(double),
AttributePackage.getBounds_Left()public void setLeft(double value)
Left' attribute.
Sets the Left co-ord of the Top Left
Corner of chart element
value - the new value of the 'Left' attribute.isSetLeft(),
unsetLeft(),
getLeft()public void unsetLeft()
Left' attribute.
isSetLeft(),
getLeft(),
setLeft(double)public boolean isSetLeft()
Left' attribute is set.
unsetLeft(),
getLeft(),
setLeft(double)public double getTop()
isSetTop(),
unsetTop(),
setTop(double),
AttributePackage.getBounds_Top()public void setTop(double value)
Top' attribute.
Sets the Top co-ord of the Top Left
Corner of chart element
value - the new value of the 'Top' attribute.isSetTop(),
unsetTop(),
getTop()public void unsetTop()
Top' attribute.
isSetTop(),
getTop(),
setTop(double)public boolean isSetTop()
Top' attribute is set.
unsetTop(),
getTop(),
setTop(double)public double getWidth()
isSetWidth(),
unsetWidth(),
setWidth(double),
AttributePackage.getBounds_Width()public void setWidth(double value)
Width' attribute.
Sets the width component of the
bounds.
value - the new value of the 'Width' attribute.isSetWidth(),
unsetWidth(),
getWidth()public void unsetWidth()
Width' attribute.
isSetWidth(),
getWidth(),
setWidth(double)public boolean isSetWidth()
Width' attribute is set.
unsetWidth(),
getWidth(),
setWidth(double)public double getHeight()
isSetHeight(),
unsetHeight(),
setHeight(double),
AttributePackage.getBounds_Height()public void setHeight(double value)
Height' attribute.
Sets the height component of the
bounds.
value - the new value of the 'Height' attribute.isSetHeight(),
unsetHeight(),
getHeight()public void unsetHeight()
Height' attribute.
isSetHeight(),
getHeight(),
setHeight(double)public boolean isSetHeight()
Height' attribute is set.
unsetHeight(),
getHeight(),
setHeight(double)public void adjust(Insets ins)
ins - public Bounds adjustedInstance(Insets ins)
ins -
public void delta(double dLeft,
double dTop,
double dWidth,
double dHeight)
dLeft - dTop - dWidth - dHeight -
public void translate(double dTranslateX,
double dTranslateY)
public Bounds translateInstance(double dTranslateX,
double dTranslateY)
dTranslateX - dTranslateY -
public void scale(double dScale)
dScale - public Bounds scaledInstance(double dScale)
dScale - The scaling factor
public void set(double dLeft,
double dTop,
double dWidth,
double dHeight)
dLeft - dTop - dWidth - dHeight - public void updateFrom(Location[] loa)
loa - public boolean contains(Location lo)
lo -
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||