Пример #1
0
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 @Override
 public void eUnset(int featureID) {
   switch (featureID) {
     case TypePackage.LINE_SERIES__MARKERS:
       getMarkers().clear();
       return;
     case TypePackage.LINE_SERIES__MARKER:
       setMarker((Marker) null);
       return;
     case TypePackage.LINE_SERIES__LINE_ATTRIBUTES:
       setLineAttributes((LineAttributes) null);
       return;
     case TypePackage.LINE_SERIES__PALETTE_LINE_COLOR:
       unsetPaletteLineColor();
       return;
     case TypePackage.LINE_SERIES__CURVE:
       unsetCurve();
       return;
     case TypePackage.LINE_SERIES__SHADOW_COLOR:
       setShadowColor((ColorDefinition) null);
       return;
     case TypePackage.LINE_SERIES__CONNECT_MISSING_VALUE:
       unsetConnectMissingValue();
       return;
   }
   super.eUnset(featureID);
 }
Пример #2
0
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 @SuppressWarnings("unchecked")
 @Override
 public void eSet(int featureID, Object newValue) {
   switch (featureID) {
     case TypePackage.LINE_SERIES__MARKERS:
       getMarkers().clear();
       getMarkers().addAll((Collection<? extends Marker>) newValue);
       return;
     case TypePackage.LINE_SERIES__MARKER:
       setMarker((Marker) newValue);
       return;
     case TypePackage.LINE_SERIES__LINE_ATTRIBUTES:
       setLineAttributes((LineAttributes) newValue);
       return;
     case TypePackage.LINE_SERIES__PALETTE_LINE_COLOR:
       setPaletteLineColor((Boolean) newValue);
       return;
     case TypePackage.LINE_SERIES__CURVE:
       setCurve((Boolean) newValue);
       return;
     case TypePackage.LINE_SERIES__SHADOW_COLOR:
       setShadowColor((ColorDefinition) newValue);
       return;
     case TypePackage.LINE_SERIES__CONNECT_MISSING_VALUE:
       setConnectMissingValue((Boolean) newValue);
       return;
   }
   super.eSet(featureID, newValue);
 }
Пример #3
0
  /**
   * Initializes all member variables within this object recursively
   *
   * <p>Note: Manually written
   */
  protected void initDefault() // SUBCLASSED BY ScatterSeriesImpl
      {
    super.initDefault();

    final LineAttributes lia =
        LineAttributesImpl.createDefault(null, LineStyle.SOLID_LITERAL, 1, true);
    setLineAttributes(lia);
    labelPosition = Position.ABOVE_LITERAL;

    final Marker m = MarkerImpl.createDefault(MarkerType.BOX_LITERAL, 4, true);
    LineAttributes la = LineAttributesImpl.createDefault(true);
    m.setOutline(la);
    getMarkers().add(m);

    paletteLineColor = true;
  }
Пример #4
0
  /**
   * Initializes all member variables within this object recursively
   *
   * <p>Note: Manually written
   */
  protected void initialize() // SUBCLASSED BY ScatterSeriesImpl
      {
    super.initialize();

    final LineAttributes lia = AttributeFactory.eINSTANCE.createLineAttributes();
    ((LineAttributesImpl) lia).set(ColorDefinitionImpl.BLACK(), LineStyle.SOLID_LITERAL, 1);
    lia.setVisible(true);
    setLineAttributes(lia);
    setLabelPosition(Position.ABOVE_LITERAL);

    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);
    getMarkers().add(m);
    setPaletteLineColor(true);
  }
Пример #5
0
  /** @generated */
  protected void set(LineSeries src) {

    super.set(src);

    // children

    if (src.getMarkers() != null) {
      EList<Marker> list = getMarkers();
      for (Marker element : src.getMarkers()) {
        list.add(element.copyInstance());
      }
    }

    if (src.getMarker() != null) {
      setMarker(src.getMarker().copyInstance());
    }

    if (src.getLineAttributes() != null) {
      setLineAttributes(src.getLineAttributes().copyInstance());
    }

    if (src.getShadowColor() != null) {
      setShadowColor(src.getShadowColor().copyInstance());
    }

    // attributes

    paletteLineColor = src.isPaletteLineColor();

    paletteLineColorESet = src.isSetPaletteLineColor();

    curve = src.isCurve();

    curveESet = src.isSetCurve();

    connectMissingValue = src.isConnectMissingValue();

    connectMissingValueESet = src.isSetConnectMissingValue();
  }