Class LocationImpl
- java.lang.Object
-
- org.eclipse.emf.common.notify.impl.BasicNotifierImpl
-
- org.eclipse.emf.ecore.impl.BasicEObjectImpl
-
- org.eclipse.emf.ecore.impl.EObjectImpl
-
- org.eclipse.birt.chart.model.attribute.impl.LocationImpl
-
- All Implemented Interfaces:
Location,IChartObject,org.eclipse.emf.common.notify.Notifier,org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.InternalEObject
- Direct Known Subclasses:
Location3DImpl
public class LocationImpl extends org.eclipse.emf.ecore.impl.EObjectImpl implements Location
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EAdapterList<E extends java.lang.Object & org.eclipse.emf.common.notify.Adapter>, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EObservableAdapterList, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EScannableAdapterList
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description LocationcopyInstance()A convenient method to get an instance copy.static Location[]create(double[] xa, double[] ya)static Locationcreate(double dX, double dY)java.lang.ObjecteGet(int featureID, boolean resolve, boolean coreType)booleaneIsSet(int featureID)booleanequals(java.lang.Object obj)voideSet(int featureID, java.lang.Object newValue)voideUnset(int featureID)doublegetX()static double[]getXArray(Location[] loc)doublegetY()static double[]getYArray(Location[] loc)inthashCode()booleanisSetX()booleanisSetY()voidscale(double dScale)Causes the internal (x,y) values to be scaled by a relative (dScale) valuevoidset(double dX, double dY)A convenience method for defining member variables NOTE: Manually createdvoidsetX(double newX)voidsetY(double newY)java.lang.StringtoString()voidtranslate(double dTranslateX, double dTranslateY)Causes the internal (x,y) values to be translated by a relative value of (dTranslateX, dTranslateY)voidunsetX()voidunsetY()-
Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAdapters, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eInvoke, eIsProxy, eSetClass, eSetDeliver, eSetProxyURI
-
Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicRemoveFromContainerFeature, eBasicSetContainer, eContainer, eContainingFeature, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedOperationID, eDerivedOperationID, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInvoke, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eInternalResource, eInverseAdd, eInverseAdd, eInverseRemove, eInverseRemove, eInvoke, eIsSet, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eResolveProxy, eResource, eSet, eSetResource, eSetStore, eSetting, eStore, eUnset, eURIFragmentSegment, eVirtualGet, eVirtualGet, eVirtualIsSet, eVirtualSet, eVirtualUnset
-
Methods inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
eNotificationRequired, eNotify
-
-
-
-
Method Detail
-
getX
public double getX()
- Specified by:
getXin interfaceLocation- Returns:
- the value of the 'X' attribute.
- See Also:
Location.isSetX(),Location.unsetX(),Location.setX(double),AttributePackage.getLocation_X()
-
setX
public void setX(double newX)
- Specified by:
setXin interfaceLocation- Parameters:
newX- the new value of the 'X' attribute.- See Also:
Location.isSetX(),Location.unsetX(),Location.getX()
-
unsetX
public void unsetX()
- Specified by:
unsetXin interfaceLocation- See Also:
Location.isSetX(),Location.getX(),Location.setX(double)
-
isSetX
public boolean isSetX()
- Specified by:
isSetXin interfaceLocation- Returns:
- whether the value of the 'X' attribute is set.
- See Also:
Location.unsetX(),Location.getX(),Location.setX(double)
-
getY
public double getY()
- Specified by:
getYin interfaceLocation- Returns:
- the value of the 'Y' attribute.
- See Also:
Location.isSetY(),Location.unsetY(),Location.setY(double),AttributePackage.getLocation_Y()
-
setY
public void setY(double newY)
- Specified by:
setYin interfaceLocation- Parameters:
newY- the new value of the 'Y' attribute.- See Also:
Location.isSetY(),Location.unsetY(),Location.getY()
-
unsetY
public void unsetY()
- Specified by:
unsetYin interfaceLocation- See Also:
Location.isSetY(),Location.getY(),Location.setY(double)
-
isSetY
public boolean isSetY()
- Specified by:
isSetYin interfaceLocation- Returns:
- whether the value of the 'Y' attribute is set.
- See Also:
Location.unsetY(),Location.getY(),Location.setY(double)
-
eGet
public java.lang.Object eGet(int featureID, boolean resolve, boolean coreType)- Specified by:
eGetin interfaceorg.eclipse.emf.ecore.InternalEObject- Overrides:
eGetin classorg.eclipse.emf.ecore.impl.BasicEObjectImpl
-
eSet
public void eSet(int featureID, java.lang.Object newValue)- Specified by:
eSetin interfaceorg.eclipse.emf.ecore.InternalEObject- Overrides:
eSetin classorg.eclipse.emf.ecore.impl.BasicEObjectImpl
-
eUnset
public void eUnset(int featureID)
- Specified by:
eUnsetin interfaceorg.eclipse.emf.ecore.InternalEObject- Overrides:
eUnsetin classorg.eclipse.emf.ecore.impl.BasicEObjectImpl
-
eIsSet
public boolean eIsSet(int featureID)
- Specified by:
eIsSetin interfaceorg.eclipse.emf.ecore.InternalEObject- Overrides:
eIsSetin classorg.eclipse.emf.ecore.impl.BasicEObjectImpl
-
toString
public java.lang.String toString()
- Overrides:
toStringin classorg.eclipse.emf.ecore.impl.BasicEObjectImpl
-
create
public static final Location create(double dX, double dY)
- Parameters:
dX-dY-- Returns:
-
create
public static final Location[] create(double[] xa, double[] ya)
- Parameters:
xa-ya-- Returns:
-
getXArray
public static double[] getXArray(Location[] loc)
- Parameters:
loc-- Returns:
-
getYArray
public static double[] getYArray(Location[] loc)
- Parameters:
loc-- Returns:
-
set
public void set(double dX, double dY)Description copied from interface:LocationA convenience method for defining member variables NOTE: Manually created
-
translate
public void translate(double dTranslateX, double dTranslateY)Description copied from interface:LocationCauses the internal (x,y) values to be translated by a relative value of (dTranslateX, dTranslateY)
-
scale
public void scale(double dScale)
Description copied from interface:LocationCauses the internal (x,y) values to be scaled by a relative (dScale) value
-
copyInstance
public Location copyInstance()
A convenient method to get an instance copy. This is much faster than the ECoreUtil.copy().- Specified by:
copyInstancein interfaceIChartObject- Specified by:
copyInstancein interfaceLocation
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-