-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
JFXEX-00365: ChartFX: Added ScatterChart to Renderer #407
- Loading branch information
Showing
53 changed files
with
2,327 additions
and
36 deletions.
There are no files selected for viewing
Binary file modified
BIN
+1.03 KB
(110%)
...dit/bin/de/dc/javafx/xcore/workbench/chart/provider/ChartItemProviderAdapterFactory.class
Binary file not shown.
Binary file modified
BIN
+127 Bytes
(100%)
...chart.edit/bin/de/dc/javafx/xcore/workbench/chart/provider/ChartProjectItemProvider.class
Binary file not shown.
Binary file added
BIN
+2.72 KB
...t.edit/bin/de/dc/javafx/xcore/workbench/chart/provider/ScatterChart3dFXItemProvider.class
Binary file not shown.
Binary file modified
BIN
+115 Bytes
(100%)
...nch.chart.edit/bin/de/dc/javafx/xcore/workbench/chart/provider/SeriesFXItemProvider.class
Binary file not shown.
Binary file added
BIN
+3.81 KB
...h.chart.edit/bin/de/dc/javafx/xcore/workbench/chart/provider/XYZChartFXItemProvider.class
Binary file not shown.
Binary file added
BIN
+6.23 KB
....chart.edit/bin/de/dc/javafx/xcore/workbench/chart/provider/XYZSeriesFXItemProvider.class
Binary file not shown.
Binary file added
BIN
+4.28 KB
...h.chart.edit/bin/de/dc/javafx/xcore/workbench/chart/provider/XYZValueFXItemProvider.class
Binary file not shown.
Binary file added
BIN
+129 Bytes
...t/de.dc.javafx.xcore.workbench.chart.edit/icons/full/obj16/ScatterChart3dFX.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+129 Bytes
...ch.chart/de.dc.javafx.xcore.workbench.chart.edit/icons/full/obj16/XYZSeries.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+129 Bytes
....chart/de.dc.javafx.xcore.workbench.chart.edit/icons/full/obj16/XYZSeriesFX.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+129 Bytes
...h.chart/de.dc.javafx.xcore.workbench.chart.edit/icons/full/obj16/XYZValueFX.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
106 changes: 106 additions & 0 deletions
106
...dit/src-gen/de/dc/javafx/xcore/workbench/chart/provider/ScatterChart3dFXItemProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
/** | ||
*/ | ||
package de.dc.javafx.xcore.workbench.chart.provider; | ||
|
||
import de.dc.javafx.xcore.workbench.chart.ScatterChart3dFX; | ||
|
||
import java.util.Collection; | ||
import java.util.List; | ||
|
||
import org.eclipse.emf.common.notify.AdapterFactory; | ||
import org.eclipse.emf.common.notify.Notification; | ||
|
||
import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; | ||
|
||
/** | ||
* This is the item provider adapter for a {@link de.dc.javafx.xcore.workbench.chart.ScatterChart3dFX} object. | ||
* <!-- begin-user-doc --> | ||
* <!-- end-user-doc --> | ||
* @generated | ||
*/ | ||
public class ScatterChart3dFXItemProvider extends XYZChartFXItemProvider { | ||
/** | ||
* This constructs an instance from a factory and a notifier. | ||
* <!-- begin-user-doc --> | ||
* <!-- end-user-doc --> | ||
* @generated | ||
*/ | ||
public ScatterChart3dFXItemProvider(AdapterFactory adapterFactory) { | ||
super(adapterFactory); | ||
} | ||
|
||
/** | ||
* This returns the property descriptors for the adapted class. | ||
* <!-- begin-user-doc --> | ||
* <!-- end-user-doc --> | ||
* @generated | ||
*/ | ||
@Override | ||
public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { | ||
if (itemPropertyDescriptors == null) { | ||
super.getPropertyDescriptors(object); | ||
|
||
} | ||
return itemPropertyDescriptors; | ||
} | ||
|
||
/** | ||
* This returns ScatterChart3dFX.gif. | ||
* <!-- begin-user-doc --> | ||
* <!-- end-user-doc --> | ||
* @generated | ||
*/ | ||
@Override | ||
public Object getImage(Object object) { | ||
return overlayImage(object, getResourceLocator().getImage("full/obj16/ScatterChart3dFX")); | ||
} | ||
|
||
/** | ||
* <!-- begin-user-doc --> | ||
* <!-- end-user-doc --> | ||
* @generated | ||
*/ | ||
@Override | ||
protected boolean shouldComposeCreationImage() { | ||
return true; | ||
} | ||
|
||
/** | ||
* This returns the label text for the adapted class. | ||
* <!-- begin-user-doc --> | ||
* <!-- end-user-doc --> | ||
* @generated | ||
*/ | ||
@Override | ||
public String getText(Object object) { | ||
String label = ((ScatterChart3dFX) object).getName(); | ||
return label == null || label.length() == 0 ? getString("_UI_ScatterChart3dFX_type") | ||
: getString("_UI_ScatterChart3dFX_type") + " " + label; | ||
} | ||
|
||
/** | ||
* This handles model notifications by calling {@link #updateChildren} to update any cached | ||
* children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. | ||
* <!-- begin-user-doc --> | ||
* <!-- end-user-doc --> | ||
* @generated | ||
*/ | ||
@Override | ||
public void notifyChanged(Notification notification) { | ||
updateChildren(notification); | ||
super.notifyChanged(notification); | ||
} | ||
|
||
/** | ||
* This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children | ||
* that can be created under this object. | ||
* <!-- begin-user-doc --> | ||
* <!-- end-user-doc --> | ||
* @generated | ||
*/ | ||
@Override | ||
protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { | ||
super.collectNewChildDescriptors(newChildDescriptors, object); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
139 changes: 139 additions & 0 deletions
139
...hart.edit/src-gen/de/dc/javafx/xcore/workbench/chart/provider/XYZChartFXItemProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,139 @@ | ||
/** | ||
*/ | ||
package de.dc.javafx.xcore.workbench.chart.provider; | ||
|
||
import de.dc.javafx.xcore.workbench.chart.ChartFactory; | ||
import de.dc.javafx.xcore.workbench.chart.ChartPackage; | ||
import de.dc.javafx.xcore.workbench.chart.XYZChartFX; | ||
|
||
import java.util.Collection; | ||
import java.util.List; | ||
|
||
import org.eclipse.emf.common.notify.AdapterFactory; | ||
import org.eclipse.emf.common.notify.Notification; | ||
|
||
import org.eclipse.emf.ecore.EStructuralFeature; | ||
|
||
import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; | ||
import org.eclipse.emf.edit.provider.ViewerNotification; | ||
|
||
/** | ||
* This is the item provider adapter for a {@link de.dc.javafx.xcore.workbench.chart.XYZChartFX} object. | ||
* <!-- begin-user-doc --> | ||
* <!-- end-user-doc --> | ||
* @generated | ||
*/ | ||
public class XYZChartFXItemProvider extends ChartFXItemProvider { | ||
/** | ||
* This constructs an instance from a factory and a notifier. | ||
* <!-- begin-user-doc --> | ||
* <!-- end-user-doc --> | ||
* @generated | ||
*/ | ||
public XYZChartFXItemProvider(AdapterFactory adapterFactory) { | ||
super(adapterFactory); | ||
} | ||
|
||
/** | ||
* This returns the property descriptors for the adapted class. | ||
* <!-- begin-user-doc --> | ||
* <!-- end-user-doc --> | ||
* @generated | ||
*/ | ||
@Override | ||
public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { | ||
if (itemPropertyDescriptors == null) { | ||
super.getPropertyDescriptors(object); | ||
|
||
} | ||
return itemPropertyDescriptors; | ||
} | ||
|
||
/** | ||
* This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an | ||
* {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or | ||
* {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. | ||
* <!-- begin-user-doc --> | ||
* <!-- end-user-doc --> | ||
* @generated | ||
*/ | ||
@Override | ||
public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) { | ||
if (childrenFeatures == null) { | ||
super.getChildrenFeatures(object); | ||
childrenFeatures.add(ChartPackage.Literals.XYZ_CHART_FX__SERIES); | ||
} | ||
return childrenFeatures; | ||
} | ||
|
||
/** | ||
* <!-- begin-user-doc --> | ||
* <!-- end-user-doc --> | ||
* @generated | ||
*/ | ||
@Override | ||
protected EStructuralFeature getChildFeature(Object object, Object child) { | ||
// Check the type of the specified child object and return the proper feature to use for | ||
// adding (see {@link AddCommand}) it as a child. | ||
|
||
return super.getChildFeature(object, child); | ||
} | ||
|
||
/** | ||
* <!-- begin-user-doc --> | ||
* <!-- end-user-doc --> | ||
* @generated | ||
*/ | ||
@Override | ||
protected boolean shouldComposeCreationImage() { | ||
return true; | ||
} | ||
|
||
/** | ||
* This returns the label text for the adapted class. | ||
* <!-- begin-user-doc --> | ||
* <!-- end-user-doc --> | ||
* @generated | ||
*/ | ||
@Override | ||
public String getText(Object object) { | ||
String label = ((XYZChartFX) object).getName(); | ||
return label == null || label.length() == 0 ? getString("_UI_XYZChartFX_type") | ||
: getString("_UI_XYZChartFX_type") + " " + label; | ||
} | ||
|
||
/** | ||
* This handles model notifications by calling {@link #updateChildren} to update any cached | ||
* children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. | ||
* <!-- begin-user-doc --> | ||
* <!-- end-user-doc --> | ||
* @generated | ||
*/ | ||
@Override | ||
public void notifyChanged(Notification notification) { | ||
updateChildren(notification); | ||
|
||
switch (notification.getFeatureID(XYZChartFX.class)) { | ||
case ChartPackage.XYZ_CHART_FX__SERIES: | ||
fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); | ||
return; | ||
} | ||
super.notifyChanged(notification); | ||
} | ||
|
||
/** | ||
* This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children | ||
* that can be created under this object. | ||
* <!-- begin-user-doc --> | ||
* <!-- end-user-doc --> | ||
* @generated | ||
*/ | ||
@Override | ||
protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { | ||
super.collectNewChildDescriptors(newChildDescriptors, object); | ||
|
||
newChildDescriptors.add(createChildParameter(ChartPackage.Literals.XYZ_CHART_FX__SERIES, | ||
ChartFactory.eINSTANCE.createXYZSeriesFX())); | ||
} | ||
|
||
} |
Oops, something went wrong.