|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface KShapeLayout
A representation of the model object 'Shape Layout'. This layout data contains information for graph elements for which rectangular shape is assumed for layout, such as nodes, ports, and labels. Each graph element has either a shape layout or an edge layout attached. The shape layout of nodes has insets.
Layout coordinates for nodes, ports, and node labels are relative to the parent
node. The insets of the parent node are not included in the relative coordinates
of child nodes, but they are included in the relative coordinates of ports and
node labels. For edge labels the rules defined in KEdgeLayout
apply.
Port labels are relative to their ports.
The following features are supported:
KLayoutDataPackage.getKShapeLayout()
Method Summary | |
---|---|
void |
applyVector(KVector pos)
Set the position of this shape layout by applying the given vector. |
KVector |
createVector()
Create a vector from the position of this shape layout. |
float |
getHeight()
Returns the value of the 'Height' attribute. |
KInsets |
getInsets()
Returns the value of the 'Insets' containment reference. |
float |
getWidth()
Returns the value of the 'Width' attribute. |
float |
getXpos()
Returns the value of the 'Xpos' attribute. |
float |
getYpos()
Returns the value of the 'Ypos' attribute. |
void |
setHeight(float value)
Sets the value of the ' Height ' attribute. |
void |
setInsets(KInsets value)
Sets the value of the ' Insets ' containment reference. |
void |
setPos(float x,
float y)
Set the position of this shape layout. |
void |
setSize(float width,
float height)
Set the size of this shape layout. |
void |
setWidth(float value)
Sets the value of the ' Width ' attribute. |
void |
setXpos(float value)
Sets the value of the ' Xpos ' attribute. |
void |
setYpos(float value)
Sets the value of the ' Ypos ' attribute. |
Methods inherited from interface de.cau.cs.kieler.core.kgraph.EMapPropertyHolder |
---|
getPersistentEntries, getProperties, makePersistent |
Methods inherited from interface org.eclipse.emf.ecore.EObject |
---|
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset |
Methods inherited from interface org.eclipse.emf.common.notify.Notifier |
---|
eAdapters, eDeliver, eNotify, eSetDeliver |
Methods inherited from interface de.cau.cs.kieler.core.properties.IPropertyHolder |
---|
copyProperties, getAllProperties, getProperty, setProperty |
Method Detail |
---|
float getXpos()
"0.0f"
.
setXpos(float)
,
KLayoutDataPackage.getKShapeLayout_Xpos()
default | = | 0.0f |
void setXpos(float value)
Xpos
' attribute.
value
- the new value of the 'Xpos' attribute.getXpos()
float getYpos()
"0.0f"
.
setYpos(float)
,
KLayoutDataPackage.getKShapeLayout_Ypos()
default | = | 0.0f |
void setYpos(float value)
Ypos
' attribute.
value
- the new value of the 'Ypos' attribute.getYpos()
float getWidth()
"0.0f"
.
setWidth(float)
,
KLayoutDataPackage.getKShapeLayout_Width()
default | = | 0.0f |
void setWidth(float value)
Width
' attribute.
value
- the new value of the 'Width' attribute.getWidth()
float getHeight()
"0.0f"
.
setHeight(float)
,
KLayoutDataPackage.getKShapeLayout_Height()
default | = | 0.0f |
void setHeight(float value)
Height
' attribute.
value
- the new value of the 'Height' attribute.getHeight()
KInsets getInsets()
If the meaning of the 'Insets' containment reference isn't clear, there really should be more of a description here...
setInsets(KInsets)
,
KLayoutDataPackage.getKShapeLayout_Insets()
containment | = | true |
void setInsets(KInsets value)
Insets
' containment reference.
value
- the new value of the 'Insets' containment reference.getInsets()
void setPos(float x, float y)
x
- the new x coordinate valuey
- the new y coordinate value
void applyVector(KVector pos)
pos
- the vector for the new position
posType | = | de.cau.cs.kieler.kiml.klayoutdata.KVector |
KVector createVector()
type | = | de.cau.cs.kieler.kiml.klayoutdata.KVector |
void setSize(float width, float height)
width
- the new widthheight
- the new height
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |