org.eclipse.birt.chart.examples.radar.model.type.impl.RadarSeriesImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of org.eclipse.birt.runtime Show documentation
Show all versions of org.eclipse.birt.runtime Show documentation
A component of the BIRT runtime
/***********************************************************************
* Copyright (c) 2010 Actuate Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Actuate Corporation - initial API and implementation
***********************************************************************/
package org.eclipse.birt.chart.examples.radar.model.type.impl;
import java.math.BigInteger;
import org.eclipse.birt.chart.examples.radar.i18n.Messages;
import org.eclipse.birt.chart.examples.radar.model.type.RadarSeries;
import org.eclipse.birt.chart.examples.radar.model.type.RadarTypePackage;
import org.eclipse.birt.chart.model.attribute.AttributeFactory;
import org.eclipse.birt.chart.model.attribute.ChartDimension;
import org.eclipse.birt.chart.model.attribute.FormatSpecifier;
import org.eclipse.birt.chart.model.attribute.LineAttributes;
import org.eclipse.birt.chart.model.attribute.LineStyle;
import org.eclipse.birt.chart.model.attribute.Marker;
import org.eclipse.birt.chart.model.attribute.MarkerType;
import org.eclipse.birt.chart.model.attribute.impl.ColorDefinitionImpl;
import org.eclipse.birt.chart.model.attribute.impl.LineAttributesImpl;
import org.eclipse.birt.chart.model.attribute.impl.MarkerImpl;
import org.eclipse.birt.chart.model.component.Label;
import org.eclipse.birt.chart.model.component.impl.LabelImpl;
import org.eclipse.birt.chart.model.component.impl.SeriesImpl;
import org.eclipse.birt.chart.util.LiteralHelper;
import org.eclipse.birt.chart.util.NameSet;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
/**
* An implementation of the model object '
* Radar Series'.
*
* The following features are implemented:
*
* -
* {@link org.eclipse.birt.chart.examples.radar.model.type.impl.RadarSeriesImpl#getMarker
* Marker}
* -
* {@link org.eclipse.birt.chart.examples.radar.model.type.impl.RadarSeriesImpl#getLineAttributes
* Line Attributes}
* -
* {@link org.eclipse.birt.chart.examples.radar.model.type.impl.RadarSeriesImpl#isPaletteLineColor
* Palette Line Color}
* -
* {@link org.eclipse.birt.chart.examples.radar.model.type.impl.RadarSeriesImpl#isBackgroundOvalTransparent
* Background Oval Transparent}
* -
* {@link org.eclipse.birt.chart.examples.radar.model.type.impl.RadarSeriesImpl#getWebLineAttributes
* Web Line Attributes}
* -
* {@link org.eclipse.birt.chart.examples.radar.model.type.impl.RadarSeriesImpl#isShowWebLabels
* Show Web Labels}
* -
* {@link org.eclipse.birt.chart.examples.radar.model.type.impl.RadarSeriesImpl#isShowCatLabels
* Show Cat Labels}
* -
* {@link org.eclipse.birt.chart.examples.radar.model.type.impl.RadarSeriesImpl#isRadarAutoScale
* Radar Auto Scale}
* -
* {@link org.eclipse.birt.chart.examples.radar.model.type.impl.RadarSeriesImpl#getWebLabelMax
* Web Label Max}
* -
* {@link org.eclipse.birt.chart.examples.radar.model.type.impl.RadarSeriesImpl#getWebLabelMin
* Web Label Min}
* -
* {@link org.eclipse.birt.chart.examples.radar.model.type.impl.RadarSeriesImpl#getWebLabelUnit
* Web Label Unit}
* -
* {@link org.eclipse.birt.chart.examples.radar.model.type.impl.RadarSeriesImpl#isFillPolys
* Fill Polys}
* -
* {@link org.eclipse.birt.chart.examples.radar.model.type.impl.RadarSeriesImpl#isConnectEndpoints
* Connect Endpoints}
* -
* {@link org.eclipse.birt.chart.examples.radar.model.type.impl.RadarSeriesImpl#getWebLabel
* Web Label}
* -
* {@link org.eclipse.birt.chart.examples.radar.model.type.impl.RadarSeriesImpl#getCatLabel
* Cat Label}
* -
* {@link org.eclipse.birt.chart.examples.radar.model.type.impl.RadarSeriesImpl#getWebLabelFormatSpecifier
* Web Label Format Specifier}
* -
* {@link org.eclipse.birt.chart.examples.radar.model.type.impl.RadarSeriesImpl#getCatLabelFormatSpecifier
* Cat Label Format Specifier}
* -
* {@link org.eclipse.birt.chart.examples.radar.model.type.impl.RadarSeriesImpl#getPlotSteps
* Plot Steps}
*
*
*
* @generated
*/
public class RadarSeriesImpl extends SeriesImpl implements RadarSeries
{
/**
* The cached value of the '{@link #getMarker() Marker}'
* containment reference.
*
* @see #getMarker()
* @generated
* @ordered
*/
protected Marker marker;
/**
* The cached value of the '{@link #getLineAttributes()
* Line Attributes}' containment reference.
*
*
* @see #getLineAttributes()
* @generated
* @ordered
*/
protected LineAttributes lineAttributes;
/**
* The default value of the '{@link #isPaletteLineColor()
* Palette Line Color}' attribute.
*
* @see #isPaletteLineColor()
* @generated
* @ordered
*/
protected static final boolean PALETTE_LINE_COLOR_EDEFAULT = false;
/**
* The cached value of the '{@link #isPaletteLineColor()
* Palette Line Color}' attribute.
*
* @see #isPaletteLineColor()
* @generated
* @ordered
*/
protected boolean paletteLineColor = PALETTE_LINE_COLOR_EDEFAULT;
/**
* This is true if the Palette Line Color attribute has been set.
*
* @generated
* @ordered
*/
protected boolean paletteLineColorESet;
/**
* The default value of the '{@link #isBackgroundOvalTransparent()
* Background Oval Transparent}' attribute.
*
*
* @see #isBackgroundOvalTransparent()
* @generated
* @ordered
*/
protected static final boolean BACKGROUND_OVAL_TRANSPARENT_EDEFAULT = false;
/**
* The cached value of the '{@link #isBackgroundOvalTransparent()
* Background Oval Transparent}' attribute.
*
*
* @see #isBackgroundOvalTransparent()
* @generated
* @ordered
*/
protected boolean backgroundOvalTransparent = BACKGROUND_OVAL_TRANSPARENT_EDEFAULT;
/**
* This is true if the Background Oval Transparent attribute has been set.
*
*
* @generated
* @ordered
*/
protected boolean backgroundOvalTransparentESet;
/**
* The cached value of the '{@link #getWebLineAttributes()
* Web Line Attributes}' containment reference.
*
* @see #getWebLineAttributes()
* @generated
* @ordered
*/
protected LineAttributes webLineAttributes;
/**
* The default value of the '{@link #isShowWebLabels()
* Show Web Labels}' attribute.
*
* @see #isShowWebLabels()
* @generated
* @ordered
*/
protected static final boolean SHOW_WEB_LABELS_EDEFAULT = false;
/**
* The cached value of the '{@link #isShowWebLabels()
* Show Web Labels}' attribute.
*
* @see #isShowWebLabels()
* @generated
* @ordered
*/
protected boolean showWebLabels = SHOW_WEB_LABELS_EDEFAULT;
/**
* This is true if the Show Web Labels attribute has been set.
*
* @generated
* @ordered
*/
protected boolean showWebLabelsESet;
/**
* The default value of the '{@link #isShowCatLabels()
* Show Cat Labels}' attribute.
*
* @see #isShowCatLabels()
* @generated
* @ordered
*/
protected static final boolean SHOW_CAT_LABELS_EDEFAULT = true;
/**
* The cached value of the '{@link #isShowCatLabels()
* Show Cat Labels}' attribute.
*
* @see #isShowCatLabels()
* @generated
* @ordered
*/
protected boolean showCatLabels = SHOW_CAT_LABELS_EDEFAULT;
/**
* This is true if the Show Cat Labels attribute has been set.
*
* @generated
* @ordered
*/
protected boolean showCatLabelsESet;
/**
* The default value of the '{@link #isRadarAutoScale()
* Radar Auto Scale}' attribute.
*
* @see #isRadarAutoScale()
* @generated
* @ordered
*/
protected static final boolean RADAR_AUTO_SCALE_EDEFAULT = true;
/**
* The cached value of the '{@link #isRadarAutoScale()
* Radar Auto Scale}' attribute.
*
* @see #isRadarAutoScale()
* @generated
* @ordered
*/
protected boolean radarAutoScale = RADAR_AUTO_SCALE_EDEFAULT;
/**
* This is true if the Radar Auto Scale attribute has been set.
*
* @generated
* @ordered
*/
protected boolean radarAutoScaleESet;
/**
* The default value of the '{@link #getWebLabelMax()
* Web Label Max}' attribute.
*
* @see #getWebLabelMax()
* @generated
* @ordered
*/
protected static final double WEB_LABEL_MAX_EDEFAULT = 100.0;
/**
* The cached value of the '{@link #getWebLabelMax() Web Label Max}
* ' attribute.
*
* @see #getWebLabelMax()
* @generated
* @ordered
*/
protected double webLabelMax = WEB_LABEL_MAX_EDEFAULT;
/**
* This is true if the Web Label Max attribute has been set.
*
* @generated
* @ordered
*/
protected boolean webLabelMaxESet;
/**
* The default value of the '{@link #getWebLabelMin()
* Web Label Min}' attribute.
*
* @see #getWebLabelMin()
* @generated
* @ordered
*/
protected static final double WEB_LABEL_MIN_EDEFAULT = 0.0;
/**
* The cached value of the '{@link #getWebLabelMin() Web Label Min}
* ' attribute.
*
* @see #getWebLabelMin()
* @generated
* @ordered
*/
protected double webLabelMin = WEB_LABEL_MIN_EDEFAULT;
/**
* This is true if the Web Label Min attribute has been set.
*
* @generated
* @ordered
*/
protected boolean webLabelMinESet;
/**
* The default value of the '{@link #getWebLabelUnit()
* Web Label Unit}' attribute.
*
* @see #getWebLabelUnit()
* @generated
* @ordered
*/
protected static final String WEB_LABEL_UNIT_EDEFAULT = "%"; //$NON-NLS-1$
/**
* The cached value of the '{@link #getWebLabelUnit()
* Web Label Unit}' attribute.
*
* @see #getWebLabelUnit()
* @generated
* @ordered
*/
protected String webLabelUnit = WEB_LABEL_UNIT_EDEFAULT;
/**
* This is true if the Web Label Unit attribute has been set.
*
* @generated
* @ordered
*/
protected boolean webLabelUnitESet;
/**
* The default value of the '{@link #isFillPolys() Fill Polys}'
* attribute.
*
* @see #isFillPolys()
* @generated
* @ordered
*/
protected static final boolean FILL_POLYS_EDEFAULT = false;
/**
* The cached value of the '{@link #isFillPolys() Fill Polys}'
* attribute.
*
* @see #isFillPolys()
* @generated
* @ordered
*/
protected boolean fillPolys = FILL_POLYS_EDEFAULT;
/**
* This is true if the Fill Polys attribute has been set.
*
* @generated
* @ordered
*/
protected boolean fillPolysESet;
/**
* The default value of the '{@link #isConnectEndpoints()
* Connect Endpoints}' attribute.
*
* @see #isConnectEndpoints()
* @generated
* @ordered
*/
protected static final boolean CONNECT_ENDPOINTS_EDEFAULT = false;
/**
* The cached value of the '{@link #isConnectEndpoints()
* Connect Endpoints}' attribute.
*
* @see #isConnectEndpoints()
* @generated
* @ordered
*/
protected boolean connectEndpoints = CONNECT_ENDPOINTS_EDEFAULT;
/**
* This is true if the Connect Endpoints attribute has been set.
*
* @generated
* @ordered
*/
protected boolean connectEndpointsESet;
/**
* The cached value of the '{@link #getWebLabel() Web Label}'
* containment reference.
*
* @see #getWebLabel()
* @generated
* @ordered
*/
protected Label webLabel;
/**
* The cached value of the '{@link #getCatLabel() Cat Label}'
* containment reference.
*
* @see #getCatLabel()
* @generated
* @ordered
*/
protected Label catLabel;
/**
* The cached value of the '{@link #getWebLabelFormatSpecifier()
* Web Label Format Specifier}' containment reference.
*
* @see #getWebLabelFormatSpecifier()
* @generated
* @ordered
*/
protected FormatSpecifier webLabelFormatSpecifier;
/**
* The cached value of the '{@link #getCatLabelFormatSpecifier()
* Cat Label Format Specifier}' containment reference.
*
* @see #getCatLabelFormatSpecifier()
* @generated
* @ordered
*/
protected FormatSpecifier catLabelFormatSpecifier;
/**
* The default value of the '{@link #getPlotSteps() Plot Steps}'
* attribute.
*
* @see #getPlotSteps()
* @generated
* @ordered
*/
protected static final BigInteger PLOT_STEPS_EDEFAULT = new BigInteger( "5" ); //$NON-NLS-1$
/**
* The cached value of the '{@link #getPlotSteps() Plot Steps}'
* attribute.
*
* @see #getPlotSteps()
* @generated
* @ordered
*/
protected BigInteger plotSteps = PLOT_STEPS_EDEFAULT;
/**
* This is true if the Plot Steps attribute has been set.
*
* @generated
* @ordered
*/
protected boolean plotStepsESet;
/**
*
*
* @generated
*/
protected RadarSeriesImpl( )
{
super( );
}
/**
*
*
* @generated
*/
@Override
protected EClass eStaticClass( )
{
return RadarTypePackage.Literals.RADAR_SERIES;
}
/**
*
*
* @generated
*/
public Marker getMarker( )
{
return marker;
}
/**
*
*
* @generated
*/
public NotificationChain basicSetMarker( Marker newMarker,
NotificationChain msgs )
{
Marker oldMarker = marker;
marker = newMarker;
if ( eNotificationRequired( ) )
{
ENotificationImpl notification = new ENotificationImpl( this,
Notification.SET,
RadarTypePackage.RADAR_SERIES__MARKER,
oldMarker,
newMarker );
if ( msgs == null )
msgs = notification;
else
msgs.add( notification );
}
return msgs;
}
/**
*
*
* @generated
*/
public void setMarker( Marker newMarker )
{
if ( newMarker != marker )
{
NotificationChain msgs = null;
if ( marker != null )
msgs = ( (InternalEObject) marker ).eInverseRemove( this,
EOPPOSITE_FEATURE_BASE
- RadarTypePackage.RADAR_SERIES__MARKER,
null,
msgs );
if ( newMarker != null )
msgs = ( (InternalEObject) newMarker ).eInverseAdd( this,
EOPPOSITE_FEATURE_BASE
- RadarTypePackage.RADAR_SERIES__MARKER,
null,
msgs );
msgs = basicSetMarker( newMarker, msgs );
if ( msgs != null )
msgs.dispatch( );
}
else if ( eNotificationRequired( ) )
eNotify( new ENotificationImpl( this,
Notification.SET,
RadarTypePackage.RADAR_SERIES__MARKER,
newMarker,
newMarker ) );
}
/**
*
*
* @generated
*/
public LineAttributes getLineAttributes( )
{
return lineAttributes;
}
/**
*
*
* @generated
*/
public NotificationChain basicSetLineAttributes(
LineAttributes newLineAttributes, NotificationChain msgs )
{
LineAttributes oldLineAttributes = lineAttributes;
lineAttributes = newLineAttributes;
if ( eNotificationRequired( ) )
{
ENotificationImpl notification = new ENotificationImpl( this,
Notification.SET,
RadarTypePackage.RADAR_SERIES__LINE_ATTRIBUTES,
oldLineAttributes,
newLineAttributes );
if ( msgs == null )
msgs = notification;
else
msgs.add( notification );
}
return msgs;
}
/**
*
*
* @generated
*/
public void setLineAttributes( LineAttributes newLineAttributes )
{
if ( newLineAttributes != lineAttributes )
{
NotificationChain msgs = null;
if ( lineAttributes != null )
msgs = ( (InternalEObject) lineAttributes ).eInverseRemove( this,
EOPPOSITE_FEATURE_BASE
- RadarTypePackage.RADAR_SERIES__LINE_ATTRIBUTES,
null,
msgs );
if ( newLineAttributes != null )
msgs = ( (InternalEObject) newLineAttributes ).eInverseAdd( this,
EOPPOSITE_FEATURE_BASE
- RadarTypePackage.RADAR_SERIES__LINE_ATTRIBUTES,
null,
msgs );
msgs = basicSetLineAttributes( newLineAttributes, msgs );
if ( msgs != null )
msgs.dispatch( );
}
else if ( eNotificationRequired( ) )
eNotify( new ENotificationImpl( this,
Notification.SET,
RadarTypePackage.RADAR_SERIES__LINE_ATTRIBUTES,
newLineAttributes,
newLineAttributes ) );
}
/**
*
*
* @generated
*/
public boolean isPaletteLineColor( )
{
return paletteLineColor;
}
/**
*
*
* @generated
*/
public void setPaletteLineColor( boolean newPaletteLineColor )
{
boolean oldPaletteLineColor = paletteLineColor;
paletteLineColor = newPaletteLineColor;
boolean oldPaletteLineColorESet = paletteLineColorESet;
paletteLineColorESet = true;
if ( eNotificationRequired( ) )
eNotify( new ENotificationImpl( this,
Notification.SET,
RadarTypePackage.RADAR_SERIES__PALETTE_LINE_COLOR,
oldPaletteLineColor,
paletteLineColor,
!oldPaletteLineColorESet ) );
}
/**
*
*
* @generated
*/
public void unsetPaletteLineColor( )
{
boolean oldPaletteLineColor = paletteLineColor;
boolean oldPaletteLineColorESet = paletteLineColorESet;
paletteLineColor = PALETTE_LINE_COLOR_EDEFAULT;
paletteLineColorESet = false;
if ( eNotificationRequired( ) )
eNotify( new ENotificationImpl( this,
Notification.UNSET,
RadarTypePackage.RADAR_SERIES__PALETTE_LINE_COLOR,
oldPaletteLineColor,
PALETTE_LINE_COLOR_EDEFAULT,
oldPaletteLineColorESet ) );
}
/**
*
*
* @generated
*/
public boolean isSetPaletteLineColor( )
{
return paletteLineColorESet;
}
/**
*
*
* @generated
*/
public boolean isBackgroundOvalTransparent( )
{
return backgroundOvalTransparent;
}
/**
*
*
* @generated
*/
public void setBackgroundOvalTransparent(
boolean newBackgroundOvalTransparent )
{
boolean oldBackgroundOvalTransparent = backgroundOvalTransparent;
backgroundOvalTransparent = newBackgroundOvalTransparent;
boolean oldBackgroundOvalTransparentESet = backgroundOvalTransparentESet;
backgroundOvalTransparentESet = true;
if ( eNotificationRequired( ) )
eNotify( new ENotificationImpl( this,
Notification.SET,
RadarTypePackage.RADAR_SERIES__BACKGROUND_OVAL_TRANSPARENT,
oldBackgroundOvalTransparent,
backgroundOvalTransparent,
!oldBackgroundOvalTransparentESet ) );
}
/**
*
*
* @generated
*/
public void unsetBackgroundOvalTransparent( )
{
boolean oldBackgroundOvalTransparent = backgroundOvalTransparent;
boolean oldBackgroundOvalTransparentESet = backgroundOvalTransparentESet;
backgroundOvalTransparent = BACKGROUND_OVAL_TRANSPARENT_EDEFAULT;
backgroundOvalTransparentESet = false;
if ( eNotificationRequired( ) )
eNotify( new ENotificationImpl( this,
Notification.UNSET,
RadarTypePackage.RADAR_SERIES__BACKGROUND_OVAL_TRANSPARENT,
oldBackgroundOvalTransparent,
BACKGROUND_OVAL_TRANSPARENT_EDEFAULT,
oldBackgroundOvalTransparentESet ) );
}
/**
*
*
* @generated
*/
public boolean isSetBackgroundOvalTransparent( )
{
return backgroundOvalTransparentESet;
}
/**
*
*
* @generated
*/
public LineAttributes getWebLineAttributes( )
{
return webLineAttributes;
}
/**
*
*
* @generated
*/
public NotificationChain basicSetWebLineAttributes(
LineAttributes newWebLineAttributes, NotificationChain msgs )
{
LineAttributes oldWebLineAttributes = webLineAttributes;
webLineAttributes = newWebLineAttributes;
if ( eNotificationRequired( ) )
{
ENotificationImpl notification = new ENotificationImpl( this,
Notification.SET,
RadarTypePackage.RADAR_SERIES__WEB_LINE_ATTRIBUTES,
oldWebLineAttributes,
newWebLineAttributes );
if ( msgs == null )
msgs = notification;
else
msgs.add( notification );
}
return msgs;
}
/**
*
*
* @generated
*/
public void setWebLineAttributes( LineAttributes newWebLineAttributes )
{
if ( newWebLineAttributes != webLineAttributes )
{
NotificationChain msgs = null;
if ( webLineAttributes != null )
msgs = ( (InternalEObject) webLineAttributes ).eInverseRemove( this,
EOPPOSITE_FEATURE_BASE
- RadarTypePackage.RADAR_SERIES__WEB_LINE_ATTRIBUTES,
null,
msgs );
if ( newWebLineAttributes != null )
msgs = ( (InternalEObject) newWebLineAttributes ).eInverseAdd( this,
EOPPOSITE_FEATURE_BASE
- RadarTypePackage.RADAR_SERIES__WEB_LINE_ATTRIBUTES,
null,
msgs );
msgs = basicSetWebLineAttributes( newWebLineAttributes, msgs );
if ( msgs != null )
msgs.dispatch( );
}
else if ( eNotificationRequired( ) )
eNotify( new ENotificationImpl( this,
Notification.SET,
RadarTypePackage.RADAR_SERIES__WEB_LINE_ATTRIBUTES,
newWebLineAttributes,
newWebLineAttributes ) );
}
/**
*
*
* @generated
*/
public boolean isShowWebLabels( )
{
return showWebLabels;
}
/**
*
*
* @generated
*/
public void setShowWebLabels( boolean newShowWebLabels )
{
boolean oldShowWebLabels = showWebLabels;
showWebLabels = newShowWebLabels;
boolean oldShowWebLabelsESet = showWebLabelsESet;
showWebLabelsESet = true;
if ( eNotificationRequired( ) )
eNotify( new ENotificationImpl( this,
Notification.SET,
RadarTypePackage.RADAR_SERIES__SHOW_WEB_LABELS,
oldShowWebLabels,
showWebLabels,
!oldShowWebLabelsESet ) );
}
/**
*
*
* @generated
*/
public void unsetShowWebLabels( )
{
boolean oldShowWebLabels = showWebLabels;
boolean oldShowWebLabelsESet = showWebLabelsESet;
showWebLabels = SHOW_WEB_LABELS_EDEFAULT;
showWebLabelsESet = false;
if ( eNotificationRequired( ) )
eNotify( new ENotificationImpl( this,
Notification.UNSET,
RadarTypePackage.RADAR_SERIES__SHOW_WEB_LABELS,
oldShowWebLabels,
SHOW_WEB_LABELS_EDEFAULT,
oldShowWebLabelsESet ) );
}
/**
*
*
* @generated
*/
public boolean isSetShowWebLabels( )
{
return showWebLabelsESet;
}
/**
*
*
* @generated
*/
public boolean isShowCatLabels( )
{
return showCatLabels;
}
/**
*
*
* @generated
*/
public void setShowCatLabels( boolean newShowCatLabels )
{
boolean oldShowCatLabels = showCatLabels;
showCatLabels = newShowCatLabels;
boolean oldShowCatLabelsESet = showCatLabelsESet;
showCatLabelsESet = true;
if ( eNotificationRequired( ) )
eNotify( new ENotificationImpl( this,
Notification.SET,
RadarTypePackage.RADAR_SERIES__SHOW_CAT_LABELS,
oldShowCatLabels,
showCatLabels,
!oldShowCatLabelsESet ) );
}
/**
*
*
* @generated
*/
public void unsetShowCatLabels( )
{
boolean oldShowCatLabels = showCatLabels;
boolean oldShowCatLabelsESet = showCatLabelsESet;
showCatLabels = SHOW_CAT_LABELS_EDEFAULT;
showCatLabelsESet = false;
if ( eNotificationRequired( ) )
eNotify( new ENotificationImpl( this,
Notification.UNSET,
RadarTypePackage.RADAR_SERIES__SHOW_CAT_LABELS,
oldShowCatLabels,
SHOW_CAT_LABELS_EDEFAULT,
oldShowCatLabelsESet ) );
}
/**
*
*
* @generated
*/
public boolean isSetShowCatLabels( )
{
return showCatLabelsESet;
}
/**
*
*
* @generated
*/
public boolean isRadarAutoScale( )
{
return radarAutoScale;
}
/**
*
*
* @generated
*/
public void setRadarAutoScale( boolean newRadarAutoScale )
{
boolean oldRadarAutoScale = radarAutoScale;
radarAutoScale = newRadarAutoScale;
boolean oldRadarAutoScaleESet = radarAutoScaleESet;
radarAutoScaleESet = true;
if ( eNotificationRequired( ) )
eNotify( new ENotificationImpl( this,
Notification.SET,
RadarTypePackage.RADAR_SERIES__RADAR_AUTO_SCALE,
oldRadarAutoScale,
radarAutoScale,
!oldRadarAutoScaleESet ) );
}
/**
*
*
* @generated
*/
public void unsetRadarAutoScale( )
{
boolean oldRadarAutoScale = radarAutoScale;
boolean oldRadarAutoScaleESet = radarAutoScaleESet;
radarAutoScale = RADAR_AUTO_SCALE_EDEFAULT;
radarAutoScaleESet = false;
if ( eNotificationRequired( ) )
eNotify( new ENotificationImpl( this,
Notification.UNSET,
RadarTypePackage.RADAR_SERIES__RADAR_AUTO_SCALE,
oldRadarAutoScale,
RADAR_AUTO_SCALE_EDEFAULT,
oldRadarAutoScaleESet ) );
}
/**
*
*
* @generated
*/
public boolean isSetRadarAutoScale( )
{
return radarAutoScaleESet;
}
/**
*
*
* @generated
*/
public double getWebLabelMax( )
{
return webLabelMax;
}
/**
*
*
* @generated
*/
public void setWebLabelMax( double newWebLabelMax )
{
double oldWebLabelMax = webLabelMax;
webLabelMax = newWebLabelMax;
boolean oldWebLabelMaxESet = webLabelMaxESet;
webLabelMaxESet = true;
if ( eNotificationRequired( ) )
eNotify( new ENotificationImpl( this,
Notification.SET,
RadarTypePackage.RADAR_SERIES__WEB_LABEL_MAX,
oldWebLabelMax,
webLabelMax,
!oldWebLabelMaxESet ) );
}
/**
*
*
* @generated
*/
public void unsetWebLabelMax( )
{
double oldWebLabelMax = webLabelMax;
boolean oldWebLabelMaxESet = webLabelMaxESet;
webLabelMax = WEB_LABEL_MAX_EDEFAULT;
webLabelMaxESet = false;
if ( eNotificationRequired( ) )
eNotify( new ENotificationImpl( this,
Notification.UNSET,
RadarTypePackage.RADAR_SERIES__WEB_LABEL_MAX,
oldWebLabelMax,
WEB_LABEL_MAX_EDEFAULT,
oldWebLabelMaxESet ) );
}
/**
*
*
* @generated
*/
public boolean isSetWebLabelMax( )
{
return webLabelMaxESet;
}
/**
*
*
* @generated
*/
public double getWebLabelMin( )
{
return webLabelMin;
}
/**
*
*
* @generated
*/
public void setWebLabelMin( double newWebLabelMin )
{
double oldWebLabelMin = webLabelMin;
webLabelMin = newWebLabelMin;
boolean oldWebLabelMinESet = webLabelMinESet;
webLabelMinESet = true;
if ( eNotificationRequired( ) )
eNotify( new ENotificationImpl( this,
Notification.SET,
RadarTypePackage.RADAR_SERIES__WEB_LABEL_MIN,
oldWebLabelMin,
webLabelMin,
!oldWebLabelMinESet ) );
}
/**
*
*
* @generated
*/
public void unsetWebLabelMin( )
{
double oldWebLabelMin = webLabelMin;
boolean oldWebLabelMinESet = webLabelMinESet;
webLabelMin = WEB_LABEL_MIN_EDEFAULT;
webLabelMinESet = false;
if ( eNotificationRequired( ) )
eNotify( new ENotificationImpl( this,
Notification.UNSET,
RadarTypePackage.RADAR_SERIES__WEB_LABEL_MIN,
oldWebLabelMin,
WEB_LABEL_MIN_EDEFAULT,
oldWebLabelMinESet ) );
}
/**
*
*
* @generated
*/
public boolean isSetWebLabelMin( )
{
return webLabelMinESet;
}
/**
*
*
* @generated
*/
public String getWebLabelUnit( )
{
return webLabelUnit;
}
/**
*
*
* @generated
*/
public void setWebLabelUnit( String newWebLabelUnit )
{
String oldWebLabelUnit = webLabelUnit;
webLabelUnit = newWebLabelUnit;
boolean oldWebLabelUnitESet = webLabelUnitESet;
webLabelUnitESet = true;
if ( eNotificationRequired( ) )
eNotify( new ENotificationImpl( this,
Notification.SET,
RadarTypePackage.RADAR_SERIES__WEB_LABEL_UNIT,
oldWebLabelUnit,
webLabelUnit,
!oldWebLabelUnitESet ) );
}
/**
*
*
* @generated
*/
public void unsetWebLabelUnit( )
{
String oldWebLabelUnit = webLabelUnit;
boolean oldWebLabelUnitESet = webLabelUnitESet;
webLabelUnit = WEB_LABEL_UNIT_EDEFAULT;
webLabelUnitESet = false;
if ( eNotificationRequired( ) )
eNotify( new ENotificationImpl( this,
Notification.UNSET,
RadarTypePackage.RADAR_SERIES__WEB_LABEL_UNIT,
oldWebLabelUnit,
WEB_LABEL_UNIT_EDEFAULT,
oldWebLabelUnitESet ) );
}
/**
*
*
* @generated
*/
public boolean isSetWebLabelUnit( )
{
return webLabelUnitESet;
}
/**
*
*
* @generated
*/
public boolean isFillPolys( )
{
return fillPolys;
}
/**
*
*
* @generated
*/
public void setFillPolys( boolean newFillPolys )
{
boolean oldFillPolys = fillPolys;
fillPolys = newFillPolys;
boolean oldFillPolysESet = fillPolysESet;
fillPolysESet = true;
if ( eNotificationRequired( ) )
eNotify( new ENotificationImpl( this,
Notification.SET,
RadarTypePackage.RADAR_SERIES__FILL_POLYS,
oldFillPolys,
fillPolys,
!oldFillPolysESet ) );
}
/**
*
*
* @generated
*/
public void unsetFillPolys( )
{
boolean oldFillPolys = fillPolys;
boolean oldFillPolysESet = fillPolysESet;
fillPolys = FILL_POLYS_EDEFAULT;
fillPolysESet = false;
if ( eNotificationRequired( ) )
eNotify( new ENotificationImpl( this,
Notification.UNSET,
RadarTypePackage.RADAR_SERIES__FILL_POLYS,
oldFillPolys,
FILL_POLYS_EDEFAULT,
oldFillPolysESet ) );
}
/**
*
*
* @generated
*/
public boolean isSetFillPolys( )
{
return fillPolysESet;
}
/**
*
*
* @generated
*/
public boolean isConnectEndpoints( )
{
return connectEndpoints;
}
/**
*
*
* @generated
*/
public void setConnectEndpoints( boolean newConnectEndpoints )
{
boolean oldConnectEndpoints = connectEndpoints;
connectEndpoints = newConnectEndpoints;
boolean oldConnectEndpointsESet = connectEndpointsESet;
connectEndpointsESet = true;
if ( eNotificationRequired( ) )
eNotify( new ENotificationImpl( this,
Notification.SET,
RadarTypePackage.RADAR_SERIES__CONNECT_ENDPOINTS,
oldConnectEndpoints,
connectEndpoints,
!oldConnectEndpointsESet ) );
}
/**
*
*
* @generated
*/
public void unsetConnectEndpoints( )
{
boolean oldConnectEndpoints = connectEndpoints;
boolean oldConnectEndpointsESet = connectEndpointsESet;
connectEndpoints = CONNECT_ENDPOINTS_EDEFAULT;
connectEndpointsESet = false;
if ( eNotificationRequired( ) )
eNotify( new ENotificationImpl( this,
Notification.UNSET,
RadarTypePackage.RADAR_SERIES__CONNECT_ENDPOINTS,
oldConnectEndpoints,
CONNECT_ENDPOINTS_EDEFAULT,
oldConnectEndpointsESet ) );
}
/**
*
*
* @generated
*/
public boolean isSetConnectEndpoints( )
{
return connectEndpointsESet;
}
/**
*
*
* @generated
*/
public Label getWebLabel( )
{
return webLabel;
}
/**
*
*
* @generated
*/
public NotificationChain basicSetWebLabel( Label newWebLabel,
NotificationChain msgs )
{
Label oldWebLabel = webLabel;
webLabel = newWebLabel;
if ( eNotificationRequired( ) )
{
ENotificationImpl notification = new ENotificationImpl( this,
Notification.SET,
RadarTypePackage.RADAR_SERIES__WEB_LABEL,
oldWebLabel,
newWebLabel );
if ( msgs == null )
msgs = notification;
else
msgs.add( notification );
}
return msgs;
}
/**
*
*
* @generated
*/
public void setWebLabel( Label newWebLabel )
{
if ( newWebLabel != webLabel )
{
NotificationChain msgs = null;
if ( webLabel != null )
msgs = ( (InternalEObject) webLabel ).eInverseRemove( this,
EOPPOSITE_FEATURE_BASE
- RadarTypePackage.RADAR_SERIES__WEB_LABEL,
null,
msgs );
if ( newWebLabel != null )
msgs = ( (InternalEObject) newWebLabel ).eInverseAdd( this,
EOPPOSITE_FEATURE_BASE
- RadarTypePackage.RADAR_SERIES__WEB_LABEL,
null,
msgs );
msgs = basicSetWebLabel( newWebLabel, msgs );
if ( msgs != null )
msgs.dispatch( );
}
else if ( eNotificationRequired( ) )
eNotify( new ENotificationImpl( this,
Notification.SET,
RadarTypePackage.RADAR_SERIES__WEB_LABEL,
newWebLabel,
newWebLabel ) );
}
/**
*
*
* @generated
*/
public Label getCatLabel( )
{
return catLabel;
}
/**
*
*
* @generated
*/
public NotificationChain basicSetCatLabel( Label newCatLabel,
NotificationChain msgs )
{
Label oldCatLabel = catLabel;
catLabel = newCatLabel;
if ( eNotificationRequired( ) )
{
ENotificationImpl notification = new ENotificationImpl( this,
Notification.SET,
RadarTypePackage.RADAR_SERIES__CAT_LABEL,
oldCatLabel,
newCatLabel );
if ( msgs == null )
msgs = notification;
else
msgs.add( notification );
}
return msgs;
}
/**
*
*
* @generated
*/
public void setCatLabel( Label newCatLabel )
{
if ( newCatLabel != catLabel )
{
NotificationChain msgs = null;
if ( catLabel != null )
msgs = ( (InternalEObject) catLabel ).eInverseRemove( this,
EOPPOSITE_FEATURE_BASE
- RadarTypePackage.RADAR_SERIES__CAT_LABEL,
null,
msgs );
if ( newCatLabel != null )
msgs = ( (InternalEObject) newCatLabel ).eInverseAdd( this,
EOPPOSITE_FEATURE_BASE
- RadarTypePackage.RADAR_SERIES__CAT_LABEL,
null,
msgs );
msgs = basicSetCatLabel( newCatLabel, msgs );
if ( msgs != null )
msgs.dispatch( );
}
else if ( eNotificationRequired( ) )
eNotify( new ENotificationImpl( this,
Notification.SET,
RadarTypePackage.RADAR_SERIES__CAT_LABEL,
newCatLabel,
newCatLabel ) );
}
/**
*
*
* @generated
*/
public FormatSpecifier getWebLabelFormatSpecifier( )
{
return webLabelFormatSpecifier;
}
/**
*
*
* @generated
*/
public NotificationChain basicSetWebLabelFormatSpecifier(
FormatSpecifier newWebLabelFormatSpecifier, NotificationChain msgs )
{
FormatSpecifier oldWebLabelFormatSpecifier = webLabelFormatSpecifier;
webLabelFormatSpecifier = newWebLabelFormatSpecifier;
if ( eNotificationRequired( ) )
{
ENotificationImpl notification = new ENotificationImpl( this,
Notification.SET,
RadarTypePackage.RADAR_SERIES__WEB_LABEL_FORMAT_SPECIFIER,
oldWebLabelFormatSpecifier,
newWebLabelFormatSpecifier );
if ( msgs == null )
msgs = notification;
else
msgs.add( notification );
}
return msgs;
}
/**
*
*
* @generated
*/
public void setWebLabelFormatSpecifier(
FormatSpecifier newWebLabelFormatSpecifier )
{
if ( newWebLabelFormatSpecifier != webLabelFormatSpecifier )
{
NotificationChain msgs = null;
if ( webLabelFormatSpecifier != null )
msgs = ( (InternalEObject) webLabelFormatSpecifier ).eInverseRemove( this,
EOPPOSITE_FEATURE_BASE
- RadarTypePackage.RADAR_SERIES__WEB_LABEL_FORMAT_SPECIFIER,
null,
msgs );
if ( newWebLabelFormatSpecifier != null )
msgs = ( (InternalEObject) newWebLabelFormatSpecifier ).eInverseAdd( this,
EOPPOSITE_FEATURE_BASE
- RadarTypePackage.RADAR_SERIES__WEB_LABEL_FORMAT_SPECIFIER,
null,
msgs );
msgs = basicSetWebLabelFormatSpecifier( newWebLabelFormatSpecifier,
msgs );
if ( msgs != null )
msgs.dispatch( );
}
else if ( eNotificationRequired( ) )
eNotify( new ENotificationImpl( this,
Notification.SET,
RadarTypePackage.RADAR_SERIES__WEB_LABEL_FORMAT_SPECIFIER,
newWebLabelFormatSpecifier,
newWebLabelFormatSpecifier ) );
}
/**
*
*
* @generated
*/
public FormatSpecifier getCatLabelFormatSpecifier( )
{
return catLabelFormatSpecifier;
}
/**
*
*
* @generated
*/
public NotificationChain basicSetCatLabelFormatSpecifier(
FormatSpecifier newCatLabelFormatSpecifier, NotificationChain msgs )
{
FormatSpecifier oldCatLabelFormatSpecifier = catLabelFormatSpecifier;
catLabelFormatSpecifier = newCatLabelFormatSpecifier;
if ( eNotificationRequired( ) )
{
ENotificationImpl notification = new ENotificationImpl( this,
Notification.SET,
RadarTypePackage.RADAR_SERIES__CAT_LABEL_FORMAT_SPECIFIER,
oldCatLabelFormatSpecifier,
newCatLabelFormatSpecifier );
if ( msgs == null )
msgs = notification;
else
msgs.add( notification );
}
return msgs;
}
/**
*
*
* @generated
*/
public void setCatLabelFormatSpecifier(
FormatSpecifier newCatLabelFormatSpecifier )
{
if ( newCatLabelFormatSpecifier != catLabelFormatSpecifier )
{
NotificationChain msgs = null;
if ( catLabelFormatSpecifier != null )
msgs = ( (InternalEObject) catLabelFormatSpecifier ).eInverseRemove( this,
EOPPOSITE_FEATURE_BASE
- RadarTypePackage.RADAR_SERIES__CAT_LABEL_FORMAT_SPECIFIER,
null,
msgs );
if ( newCatLabelFormatSpecifier != null )
msgs = ( (InternalEObject) newCatLabelFormatSpecifier ).eInverseAdd( this,
EOPPOSITE_FEATURE_BASE
- RadarTypePackage.RADAR_SERIES__CAT_LABEL_FORMAT_SPECIFIER,
null,
msgs );
msgs = basicSetCatLabelFormatSpecifier( newCatLabelFormatSpecifier,
msgs );
if ( msgs != null )
msgs.dispatch( );
}
else if ( eNotificationRequired( ) )
eNotify( new ENotificationImpl( this,
Notification.SET,
RadarTypePackage.RADAR_SERIES__CAT_LABEL_FORMAT_SPECIFIER,
newCatLabelFormatSpecifier,
newCatLabelFormatSpecifier ) );
}
/**
*
*
* @generated
*/
public BigInteger getPlotSteps( )
{
return plotSteps;
}
/**
*
*
* @generated
*/
public void setPlotSteps( BigInteger newPlotSteps )
{
BigInteger oldPlotSteps = plotSteps;
plotSteps = newPlotSteps;
boolean oldPlotStepsESet = plotStepsESet;
plotStepsESet = true;
if ( eNotificationRequired( ) )
eNotify( new ENotificationImpl( this,
Notification.SET,
RadarTypePackage.RADAR_SERIES__PLOT_STEPS,
oldPlotSteps,
plotSteps,
!oldPlotStepsESet ) );
}
/**
*
*
* @generated
*/
public void unsetPlotSteps( )
{
BigInteger oldPlotSteps = plotSteps;
boolean oldPlotStepsESet = plotStepsESet;
plotSteps = PLOT_STEPS_EDEFAULT;
plotStepsESet = false;
if ( eNotificationRequired( ) )
eNotify( new ENotificationImpl( this,
Notification.UNSET,
RadarTypePackage.RADAR_SERIES__PLOT_STEPS,
oldPlotSteps,
PLOT_STEPS_EDEFAULT,
oldPlotStepsESet ) );
}
/**
*
*
* @generated
*/
public boolean isSetPlotSteps( )
{
return plotStepsESet;
}
/**
*
*
* @generated
*/
@Override
public NotificationChain eInverseRemove( InternalEObject otherEnd,
int featureID, NotificationChain msgs )
{
switch ( featureID )
{
case RadarTypePackage.RADAR_SERIES__MARKER :
return basicSetMarker( null, msgs );
case RadarTypePackage.RADAR_SERIES__LINE_ATTRIBUTES :
return basicSetLineAttributes( null, msgs );
case RadarTypePackage.RADAR_SERIES__WEB_LINE_ATTRIBUTES :
return basicSetWebLineAttributes( null, msgs );
case RadarTypePackage.RADAR_SERIES__WEB_LABEL :
return basicSetWebLabel( null, msgs );
case RadarTypePackage.RADAR_SERIES__CAT_LABEL :
return basicSetCatLabel( null, msgs );
case RadarTypePackage.RADAR_SERIES__WEB_LABEL_FORMAT_SPECIFIER :
return basicSetWebLabelFormatSpecifier( null, msgs );
case RadarTypePackage.RADAR_SERIES__CAT_LABEL_FORMAT_SPECIFIER :
return basicSetCatLabelFormatSpecifier( null, msgs );
}
return super.eInverseRemove( otherEnd, featureID, msgs );
}
/**
*
*
* @generated
*/
@Override
public Object eGet( int featureID, boolean resolve, boolean coreType )
{
switch ( featureID )
{
case RadarTypePackage.RADAR_SERIES__MARKER :
return getMarker( );
case RadarTypePackage.RADAR_SERIES__LINE_ATTRIBUTES :
return getLineAttributes( );
case RadarTypePackage.RADAR_SERIES__PALETTE_LINE_COLOR :
return isPaletteLineColor( );
case RadarTypePackage.RADAR_SERIES__BACKGROUND_OVAL_TRANSPARENT :
return isBackgroundOvalTransparent( );
case RadarTypePackage.RADAR_SERIES__WEB_LINE_ATTRIBUTES :
return getWebLineAttributes( );
case RadarTypePackage.RADAR_SERIES__SHOW_WEB_LABELS :
return isShowWebLabels( );
case RadarTypePackage.RADAR_SERIES__SHOW_CAT_LABELS :
return isShowCatLabels( );
case RadarTypePackage.RADAR_SERIES__RADAR_AUTO_SCALE :
return isRadarAutoScale( );
case RadarTypePackage.RADAR_SERIES__WEB_LABEL_MAX :
return getWebLabelMax( );
case RadarTypePackage.RADAR_SERIES__WEB_LABEL_MIN :
return getWebLabelMin( );
case RadarTypePackage.RADAR_SERIES__WEB_LABEL_UNIT :
return getWebLabelUnit( );
case RadarTypePackage.RADAR_SERIES__FILL_POLYS :
return isFillPolys( );
case RadarTypePackage.RADAR_SERIES__CONNECT_ENDPOINTS :
return isConnectEndpoints( );
case RadarTypePackage.RADAR_SERIES__WEB_LABEL :
return getWebLabel( );
case RadarTypePackage.RADAR_SERIES__CAT_LABEL :
return getCatLabel( );
case RadarTypePackage.RADAR_SERIES__WEB_LABEL_FORMAT_SPECIFIER :
return getWebLabelFormatSpecifier( );
case RadarTypePackage.RADAR_SERIES__CAT_LABEL_FORMAT_SPECIFIER :
return getCatLabelFormatSpecifier( );
case RadarTypePackage.RADAR_SERIES__PLOT_STEPS :
return getPlotSteps( );
}
return super.eGet( featureID, resolve, coreType );
}
/**
*
*
* @generated
*/
@Override
public void eSet( int featureID, Object newValue )
{
switch ( featureID )
{
case RadarTypePackage.RADAR_SERIES__MARKER :
setMarker( (Marker) newValue );
return;
case RadarTypePackage.RADAR_SERIES__LINE_ATTRIBUTES :
setLineAttributes( (LineAttributes) newValue );
return;
case RadarTypePackage.RADAR_SERIES__PALETTE_LINE_COLOR :
setPaletteLineColor( (Boolean) newValue );
return;
case RadarTypePackage.RADAR_SERIES__BACKGROUND_OVAL_TRANSPARENT :
setBackgroundOvalTransparent( (Boolean) newValue );
return;
case RadarTypePackage.RADAR_SERIES__WEB_LINE_ATTRIBUTES :
setWebLineAttributes( (LineAttributes) newValue );
return;
case RadarTypePackage.RADAR_SERIES__SHOW_WEB_LABELS :
setShowWebLabels( (Boolean) newValue );
return;
case RadarTypePackage.RADAR_SERIES__SHOW_CAT_LABELS :
setShowCatLabels( (Boolean) newValue );
return;
case RadarTypePackage.RADAR_SERIES__RADAR_AUTO_SCALE :
setRadarAutoScale( (Boolean) newValue );
return;
case RadarTypePackage.RADAR_SERIES__WEB_LABEL_MAX :
setWebLabelMax( (Double) newValue );
return;
case RadarTypePackage.RADAR_SERIES__WEB_LABEL_MIN :
setWebLabelMin( (Double) newValue );
return;
case RadarTypePackage.RADAR_SERIES__WEB_LABEL_UNIT :
setWebLabelUnit( (String) newValue );
return;
case RadarTypePackage.RADAR_SERIES__FILL_POLYS :
setFillPolys( (Boolean) newValue );
return;
case RadarTypePackage.RADAR_SERIES__CONNECT_ENDPOINTS :
setConnectEndpoints( (Boolean) newValue );
return;
case RadarTypePackage.RADAR_SERIES__WEB_LABEL :
setWebLabel( (Label) newValue );
return;
case RadarTypePackage.RADAR_SERIES__CAT_LABEL :
setCatLabel( (Label) newValue );
return;
case RadarTypePackage.RADAR_SERIES__WEB_LABEL_FORMAT_SPECIFIER :
setWebLabelFormatSpecifier( (FormatSpecifier) newValue );
return;
case RadarTypePackage.RADAR_SERIES__CAT_LABEL_FORMAT_SPECIFIER :
setCatLabelFormatSpecifier( (FormatSpecifier) newValue );
return;
case RadarTypePackage.RADAR_SERIES__PLOT_STEPS :
setPlotSteps( (BigInteger) newValue );
return;
}
super.eSet( featureID, newValue );
}
/**
*
*
* @generated
*/
@Override
public void eUnset( int featureID )
{
switch ( featureID )
{
case RadarTypePackage.RADAR_SERIES__MARKER :
setMarker( (Marker) null );
return;
case RadarTypePackage.RADAR_SERIES__LINE_ATTRIBUTES :
setLineAttributes( (LineAttributes) null );
return;
case RadarTypePackage.RADAR_SERIES__PALETTE_LINE_COLOR :
unsetPaletteLineColor( );
return;
case RadarTypePackage.RADAR_SERIES__BACKGROUND_OVAL_TRANSPARENT :
unsetBackgroundOvalTransparent( );
return;
case RadarTypePackage.RADAR_SERIES__WEB_LINE_ATTRIBUTES :
setWebLineAttributes( (LineAttributes) null );
return;
case RadarTypePackage.RADAR_SERIES__SHOW_WEB_LABELS :
unsetShowWebLabels( );
return;
case RadarTypePackage.RADAR_SERIES__SHOW_CAT_LABELS :
unsetShowCatLabels( );
return;
case RadarTypePackage.RADAR_SERIES__RADAR_AUTO_SCALE :
unsetRadarAutoScale( );
return;
case RadarTypePackage.RADAR_SERIES__WEB_LABEL_MAX :
unsetWebLabelMax( );
return;
case RadarTypePackage.RADAR_SERIES__WEB_LABEL_MIN :
unsetWebLabelMin( );
return;
case RadarTypePackage.RADAR_SERIES__WEB_LABEL_UNIT :
unsetWebLabelUnit( );
return;
case RadarTypePackage.RADAR_SERIES__FILL_POLYS :
unsetFillPolys( );
return;
case RadarTypePackage.RADAR_SERIES__CONNECT_ENDPOINTS :
unsetConnectEndpoints( );
return;
case RadarTypePackage.RADAR_SERIES__WEB_LABEL :
setWebLabel( (Label) null );
return;
case RadarTypePackage.RADAR_SERIES__CAT_LABEL :
setCatLabel( (Label) null );
return;
case RadarTypePackage.RADAR_SERIES__WEB_LABEL_FORMAT_SPECIFIER :
setWebLabelFormatSpecifier( (FormatSpecifier) null );
return;
case RadarTypePackage.RADAR_SERIES__CAT_LABEL_FORMAT_SPECIFIER :
setCatLabelFormatSpecifier( (FormatSpecifier) null );
return;
case RadarTypePackage.RADAR_SERIES__PLOT_STEPS :
unsetPlotSteps( );
return;
}
super.eUnset( featureID );
}
/**
*
*
* @generated
*/
@Override
public boolean eIsSet( int featureID )
{
switch ( featureID )
{
case RadarTypePackage.RADAR_SERIES__MARKER :
return marker != null;
case RadarTypePackage.RADAR_SERIES__LINE_ATTRIBUTES :
return lineAttributes != null;
case RadarTypePackage.RADAR_SERIES__PALETTE_LINE_COLOR :
return isSetPaletteLineColor( );
case RadarTypePackage.RADAR_SERIES__BACKGROUND_OVAL_TRANSPARENT :
return isSetBackgroundOvalTransparent( );
case RadarTypePackage.RADAR_SERIES__WEB_LINE_ATTRIBUTES :
return webLineAttributes != null;
case RadarTypePackage.RADAR_SERIES__SHOW_WEB_LABELS :
return isSetShowWebLabels( );
case RadarTypePackage.RADAR_SERIES__SHOW_CAT_LABELS :
return isSetShowCatLabels( );
case RadarTypePackage.RADAR_SERIES__RADAR_AUTO_SCALE :
return isSetRadarAutoScale( );
case RadarTypePackage.RADAR_SERIES__WEB_LABEL_MAX :
return isSetWebLabelMax( );
case RadarTypePackage.RADAR_SERIES__WEB_LABEL_MIN :
return isSetWebLabelMin( );
case RadarTypePackage.RADAR_SERIES__WEB_LABEL_UNIT :
return isSetWebLabelUnit( );
case RadarTypePackage.RADAR_SERIES__FILL_POLYS :
return isSetFillPolys( );
case RadarTypePackage.RADAR_SERIES__CONNECT_ENDPOINTS :
return isSetConnectEndpoints( );
case RadarTypePackage.RADAR_SERIES__WEB_LABEL :
return webLabel != null;
case RadarTypePackage.RADAR_SERIES__CAT_LABEL :
return catLabel != null;
case RadarTypePackage.RADAR_SERIES__WEB_LABEL_FORMAT_SPECIFIER :
return webLabelFormatSpecifier != null;
case RadarTypePackage.RADAR_SERIES__CAT_LABEL_FORMAT_SPECIFIER :
return catLabelFormatSpecifier != null;
case RadarTypePackage.RADAR_SERIES__PLOT_STEPS :
return isSetPlotSteps( );
}
return super.eIsSet( featureID );
}
/**
*
*
* @generated
*/
@Override
public String toString( )
{
if ( eIsProxy( ) )
return super.toString( );
StringBuffer result = new StringBuffer( super.toString( ) );
result.append( " (paletteLineColor: " ); //$NON-NLS-1$
if ( paletteLineColorESet )
result.append( paletteLineColor );
else
result.append( "" ); //$NON-NLS-1$
result.append( ", backgroundOvalTransparent: " ); //$NON-NLS-1$
if ( backgroundOvalTransparentESet )
result.append( backgroundOvalTransparent );
else
result.append( "" ); //$NON-NLS-1$
result.append( ", showWebLabels: " ); //$NON-NLS-1$
if ( showWebLabelsESet )
result.append( showWebLabels );
else
result.append( "" ); //$NON-NLS-1$
result.append( ", showCatLabels: " ); //$NON-NLS-1$
if ( showCatLabelsESet )
result.append( showCatLabels );
else
result.append( "" ); //$NON-NLS-1$
result.append( ", radarAutoScale: " ); //$NON-NLS-1$
if ( radarAutoScaleESet )
result.append( radarAutoScale );
else
result.append( "" ); //$NON-NLS-1$
result.append( ", webLabelMax: " ); //$NON-NLS-1$
if ( webLabelMaxESet )
result.append( webLabelMax );
else
result.append( "" ); //$NON-NLS-1$
result.append( ", webLabelMin: " ); //$NON-NLS-1$
if ( webLabelMinESet )
result.append( webLabelMin );
else
result.append( "" ); //$NON-NLS-1$
result.append( ", webLabelUnit: " ); //$NON-NLS-1$
if ( webLabelUnitESet )
result.append( webLabelUnit );
else
result.append( "" ); //$NON-NLS-1$
result.append( ", fillPolys: " ); //$NON-NLS-1$
if ( fillPolysESet )
result.append( fillPolys );
else
result.append( "" ); //$NON-NLS-1$
result.append( ", connectEndpoints: " ); //$NON-NLS-1$
if ( connectEndpointsESet )
result.append( connectEndpoints );
else
result.append( "" ); //$NON-NLS-1$
result.append( ", plotSteps: " ); //$NON-NLS-1$
if ( plotStepsESet )
result.append( plotSteps );
else
result.append( "" ); //$NON-NLS-1$
result.append( ')' );
return result.toString( );
}
/**
* @generated
*/
protected void set( RadarSeries src )
{
super.set( src );
// children
if ( src.getMarker( ) != null )
{
setMarker( src.getMarker( ).copyInstance( ) );
}
if ( src.getLineAttributes( ) != null )
{
setLineAttributes( src.getLineAttributes( ).copyInstance( ) );
}
if ( src.getWebLineAttributes( ) != null )
{
setWebLineAttributes( src.getWebLineAttributes( ).copyInstance( ) );
}
if ( src.getWebLabel( ) != null )
{
setWebLabel( src.getWebLabel( ).copyInstance( ) );
}
if ( src.getCatLabel( ) != null )
{
setCatLabel( src.getCatLabel( ).copyInstance( ) );
}
if ( src.getWebLabelFormatSpecifier( ) != null )
{
setWebLabelFormatSpecifier( src.getWebLabelFormatSpecifier( )
.copyInstance( ) );
}
if ( src.getCatLabelFormatSpecifier( ) != null )
{
setCatLabelFormatSpecifier( src.getCatLabelFormatSpecifier( )
.copyInstance( ) );
}
// attributes
paletteLineColor = src.isPaletteLineColor( );
paletteLineColorESet = src.isSetPaletteLineColor( );
backgroundOvalTransparent = src.isBackgroundOvalTransparent( );
backgroundOvalTransparentESet = src.isSetBackgroundOvalTransparent( );
showWebLabels = src.isShowWebLabels( );
showWebLabelsESet = src.isSetShowWebLabels( );
showCatLabels = src.isShowCatLabels( );
showCatLabelsESet = src.isSetShowCatLabels( );
radarAutoScale = src.isRadarAutoScale( );
radarAutoScaleESet = src.isSetRadarAutoScale( );
webLabelMax = src.getWebLabelMax( );
webLabelMaxESet = src.isSetWebLabelMax( );
webLabelMin = src.getWebLabelMin( );
webLabelMinESet = src.isSetWebLabelMin( );
webLabelUnit = src.getWebLabelUnit( );
webLabelUnitESet = src.isSetWebLabelUnit( );
fillPolys = src.isFillPolys( );
fillPolysESet = src.isSetFillPolys( );
connectEndpoints = src.isConnectEndpoints( );
connectEndpointsESet = src.isSetConnectEndpoints( );
plotSteps = src.getPlotSteps( );
plotStepsESet = src.isSetPlotSteps( );
}
/**
* @generated
*/
public RadarSeries copyInstance( )
{
RadarSeriesImpl dest = new RadarSeriesImpl( );
dest.set( this );
return dest;
}
public static final RadarSeries create( )
{
final RadarSeries se = org.eclipse.birt.chart.examples.radar.model.type.RadarTypeFactory.eINSTANCE.createRadarSeries( );
( (RadarSeriesImpl) se ).initialize( );
return se;
}
public static final RadarSeries createDefault( )
{
final RadarSeries se = org.eclipse.birt.chart.examples.radar.model.type.RadarTypeFactory.eINSTANCE.createRadarSeries( );
( (RadarSeriesImpl) se ).initDefault( );
return se;
}
/**
* Initializes all member variables within this object recursively
*
* Note: Manually written
*/
protected void initialize( )
{
super.initialize( );
final LineAttributes lia = AttributeFactory.eINSTANCE.createLineAttributes( );
( (LineAttributesImpl) lia ).set( null, LineStyle.SOLID_LITERAL, 1 );
lia.setVisible( true );
setLineAttributes( lia );
final LineAttributes weblia = AttributeFactory.eINSTANCE.createLineAttributes( );
( (LineAttributesImpl) weblia ).set( ColorDefinitionImpl.BLACK( ), LineStyle.SOLID_LITERAL, 1 );
weblia.setVisible( true );
setWebLineAttributes( weblia );
final Marker m = AttributeFactory.eINSTANCE.createMarker( );
m.setType( MarkerType.BOX_LITERAL );
m.setSize( 4 );
m.setVisible( true );
LineAttributes la = AttributeFactory.eINSTANCE.createLineAttributes( );
la.setVisible( true );
m.setOutline( la );
setMarker( m );
final Label lab = LabelImpl.create( );
setWebLabel( lab );
final Label clab = LabelImpl.create( );
setCatLabel( clab );
setPaletteLineColor( true );
}
protected void initDefault( )
{
super.initDefault( );
final LineAttributes lia = LineAttributesImpl.createDefault( null, LineStyle.SOLID_LITERAL, 1, true );
setLineAttributes( lia );
final LineAttributes weblia = LineAttributesImpl.createDefault( null, LineStyle.SOLID_LITERAL, 1, true );
setWebLineAttributes( weblia );
final Marker m = MarkerImpl.createDefault( MarkerType.BOX_LITERAL, 4 , true );
LineAttributes la = LineAttributesImpl.createDefault( true );
m.setOutline( la );
setMarker( m );
final Label lab = LabelImpl.createDefault( );
setWebLabel( lab );
final Label clab = LabelImpl.createDefault( );
setCatLabel( clab );
paletteLineColor = true;
}
@Override
public String getDisplayName( )
{
return Messages.getString( "RadarSeriesImpl.displayName" ); //$NON-NLS-1$
}
@Override
public NameSet getLabelPositionScope( ChartDimension dimension )
{
return LiteralHelper.outPositionSet;
}
} // RadarSeriesImpl