|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Bounds
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 |
|---|
double getLeft()
isSetLeft(),
unsetLeft(),
setLeft(double),
AttributePackage.getBounds_Left()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()void unsetLeft()
Left' attribute.
isSetLeft(),
getLeft(),
setLeft(double)boolean isSetLeft()
Left' attribute is set.
unsetLeft(),
getLeft(),
setLeft(double)double getTop()
isSetTop(),
unsetTop(),
setTop(double),
AttributePackage.getBounds_Top()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()void unsetTop()
Top' attribute.
isSetTop(),
getTop(),
setTop(double)boolean isSetTop()
Top' attribute is set.
unsetTop(),
getTop(),
setTop(double)double getWidth()
isSetWidth(),
unsetWidth(),
setWidth(double),
AttributePackage.getBounds_Width()void setWidth(double value)
Width' attribute.
Sets the width component of the
bounds.
value - the new value of the 'Width' attribute.isSetWidth(),
unsetWidth(),
getWidth()void unsetWidth()
Width' attribute.
isSetWidth(),
getWidth(),
setWidth(double)boolean isSetWidth()
Width' attribute is set.
unsetWidth(),
getWidth(),
setWidth(double)double getHeight()
isSetHeight(),
unsetHeight(),
setHeight(double),
AttributePackage.getBounds_Height()void setHeight(double value)
Height' attribute.
Sets the height component of the
bounds.
value - the new value of the 'Height' attribute.isSetHeight(),
unsetHeight(),
getHeight()void unsetHeight()
Height' attribute.
isSetHeight(),
getHeight(),
setHeight(double)boolean isSetHeight()
Height' attribute is set.
unsetHeight(),
getHeight(),
setHeight(double)void adjust(Insets ins)
ins - Bounds adjustedInstance(Insets ins)
ins -
void delta(double dLeft,
double dTop,
double dWidth,
double dHeight)
dLeft - dTop - dWidth - dHeight -
void translate(double dTranslateX,
double dTranslateY)
dX - dY -
Bounds translateInstance(double dTranslateX,
double dTranslateY)
dTranslateX - dTranslateY -
void scale(double dScale)
dScale - Bounds scaledInstance(double dScale)
dScale - The scaling factor
void set(double dLeft,
double dTop,
double dWidth,
double dHeight)
dLeft - dTop - dWidth - dHeight - void updateFrom(Location[] loa)
loa - boolean contains(Location lo)
lo -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||