de.cau.cs.kieler.kiml.klayoutdata.impl
Class KShapeLayoutImpl

java.lang.Object
  extended by org.eclipse.emf.common.notify.impl.BasicNotifierImpl
      extended by org.eclipse.emf.ecore.impl.BasicEObjectImpl
          extended by org.eclipse.emf.ecore.impl.EObjectImpl
              extended by de.cau.cs.kieler.core.kgraph.impl.EMapPropertyHolderImpl
                  extended by de.cau.cs.kieler.core.kgraph.impl.KGraphDataImpl
                      extended by de.cau.cs.kieler.kiml.klayoutdata.impl.KShapeLayoutImpl
All Implemented Interfaces:
EMapPropertyHolder, KGraphData, IPropertyHolder, KShapeLayout, Notifier, EObject, InternalEObject

public class KShapeLayoutImpl
extends KGraphDataImpl
implements KShapeLayout

An implementation of the model object 'KShape Layout'.

The following features are implemented:

Rating yellow
(2011-03-14) reviewed by cmot, cds
Generated:
This code was automatically generated.

Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
BasicEObjectImpl.EPropertiesHolder, BasicEObjectImpl.EPropertiesHolderBaseImpl, BasicEObjectImpl.EPropertiesHolderImpl
 
Nested classes/interfaces inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
BasicNotifierImpl.EAdapterList<E extends Object & Adapter>, BasicNotifierImpl.EObservableAdapterList
 
Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.InternalEObject
InternalEObject.EStore
 
Field Summary
protected  float height
          The cached value of the 'Height' attribute.
protected static float HEIGHT_EDEFAULT
          The default value of the 'Height' attribute.
protected  KInsets insets
          The cached value of the 'Insets' containment reference.
protected  float width
          The cached value of the 'Width' attribute.
protected static float WIDTH_EDEFAULT
          The default value of the 'Width' attribute.
protected  float xpos
          The cached value of the 'Xpos' attribute.
protected static float XPOS_EDEFAULT
          The default value of the 'Xpos' attribute.
protected  float ypos
          The cached value of the 'Ypos' attribute.
protected static float YPOS_EDEFAULT
          The default value of the 'Ypos' attribute.
 
Fields inherited from class de.cau.cs.kieler.core.kgraph.impl.EMapPropertyHolderImpl
persistentEntries, properties
 
Fields inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAdapters, eContainer, eContainerFeatureID, EDELIVER, EDYNAMIC_CLASS, eFlags, ELAST_EOBJECT_FLAG, ELAST_NOTIFIER_FLAG, eProperties, EPROXY
 
Fields inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
EVIRTUAL_GET, EVIRTUAL_IS_SET, EVIRTUAL_NO_VALUE, EVIRTUAL_SET, EVIRTUAL_UNSET
 
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject
EOPPOSITE_FEATURE_BASE
 
Constructor Summary
protected KShapeLayoutImpl()
           
 
Method Summary
 void applyVector(KVector pos)
          Set the position of this shape layout by applying the given vector.
 NotificationChain basicSetInsets(KInsets newInsets, NotificationChain msgs)
           
 KVector createVector()
          Create a vector from the position of this shape layout.
 Object eGet(int featureID, boolean resolve, boolean coreType)
           
 NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
           
 boolean eIsSet(int featureID)
           
 void eSet(int featureID, Object newValue)
           
protected  EClass eStaticClass()
           
 void eUnset(int featureID)
           
 float getHeight()
           
 KInsets getInsets()
           
 float getWidth()
           
 float getXpos()
           
 float getYpos()
           
 void setHeight(float newHeight)
           
 void setInsets(KInsets newInsets)
           
 void setPos(float newXpos, float newYpos)
          Set the position of this shape layout.
 void setSize(float newWidth, float newHeight)
          Set the size of this shape layout.
 void setWidth(float newWidth)
           
 void setXpos(float newXpos)
           
 void setYpos(float newYpos)
           
 String toString()
           
 
Methods inherited from class de.cau.cs.kieler.core.kgraph.impl.EMapPropertyHolderImpl
copyProperties, getAllProperties, getPersistentEntries, getProperties, getProperty, makePersistent, setProperty
 
Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAdapters, eBasicAdapters, eBasicProperties, eBasicSetContainer, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eInvoke, eIsProxy, eProperties, eSetClass, eSetDeliver, eSetProxyURI
 
Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
eAddVirtualValue, eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicRemoveFromContainerFeature, eBasicSetContainer, eComputeVirtualValuesCapacity, eContainer, eContainerAdapterArray, eContainingFeature, eContainmentFeature, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedOperationID, eDerivedOperationID, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicClass, eDynamicFeature, eDynamicFeatureID, eDynamicGet, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInverseRemove, eDynamicInvoke, eDynamicInvoke, eDynamicIsSet, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eHasSettings, eInternalResource, eInverseAdd, eInverseAdd, eInverseRemove, eInvocationDelegate, eInvoke, eIsSet, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eRemoveVirtualValue, eResolveProxy, eResource, eSet, eSetDirectResource, eSetResource, eSetStore, eSetting, eSettingDelegate, eSettings, eSetVirtualIndexBits, eSetVirtualValue, eSetVirtualValues, eStaticFeatureCount, eStaticOperationCount, eStore, eUnset, eURIFragmentSegment, eVirtualBitCount, eVirtualGet, eVirtualGet, eVirtualIndex, eVirtualIndexBits, eVirtualIsSet, eVirtualSet, eVirtualUnset, eVirtualValue, eVirtualValues
 
Methods inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
eBasicAdapterArray, eBasicHasAdapters, eNotificationRequired, eNotify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
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
 
Methods inherited from interface org.eclipse.emf.ecore.InternalEObject
eNotificationRequired
 

Field Detail

XPOS_EDEFAULT

protected static final float XPOS_EDEFAULT
The default value of the 'Xpos' attribute.

See Also:
getXpos(), Constant Field Values
Generated:
This code was automatically generated.
Ordered

xpos

protected float xpos
The cached value of the 'Xpos' attribute.

See Also:
getXpos()
Generated:
This code was automatically generated.
Ordered

YPOS_EDEFAULT

protected static final float YPOS_EDEFAULT
The default value of the 'Ypos' attribute.

See Also:
getYpos(), Constant Field Values
Generated:
This code was automatically generated.
Ordered

ypos

protected float ypos
The cached value of the 'Ypos' attribute.

See Also:
getYpos()
Generated:
This code was automatically generated.
Ordered

WIDTH_EDEFAULT

protected static final float WIDTH_EDEFAULT
The default value of the 'Width' attribute.

See Also:
getWidth(), Constant Field Values
Generated:
This code was automatically generated.
Ordered

width

protected float width
The cached value of the 'Width' attribute.

See Also:
getWidth()
Generated:
This code was automatically generated.
Ordered

HEIGHT_EDEFAULT

protected static final float HEIGHT_EDEFAULT
The default value of the 'Height' attribute.

See Also:
getHeight(), Constant Field Values
Generated:
This code was automatically generated.
Ordered

height

protected float height
The cached value of the 'Height' attribute.

See Also:
getHeight()
Generated:
This code was automatically generated.
Ordered

insets

protected KInsets insets
The cached value of the 'Insets' containment reference.

See Also:
getInsets()
Generated:
This code was automatically generated.
Ordered
Constructor Detail

KShapeLayoutImpl

protected KShapeLayoutImpl()

Generated:
This code was automatically generated.
Method Detail

eStaticClass

protected EClass eStaticClass()

Overrides:
eStaticClass in class KGraphDataImpl
Generated:
This code was automatically generated.

getXpos

public float getXpos()

Specified by:
getXpos in interface KShapeLayout
Returns:
the value of the 'Xpos' attribute.
See Also:
KShapeLayout.setXpos(float), KLayoutDataPackage.getKShapeLayout_Xpos()
Generated:
This code was automatically generated.

setXpos

public void setXpos(float newXpos)

Specified by:
setXpos in interface KShapeLayout
Parameters:
newXpos - the new value of the 'Xpos' attribute.
See Also:
KShapeLayout.getXpos()
Generated:
This code was automatically generated.

getYpos

public float getYpos()

Specified by:
getYpos in interface KShapeLayout
Returns:
the value of the 'Ypos' attribute.
See Also:
KShapeLayout.setYpos(float), KLayoutDataPackage.getKShapeLayout_Ypos()
Generated:
This code was automatically generated.

