Class Location3DImpl
- 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
-
- org.eclipse.birt.chart.model.attribute.impl.Location3DImpl
-
- All Implemented Interfaces:
Location,Location3D,IChartObject,org.eclipse.emf.common.notify.Notifier,org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.InternalEObject
public class Location3DImpl extends LocationImpl implements Location3D
An implementation of the model object 'Location3 D'.The following features are implemented:
-
-
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 Location3DcopyInstance()A convenient method to get an instance copy.static Location3D[]create(double[] xa, double[] ya, double[] za)static Location3Dcreate(double x, double y, double z)java.lang.ObjecteGet(int featureID, boolean resolve, boolean coreType)booleaneIsSet(int featureID)voideSet(int featureID, java.lang.Object newValue)voideUnset(int featureID)static double[]getXArray(Location3D[] loc)static double[]getYArray(Location3D[] loc)doublegetZ()static double[]getZArray(Location3D[] loc)booleanisSetZ()voidlinkToVector(Vector vector)Used to link a Location3D to a Vector for live update of the coordinates.voidscale(double dScale)Causes the internal (x,y) values to be scaled by a relative (dScale) valuevoidset(double dX, double dY, double dZ)A convenience method for defining member variables NOTE: Manually createdvoidsetZ(double newZ)java.lang.StringtoString()voidtranslate(double dTranslateX, double dTranslateY, double dTranslateZ)Causes the internal (x,y,z) values to be translated by a relative value of (dTranslateX, dTranslateY, dTranslateZ)voidunsetZ()-
Methods inherited from class org.eclipse.birt.chart.model.attribute.impl.LocationImpl
create, create, equals, getX, getXArray, getY, getYArray, hashCode, isSetX, isSetY, set, setX, setY, translate, unsetX, unsetY
-
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
-
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
-
-
-
-
Method Detail
-
create
public static Location3D create(double x, double y, double z)
- Parameters:
x-y-z-- Returns:
- location 3d instance with setting 'isSet' flag.
-
copyInstance
public Location3D 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- Specified by:
copyInstancein interfaceLocation3D- Overrides:
copyInstancein classLocationImpl
-
create
public static final Location3D[] create(double[] xa, double[] ya, double[] za)
- Parameters:
xa-ya-za-- Returns:
- location 3d instance with setting 'isSet' flag.
-
getXArray
public static double[] getXArray(Location3D[] loc)
- Parameters:
loc-- Returns:
- x locations.
-
getYArray
public static double[] getYArray(Location3D[] loc)
- Parameters:
loc-- Returns:
- y locations.
-
getZArray
public static double[] getZArray(Location3D[] loc)
- Parameters:
loc-- Returns:
- z locations.
-
getZ
public double getZ()
- Specified by:
getZin interfaceLocation3D- Returns:
- the value of the 'Z' attribute.
- See Also:
Location3D.isSetZ(),Location3D.unsetZ(),Location3D.setZ(double),AttributePackage.getLocation3D_Z()
-
setZ
public void setZ(double newZ)
- Specified by:
setZin interfaceLocation3D- Parameters:
newZ- the new value of the 'Z' attribute.- See Also:
Location3D.isSetZ(),Location3D.unsetZ(),Location3D.getZ()
-
unsetZ
public void unsetZ()
- Specified by:
unsetZin interfaceLocation3D- See Also:
Location3D.isSetZ(),Location3D.getZ(),Location3D.setZ(double)
-
isSetZ
public boolean isSetZ()
- Specified by:
isSetZin interfaceLocation3D- Returns:
- whether the value of the 'Z' attribute is set.
- See Also:
Location3D.unsetZ(),Location3D.getZ(),Location3D.setZ(double)
-
eGet
public java.lang.Object eGet(int featureID, boolean resolve, boolean coreType)- Specified by:
eGetin interfaceorg.eclipse.emf.ecore.InternalEObject- Overrides:
eGetin classLocationImpl
-
eSet
public void eSet(int featureID, java.lang.Object newValue)- Specified by:
eSetin interfaceorg.eclipse.emf.ecore.InternalEObject- Overrides:
eSetin classLocationImpl
-
eUnset
public void eUnset(int featureID)
- Specified by:
eUnsetin interfaceorg.eclipse.emf.ecore.InternalEObject- Overrides:
eUnsetin classLocationImpl
-
eIsSet
public boolean eIsSet(int featureID)
- Specified by:
eIsSetin interfaceorg.eclipse.emf.ecore.InternalEObject- Overrides:
eIsSetin classLocationImpl
-
toString
public java.lang.String toString()
- Overrides:
toStringin classLocationImpl
-
translate
public void translate(double dTranslateX, double dTranslateY, double dTranslateZ)Description copied from interface:Location3DCauses the internal (x,y,z) values to be translated by a relative value of (dTranslateX, dTranslateY, dTranslateZ)- Specified by:
translatein interfaceLocation3D
-
scale
public void scale(double dScale)
Description copied from interface:LocationCauses the internal (x,y) values to be scaled by a relative (dScale) value- Specified by:
scalein interfaceLocation- Specified by:
scalein interfaceLocation3D- Overrides:
scalein classLocationImpl
-
set
public void set(double dX, double dY, double dZ)Description copied from interface:Location3DA convenience method for defining member variables NOTE: Manually created- Specified by:
setin interfaceLocation3D
-
linkToVector
public void linkToVector(Vector vector)
Description copied from interface:Location3DUsed to link a Location3D to a Vector for live update of the coordinates.- Specified by:
linkToVectorin interfaceLocation3D
-
-