setYpos

public void setYpos(float newYpos)

Specified by:
setYpos in interface KShapeLayout
Parameters:
newYpos - the new value of the 'Ypos' attribute.
See Also:
KShapeLayout.getYpos()
Generated:
This code was automatically generated.

getWidth

public float getWidth()

Specified by:
getWidth in interface KShapeLayout
Returns:
the value of the 'Width' attribute.
See Also:
KShapeLayout.setWidth(float), KLayoutDataPackage.getKShapeLayout_Width()
Generated:
This code was automatically generated.

setWidth

public void setWidth(float newWidth)

Specified by:
setWidth in interface KShapeLayout
Parameters:
newWidth - the new value of the 'Width' attribute.
See Also:
KShapeLayout.getWidth()
Generated:
This code was automatically generated.

getHeight

public float getHeight()

Specified by:
getHeight in interface KShapeLayout
Returns:
the value of the 'Height' attribute.
See Also:
KShapeLayout.setHeight(float), KLayoutDataPackage.getKShapeLayout_Height()
Generated:
This code was automatically generated.

setHeight

public void setHeight(float newHeight)

Specified by:
setHeight in interface KShapeLayout
Parameters:
newHeight - the new value of the 'Height' attribute.
See Also:
KShapeLayout.getHeight()
Generated:
This code was automatically generated.

getInsets

public KInsets getInsets()

Specified by:
getInsets in interface KShapeLayout
Returns:
the value of the 'Insets' containment reference.
See Also:
KShapeLayout.setInsets(KInsets), KLayoutDataPackage.getKShapeLayout_Insets()
Generated:
This code was automatically generated.

basicSetInsets

public NotificationChain basicSetInsets(KInsets newInsets,
                                        NotificationChain msgs)

Generated:
This code was automatically generated.

setInsets

public void setInsets(KInsets newInsets)

Specified by:
setInsets in interface KShapeLayout
Parameters:
newInsets - the new value of the 'Insets' containment reference.
See Also:
KShapeLayout.getInsets()
Generated:
This code was automatically generated.

setPos

public void setPos(float newXpos,
                   float newYpos)
Set the position of this shape layout.

Specified by:
setPos in interface KShapeLayout
Parameters:
newXpos - the new x coordinate value
newYpos - the new y coordinate value
Not generated:
This code was hand-written.

applyVector

public void applyVector(KVector pos)
Set the position of this shape layout by applying the given vector.

Specified by:
applyVector in interface KShapeLayout
Parameters:
pos - the vector for the new position
Not generated:
This code was hand-written.

createVector

public KVector createVector()
Create a vector from the position of this shape layout.

Specified by:
createVector in interface KShapeLayout
Returns:
the position vector
Not generated:
This code was hand-written.

setSize

public void setSize(float newWidth,
                    float newHeight)
Set the size of this shape layout.

Specified by:
setSize in interface KShapeLayout
Parameters:
newWidth - the new width
newHeight - the new height
Not generated:
This code was hand-written.

eInverseRemove

public NotificationChain eInverseRemove(InternalEObject otherEnd,
                                        int featureID,
                                        NotificationChain msgs)

Overrides:
eInverseRemove in class EMapPropertyHolderImpl
Generated:
This code was automatically generated.

eGet

public Object eGet(int featureID,
                   boolean resolve,
                   boolean coreType)

Specified by:
eGet in interface InternalEObject
Overrides:
eGet in class EMapPropertyHolderImpl
Generated:
This code was automatically generated.

eSet

public void eSet(int featureID,
                 Object newValue)

Specified by:
eSet in interface InternalEObject
Overrides:
eSet in class EMapPropertyHolderImpl
Generated:
This code was automatically generated.

eUnset

public void eUnset(int featureID)

Specified by:
eUnset in interface InternalEObject
Overrides:
eUnset in class EMapPropertyHolderImpl
Generated:
This code was automatically generated.

eIsSet

public boolean eIsSet(int featureID)

Specified by:
eIsSet in interface InternalEObject
Overrides:
eIsSet in class EMapPropertyHolderImpl
Generated:
This code was automatically generated.

toString

public String toString()

Overrides:
toString in class BasicEObjectImpl
Not generated:
This code was hand-written.