├── maven ├── .gitignore ├── .project └── SWTChart4Mvn.aggran ├── org.eclipse.swtchart ├── .gitignore ├── .settings │ └── org.eclipse.core.resources.prefs ├── swtchart.png ├── src │ └── org │ │ └── eclipse │ │ └── swtchart │ │ ├── model │ │ ├── messages.properties │ │ ├── messages_fr.properties │ │ ├── messages_de.properties │ │ ├── SeriesModel.java │ │ ├── IndexedSeriesModel.java │ │ └── Messages.java │ │ ├── internal │ │ ├── messages.properties │ │ ├── messages_fr.properties │ │ ├── axis │ │ │ ├── messages_de.properties │ │ │ ├── messages_fr.properties │ │ │ └── messages.properties │ │ ├── messages_de.properties │ │ ├── series │ │ │ ├── messages.properties │ │ │ └── messages_fr.properties │ │ ├── ChartLayoutData.java │ │ └── ChartTitle.java │ │ ├── IEnumLabel.java │ │ ├── IDisposeListener.java │ │ ├── ICustomPaintListener.java │ │ └── Antialias.java ├── build.properties ├── .classpath ├── about.ini ├── META-INF │ └── MANIFEST.MF └── .project ├── org.eclipse.swtchart.rcptt ├── .gitignore ├── .settings │ └── org.eclipse.core.resources.prefs ├── rcptt.properties ├── .project ├── SWTChart.suite └── Contexts │ └── Clear_Workspace.ctx ├── org.eclipse.swtchart.test ├── .gitignore ├── .settings │ └── org.eclipse.core.resources.prefs ├── build.properties ├── .classpath ├── META-INF │ └── MANIFEST.MF ├── src │ └── org │ │ └── eclipse │ │ └── swtchart │ │ └── test │ │ └── testmodel │ │ └── BusinessObject.java └── .project ├── org.eclipse.swtchart.examples ├── .gitignore ├── .settings │ └── org.eclipse.core.resources.prefs ├── build.properties ├── .classpath ├── META-INF │ └── MANIFEST.MF └── .project ├── org.eclipse.swtchart.export ├── .gitignore ├── .settings │ └── org.eclipse.core.resources.prefs ├── src │ └── org │ │ └── eclipse │ │ └── swtchart │ │ └── export │ │ ├── menu │ │ ├── bitmap │ │ │ ├── messages_fr.properties │ │ │ ├── messages.properties │ │ │ ├── messages_de.properties │ │ │ └── PNGExportHandler.java │ │ ├── messages.properties │ │ ├── messages_de.properties │ │ ├── messages_fr.properties │ │ ├── text │ │ │ ├── messages_fr.properties │ │ │ └── messages.properties │ │ └── vector │ │ │ ├── messages.properties │ │ │ ├── messages_fr.properties │ │ │ ├── messages_de.properties │ │ │ └── IVectorDataExport.java │ │ └── core │ │ ├── messages_de.properties │ │ ├── messages_fr.properties │ │ ├── messages.properties │ │ └── ISeriesExportConverter.java ├── build.properties ├── .classpath ├── .project └── META-INF │ └── MANIFEST.MF ├── org.eclipse.swtchart.extensions ├── .gitignore ├── src │ ├── resources │ │ └── icons │ │ │ ├── 16x16 │ │ │ ├── r.gif │ │ │ ├── csv.gif │ │ │ ├── tex.gif │ │ │ ├── bitmap.gif │ │ │ ├── figure.gif │ │ │ ├── legend.gif │ │ │ ├── deleteAll.png │ │ │ ├── position.gif │ │ │ ├── resetAll.gif │ │ │ ├── transfer.png │ │ │ ├── preferences.gif │ │ │ ├── resetSelected.gif │ │ │ ├── restrict_range.gif │ │ │ ├── seriesMarker.gif │ │ │ └── reset-selection.gif │ │ │ └── svg │ │ │ ├── arrowRight.svg │ │ │ ├── arrowDown.svg │ │ │ ├── arrowUp.svg │ │ │ └── arrowLeft.svg │ └── org │ │ └── eclipse │ │ └── swtchart │ │ └── extensions │ │ ├── linecharts │ │ ├── messages.properties │ │ ├── messages_de.properties │ │ ├── messages_fr.properties │ │ └── ILineSeriesData.java │ │ ├── axisconverter │ │ ├── messages.properties │ │ ├── messages_de.properties │ │ ├── messages_fr.properties │ │ ├── PassThroughConverter.java │ │ ├── ByteToKibibyteConverter.java │ │ ├── MillisecondsToMinuteConverter.java │ │ └── MillisecondsToSecondsConverter.java │ │ ├── core │ │ ├── messages_de.properties │ │ ├── messages_fr.properties │ │ ├── ChartType.java │ │ ├── ISeriesModificationListener.java │ │ ├── IChartSeriesData.java │ │ ├── ISecondaryAxisSettings.java │ │ ├── ISeriesData.java │ │ ├── ICustomSelectionHandler.java │ │ ├── IChartDataCoordinates.java │ │ ├── AbstractChartSeriesData.java │ │ ├── ISeriesStatusListener.java │ │ ├── IMouseSupport.java │ │ ├── SeriesStatusAdapter.java │ │ ├── AbstractAxisScaleConverter.java │ │ ├── IPrimaryAxisSettings.java │ │ ├── AbstractSeriesListUI.java │ │ ├── AbstractHandledChart.java │ │ ├── ISeriesSettings.java │ │ ├── MappingsType.java │ │ ├── OS.java │ │ └── UserRestriction.java │ │ ├── menu │ │ ├── messages_fr.properties │ │ ├── legend │ │ │ ├── messages_de.properties │ │ │ └── messages.properties │ │ ├── toggle │ │ │ ├── messages_fr.properties │ │ │ ├── messages.properties │ │ │ └── messages_de.properties │ │ ├── messages.properties │ │ ├── messages_de.properties │ │ ├── IChartMenuCategories.java │ │ └── IChartMenuEntry.java │ │ ├── charts │ │ ├── messages_de.properties │ │ ├── messages_fr.properties │ │ └── messages.properties │ │ ├── properties │ │ ├── messages_de.properties │ │ ├── messages_fr.properties │ │ └── messages.properties │ │ ├── preferences │ │ ├── messages_de.properties │ │ └── messages_fr.properties │ │ ├── model │ │ ├── IGraphicElement.java │ │ ├── ITextElement.java │ │ ├── ICustomSeries.java │ │ ├── ElementRectangle.java │ │ ├── TextElement.java │ │ └── IElement.java │ │ ├── events │ │ ├── ZoomEvent.java │ │ ├── IHandledEventProcessor.java │ │ └── IEventProcessor.java │ │ ├── scattercharts │ │ ├── IScatterSeriesSettings.java │ │ └── IScatterSeriesData.java │ │ ├── marker │ │ ├── IPositionPaintListener.java │ │ ├── IBaseChartPaintListener.java │ │ └── AbstractPositionPaintListener.java │ │ ├── exceptions │ │ └── SeriesException.java │ │ ├── internal │ │ └── support │ │ │ ├── BarSeriesIonComparator.java │ │ │ ├── SeriesContentProvider.java │ │ │ └── BarSeriesIon.java │ │ ├── dialogs │ │ ├── SettingsStatus.java │ │ └── ScatterSeriesSettingsDialog.java │ │ ├── barcharts │ │ └── IBarSeriesData.java │ │ ├── clipboard │ │ └── IImageClipboardSupplier.java │ │ └── widgets │ │ └── ExtendedCombo.java ├── build.properties ├── .settings │ └── org.eclipse.core.resources.prefs ├── .classpath └── .project ├── org.eclipse.swtchart.feature ├── .gitignore ├── build.properties ├── .settings │ └── org.eclipse.core.resources.prefs └── .project ├── org.eclipse.swtchart.updatesite ├── .gitignore ├── .settings │ └── org.eclipse.core.resources.prefs ├── category.xml └── .project ├── org.eclipse.swtchart.customcharts ├── .gitignore ├── .settings │ ├── org.eclipse.core.resources.prefs │ └── org.eclipse.jdt.core.prefs ├── build.properties ├── src │ └── org │ │ └── eclipse │ │ └── swtchart │ │ └── customcharts │ │ ├── core │ │ ├── messages_de.properties │ │ ├── messages_fr.properties │ │ ├── messages.properties │ │ └── ResetChromatogramHandler.java │ │ └── internal │ │ └── support │ │ ├── BarSeriesIonComparator.java │ │ └── BarSeriesIon.java ├── .classpath ├── META-INF │ └── MANIFEST.MF └── .project ├── org.eclipse.swtchart.export.extended ├── .gitignore ├── .settings │ └── org.eclipse.core.resources.prefs ├── build.properties ├── src │ └── org │ │ └── eclipse │ │ └── swtchart │ │ └── export │ │ └── extended │ │ └── menu │ │ └── vector │ │ ├── messages_fr.properties │ │ ├── messages.properties │ │ └── messages_de.properties ├── plugin.xml ├── .classpath ├── .project └── META-INF │ └── MANIFEST.MF ├── org.eclipse.swtchart.export.test ├── .gitignore ├── testData │ └── files │ │ ├── export │ │ ├── .gitignore │ │ └── INFO.txt │ │ └── import │ │ └── BarSeries1 ├── .settings │ ├── org.eclipse.core.resources.prefs │ └── org.eclipse.jdt.ui.prefs ├── build.properties ├── .classpath ├── META-INF │ └── MANIFEST.MF ├── .project └── src │ └── org │ └── eclipse │ └── swtchart │ └── export │ └── TestPathHelper.java ├── org.eclipse.swtchart.extensions.test ├── .gitignore ├── testData │ └── files │ │ ├── export │ │ ├── .gitignore │ │ └── INFO.txt │ │ └── import │ │ └── BarSeries1 ├── .settings │ └── org.eclipse.core.resources.prefs ├── build.properties ├── .classpath ├── META-INF │ └── MANIFEST.MF ├── .project └── src │ └── org │ └── eclipse │ └── swtchart │ └── extensions │ ├── core │ └── ChartSettings_1_UITest.java │ ├── TestPathHelper.java │ └── axisconverter │ ├── ByteToKibibyteConverter_1_Test.java │ └── MillisecondsToMinuteConverter_1_Test.java ├── org.eclipse.swtchart.extensions.examples ├── .gitignore ├── src │ └── org │ │ └── eclipse │ │ └── swtchart │ │ └── extensions │ │ └── examples │ │ ├── support │ │ ├── LineSeries1_SelectedScans │ │ ├── LineSeries1_IdentifiedScansSelected │ │ ├── LineSeries1_IdentifiedScans │ │ ├── ScatterSeries2_7 │ │ ├── Measurement1_Regression │ │ ├── Measurement2_Regression_1 │ │ ├── Measurement2_Regression_2 │ │ ├── Measurement2_Regression_3 │ │ ├── Measurement3_Readings │ │ ├── Measurement1_Readings │ │ ├── Measurement2_Readings_3 │ │ ├── Measurement2_Readings_1 │ │ ├── Measurement2_Readings_2 │ │ ├── LineSeries1_InactivePeaks │ │ ├── LineSeries1_ActivePeaks │ │ ├── BoxPlotSeries1 │ │ ├── ScatterSeries2_1 │ │ ├── ScatterSeries2_4 │ │ ├── ScatterSeries2_8 │ │ ├── BarSeries1 │ │ └── BarSeries3-Negative │ │ ├── charts │ │ └── macos │ │ │ └── ResetChartHandlerX.java │ │ └── preferences │ │ └── SpacerFieldEditor.java ├── .settings │ └── org.eclipse.core.resources.prefs ├── icons │ ├── swtchart.gif │ ├── 16x16 │ │ └── open_settings.gif │ └── svg │ │ ├── right.svg │ │ ├── down.svg │ │ ├── up.svg │ │ └── left.svg ├── build.properties ├── .classpath ├── .project └── META-INF │ └── MANIFEST.MF ├── org.eclipse.swtchart.vectorgraphics2d ├── .gitignore ├── .settings │ └── org.eclipse.core.resources.prefs ├── build.properties ├── .classpath ├── .project ├── src │ └── org │ │ └── eclipse │ │ └── swtchart │ │ └── vectorgraphics2d │ │ ├── intermediate │ │ ├── commands │ │ │ ├── StateCommand.java │ │ │ ├── SetFontCommand.java │ │ │ ├── SetClipCommand.java │ │ │ ├── SetColorCommand.java │ │ │ ├── SetPaintCommand.java │ │ │ ├── SetXORModeCommand.java │ │ │ ├── SetStrokeCommand.java │ │ │ ├── SetBackgroundCommand.java │ │ │ ├── SetCompositeCommand.java │ │ │ ├── CreateCommand.java │ │ │ ├── DisposeCommand.java │ │ │ ├── AffineTransformCommand.java │ │ │ ├── SetTransformCommand.java │ │ │ ├── DrawShapeCommand.java │ │ │ ├── FillShapeCommand.java │ │ │ ├── Group.java │ │ │ ├── TransformCommand.java │ │ │ └── SetHintCommand.java │ │ ├── filters │ │ │ ├── Filter.java │ │ │ └── StateChangeGroupingFilter.java │ │ └── CommandSequence.java │ │ ├── util │ │ ├── FlateEncodeStream.java │ │ └── NonClosingFormattingWriter.java │ │ └── core │ │ └── Document.java └── META-INF │ └── MANIFEST.MF ├── org.eclipse.swtchart.vectorgraphics2d.test ├── .gitignore ├── .settings │ └── org.eclipse.core.resources.prefs ├── build.properties ├── .classpath ├── META-INF │ └── MANIFEST.MF ├── .project └── src │ └── org │ └── eclipse │ └── swtchart │ └── vectorgraphics2d │ └── test │ └── visual │ └── EmptyFileTest.java ├── org.eclipse.swtchart.export.extended.feature ├── build.properties ├── .settings │ └── org.eclipse.core.resources.prefs └── .project ├── org.eclipse.swtchart.bom ├── .settings │ └── org.eclipse.core.resources.prefs └── .project ├── org.eclipse.swtchart.targetplatform ├── .settings │ └── org.eclipse.core.resources.prefs └── .project ├── .gitignore ├── .mvn └── extensions.xml ├── .github ├── dependabot.yml └── workflows │ ├── license-vetting.yml │ └── ci.yml ├── SECURITY.md ├── NEWS.md ├── README.md └── RELENG.md /maven/.gitignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /target 3 | -------------------------------------------------------------------------------- /org.eclipse.swtchart/.gitignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /target 3 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.rcptt/.gitignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /target 3 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.test/.gitignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /target 3 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.examples/.gitignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /target 3 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.export/.gitignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /target 3 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/.gitignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /target 3 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.feature/.gitignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /target 3 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.updatesite/.gitignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /target 3 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.customcharts/.gitignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /target 3 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.export.extended/.gitignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /target 3 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.export.test/.gitignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /target 3 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions.test/.gitignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /target 3 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions.examples/.gitignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /target 3 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.vectorgraphics2d/.gitignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /target 3 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.feature/build.properties: -------------------------------------------------------------------------------- 1 | bin.includes = feature.xml 2 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.vectorgraphics2d.test/.gitignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /target 3 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.export.extended.feature/build.properties: -------------------------------------------------------------------------------- 1 | bin.includes = feature.xml 2 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.export.test/testData/files/export/.gitignore: -------------------------------------------------------------------------------- 1 | *.png 2 | *.jpg 3 | *.jpeg 4 | *.bmp 5 | *.tiff 6 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions.test/testData/files/export/.gitignore: -------------------------------------------------------------------------------- 1 | *.png 2 | *.jpg 3 | *.jpeg 4 | *.bmp 5 | *.tiff 6 | -------------------------------------------------------------------------------- /org.eclipse.swtchart/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding/=utf8 3 | -------------------------------------------------------------------------------- /org.eclipse.swtchart/swtchart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eclipse-swtchart/swtchart/HEAD/org.eclipse.swtchart/swtchart.png -------------------------------------------------------------------------------- /org.eclipse.swtchart.bom/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding/=UTF-8 3 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.export/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding/=utf8 3 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.feature/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding/=utf8 3 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.rcptt/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding/=utf8 3 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.test/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding/=utf8 3 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.customcharts/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding/=utf8 3 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.examples/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding/=utf8 3 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.examples/build.properties: -------------------------------------------------------------------------------- 1 | source.. = src/ 2 | output.. = bin/ 3 | bin.includes = META-INF/,\ 4 | . 5 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.export.test/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding/=utf8 3 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions.examples/src/org/eclipse/swtchart/extensions/examples/support/LineSeries1_SelectedScans: -------------------------------------------------------------------------------- 1 | 1007599.0 219076.0 -------------------------------------------------------------------------------- /org.eclipse.swtchart.test/build.properties: -------------------------------------------------------------------------------- 1 | source.. = src/ 2 | output.. = bin/ 3 | bin.includes = META-INF/,\ 4 | . 5 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.updatesite/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding/=utf8 3 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.customcharts/build.properties: -------------------------------------------------------------------------------- 1 | source.. = src/ 2 | output.. = bin/ 3 | bin.includes = META-INF/,\ 4 | . 5 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.export.extended/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding/=utf8 3 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.export.test/build.properties: -------------------------------------------------------------------------------- 1 | source.. = src/ 2 | output.. = bin/ 3 | bin.includes = META-INF/,\ 4 | . 5 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions.test/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding/=utf8 3 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.targetplatform/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding/=utf8 3 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.vectorgraphics2d/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding/=UTF-8 3 | -------------------------------------------------------------------------------- /org.eclipse.swtchart/src/org/eclipse/swtchart/model/messages.properties: -------------------------------------------------------------------------------- 1 | X_Y_LENGTH_DOESNT_MATCH = length of x and y data does not match 2 | -------------------------------------------------------------------------------- /org.eclipse.swtchart/src/org/eclipse/swtchart/model/messages_fr.properties: -------------------------------------------------------------------------------- 1 | X_Y_LENGTH_DOESNT_MATCH = length of x and y data does not match 2 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions.examples/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding/=utf8 3 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions.examples/src/org/eclipse/swtchart/extensions/examples/support/LineSeries1_IdentifiedScansSelected: -------------------------------------------------------------------------------- 1 | 577450.0 110886.0 -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions.test/build.properties: -------------------------------------------------------------------------------- 1 | source.. = src/ 2 | output.. = bin/ 3 | bin.includes = META-INF/,\ 4 | . 5 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.vectorgraphics2d.test/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding/=UTF-8 3 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.vectorgraphics2d/build.properties: -------------------------------------------------------------------------------- 1 | source.. = src/ 2 | output.. = bin/ 3 | bin.includes = META-INF/,\ 4 | . 5 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.export.extended.feature/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding/=utf8 3 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.vectorgraphics2d.test/build.properties: -------------------------------------------------------------------------------- 1 | source.. = src/ 2 | output.. = bin/ 3 | bin.includes = META-INF/,\ 4 | . 5 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | bin/ 2 | target/ 3 | workspace/ 4 | 5 | # Tycho 6 | .polyglot.* 7 | *.tycho 8 | .tycho-consumer-pom.xml 9 | 10 | # Tests 11 | *.pdf 12 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.export/src/org/eclipse/swtchart/export/menu/bitmap/messages_fr.properties: -------------------------------------------------------------------------------- 1 | IMAGE = Image ({0}) 2 | SAVE_AS_IMAGE = Enregistrer en image 3 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions.examples/src/org/eclipse/swtchart/extensions/examples/support/LineSeries1_IdentifiedScans: -------------------------------------------------------------------------------- 1 | 563449.0 111466.0 2 | 582049.0 106050.0 -------------------------------------------------------------------------------- /org.eclipse.swtchart.export/build.properties: -------------------------------------------------------------------------------- 1 | source.. = src/ 2 | output.. = bin/ 3 | bin.includes = META-INF/,\ 4 | .,\ 5 | plugin.xml 6 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions.examples/src/org/eclipse/swtchart/extensions/examples/support/ScatterSeries2_7: -------------------------------------------------------------------------------- 1 | 1638 5.545 2 | 1980 5.97 3 | 1562 5.47 4 | 1712 5.48 5 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.export/src/org/eclipse/swtchart/export/menu/messages.properties: -------------------------------------------------------------------------------- 1 | PRINT = Print 2 | PRINTER_EXPORT = PrinterExport 3 | SAVE_SELECTION = Save Selection 4 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.export.extended/build.properties: -------------------------------------------------------------------------------- 1 | source.. = src/ 2 | output.. = bin/ 3 | bin.includes = META-INF/,\ 4 | .,\ 5 | plugin.xml 6 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions.examples/src/org/eclipse/swtchart/extensions/examples/support/Measurement1_Regression: -------------------------------------------------------------------------------- 1 | 0.0 -23320.469798657712 2 | 1.013 506661.35346756154 3 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.export/src/org/eclipse/swtchart/export/menu/messages_de.properties: -------------------------------------------------------------------------------- 1 | PRINT = Drucken 2 | PRINTER_EXPORT = PrinterExport 3 | SAVE_SELECTION = Speichere Auswahl 4 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions.examples/icons/swtchart.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eclipse-swtchart/swtchart/HEAD/org.eclipse.swtchart.extensions.examples/icons/swtchart.gif -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions.examples/src/org/eclipse/swtchart/extensions/examples/support/Measurement2_Regression_1: -------------------------------------------------------------------------------- 1 | 0.0 -12.656130876747435 2 | 116.88153750000001 2952.492932020331 -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions.examples/src/org/eclipse/swtchart/extensions/examples/support/Measurement2_Regression_2: -------------------------------------------------------------------------------- 1 | 0.0 -37.81378653113067 2 | 115.47548999999998 2980.0763341804313 -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions.examples/src/org/eclipse/swtchart/extensions/examples/support/Measurement2_Regression_3: -------------------------------------------------------------------------------- 1 | 0.0 -40.737261753494295 2 | 115.88791499999999 2846.0983640406603 -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/resources/icons/16x16/r.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eclipse-swtchart/swtchart/HEAD/org.eclipse.swtchart.extensions/src/resources/icons/16x16/r.gif -------------------------------------------------------------------------------- /org.eclipse.swtchart.export/src/org/eclipse/swtchart/export/menu/messages_fr.properties: -------------------------------------------------------------------------------- 1 | PRINT = Imprimer 2 | PRINTER_EXPORT = PrinterExport 3 | SAVE_SELECTION = Enregistrer la Selection 4 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/resources/icons/16x16/csv.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eclipse-swtchart/swtchart/HEAD/org.eclipse.swtchart.extensions/src/resources/icons/16x16/csv.gif -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/resources/icons/16x16/tex.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eclipse-swtchart/swtchart/HEAD/org.eclipse.swtchart.extensions/src/resources/icons/16x16/tex.gif -------------------------------------------------------------------------------- /org.eclipse.swtchart.export/src/org/eclipse/swtchart/export/menu/bitmap/messages.properties: -------------------------------------------------------------------------------- 1 | IMAGE = Image ({0}) 2 | SAVE_AS_IMAGE = Save As Image 3 | COPY_IMAGE_TO_CLIPBOARD = Copy Image to Clipboard -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/resources/icons/16x16/bitmap.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eclipse-swtchart/swtchart/HEAD/org.eclipse.swtchart.extensions/src/resources/icons/16x16/bitmap.gif -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/resources/icons/16x16/figure.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eclipse-swtchart/swtchart/HEAD/org.eclipse.swtchart.extensions/src/resources/icons/16x16/figure.gif -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/resources/icons/16x16/legend.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eclipse-swtchart/swtchart/HEAD/org.eclipse.swtchart.extensions/src/resources/icons/16x16/legend.gif -------------------------------------------------------------------------------- /org.eclipse.swtchart/build.properties: -------------------------------------------------------------------------------- 1 | source.. = src/ 2 | output.. = bin/ 3 | bin.includes = META-INF/,\ 4 | .,\ 5 | about.ini,\ 6 | swtchart.png 7 | -------------------------------------------------------------------------------- /org.eclipse.swtchart/src/org/eclipse/swtchart/internal/messages.properties: -------------------------------------------------------------------------------- 1 | CHART_TITLE=Chart Title 2 | DISPOSED_COLOR_GIVEN=disposed color is given 3 | DISPOSED_FONT_GIVEN=disposed font is given 4 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions.examples/icons/16x16/open_settings.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eclipse-swtchart/swtchart/HEAD/org.eclipse.swtchart.extensions.examples/icons/16x16/open_settings.gif -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/build.properties: -------------------------------------------------------------------------------- 1 | source.. = src/ 2 | output.. = bin/ 3 | bin.includes = META-INF/,\ 4 | .,\ 5 | plugin.xml,\ 6 | schema/ 7 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/org/eclipse/swtchart/extensions/linecharts/messages.properties: -------------------------------------------------------------------------------- 1 | AUTO = Auto 2 | EXTREME = Extreme 3 | HIGH = High 4 | LOW = Low 5 | MEDIUM = Medium 6 | NONE = None 7 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/resources/icons/16x16/deleteAll.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eclipse-swtchart/swtchart/HEAD/org.eclipse.swtchart.extensions/src/resources/icons/16x16/deleteAll.png -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/resources/icons/16x16/position.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eclipse-swtchart/swtchart/HEAD/org.eclipse.swtchart.extensions/src/resources/icons/16x16/position.gif -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/resources/icons/16x16/resetAll.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eclipse-swtchart/swtchart/HEAD/org.eclipse.swtchart.extensions/src/resources/icons/16x16/resetAll.gif -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/resources/icons/16x16/transfer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eclipse-swtchart/swtchart/HEAD/org.eclipse.swtchart.extensions/src/resources/icons/16x16/transfer.png -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/org/eclipse/swtchart/extensions/axisconverter/messages.properties: -------------------------------------------------------------------------------- 1 | SCAN_MUST_BE_G_0 = The scan interval must be > 0. 2 | SCAN_MUST_BE_GE_0 = The scan delay must be >= 0. 3 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/resources/icons/16x16/preferences.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eclipse-swtchart/swtchart/HEAD/org.eclipse.swtchart.extensions/src/resources/icons/16x16/preferences.gif -------------------------------------------------------------------------------- /org.eclipse.swtchart.export.test/testData/files/export/INFO.txt: -------------------------------------------------------------------------------- 1 | GIT needs at least one file in this directory to track it, otherwise Eclipse gives a compile error at checkout. Remove it, if not needed anymore. 2 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.export/src/org/eclipse/swtchart/export/menu/bitmap/messages_de.properties: -------------------------------------------------------------------------------- 1 | IMAGE = Bild ({0}) 2 | SAVE_AS_IMAGE = Als Bild speichern 3 | COPY_IMAGE_TO_CLIPBOARD = Bild in Zwischenablage kopieren -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/org/eclipse/swtchart/extensions/linecharts/messages_de.properties: -------------------------------------------------------------------------------- 1 | AUTO = Auto 2 | EXTREME = Extrem 3 | HIGH = Hoch 4 | LOW = Niedrig 5 | MEDIUM = Mittel 6 | NONE = Keiner 7 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/resources/icons/16x16/resetSelected.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eclipse-swtchart/swtchart/HEAD/org.eclipse.swtchart.extensions/src/resources/icons/16x16/resetSelected.gif -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/resources/icons/16x16/restrict_range.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eclipse-swtchart/swtchart/HEAD/org.eclipse.swtchart.extensions/src/resources/icons/16x16/restrict_range.gif -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/resources/icons/16x16/seriesMarker.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eclipse-swtchart/swtchart/HEAD/org.eclipse.swtchart.extensions/src/resources/icons/16x16/seriesMarker.gif -------------------------------------------------------------------------------- /org.eclipse.swtchart/src/org/eclipse/swtchart/model/messages_de.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eclipse-swtchart/swtchart/HEAD/org.eclipse.swtchart/src/org/eclipse/swtchart/model/messages_de.properties -------------------------------------------------------------------------------- /org.eclipse.swtchart.export.test/.settings/org.eclipse.jdt.ui.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | formatter_profile=_SWTChart 3 | formatter_settings_version=23 4 | org.eclipse.jdt.ui.text.custom_code_templates= 5 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions.test/testData/files/export/INFO.txt: -------------------------------------------------------------------------------- 1 | GIT needs at least one file in this directory to track it, otherwise Eclipse gives a compile error at checkout. Remove it, if not needed anymore. 2 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/resources/icons/16x16/reset-selection.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eclipse-swtchart/swtchart/HEAD/org.eclipse.swtchart.extensions/src/resources/icons/16x16/reset-selection.gif -------------------------------------------------------------------------------- /org.eclipse.swtchart/src/org/eclipse/swtchart/internal/messages_fr.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eclipse-swtchart/swtchart/HEAD/org.eclipse.swtchart/src/org/eclipse/swtchart/internal/messages_fr.properties -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/org/eclipse/swtchart/extensions/menu/messages_de.properties=UTF-8 3 | encoding/=utf8 4 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions.examples/src/org/eclipse/swtchart/extensions/examples/support/Measurement3_Readings: -------------------------------------------------------------------------------- 1 | 10.0 2.4552472540462255E7 2 | 4.0 9612915.623874903 3 | 2.0 2.0379454765528664E7 4 | 7.0 1.9076951887777686E7 -------------------------------------------------------------------------------- /org.eclipse.swtchart/src/org/eclipse/swtchart/internal/axis/messages_de.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eclipse-swtchart/swtchart/HEAD/org.eclipse.swtchart/src/org/eclipse/swtchart/internal/axis/messages_de.properties -------------------------------------------------------------------------------- /org.eclipse.swtchart/src/org/eclipse/swtchart/internal/axis/messages_fr.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eclipse-swtchart/swtchart/HEAD/org.eclipse.swtchart/src/org/eclipse/swtchart/internal/axis/messages_fr.properties -------------------------------------------------------------------------------- /org.eclipse.swtchart/src/org/eclipse/swtchart/internal/messages_de.properties: -------------------------------------------------------------------------------- 1 | CHART_TITLE=Diagrammtitel 2 | DISPOSED_COLOR_GIVEN=Farbe wurde bereits freigegeben 3 | DISPOSED_FONT_GIVEN=Schriftart wurde bereits freigegeben 4 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.export/src/org/eclipse/swtchart/export/core/messages_de.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eclipse-swtchart/swtchart/HEAD/org.eclipse.swtchart.export/src/org/eclipse/swtchart/export/core/messages_de.properties -------------------------------------------------------------------------------- /org.eclipse.swtchart.export/src/org/eclipse/swtchart/export/core/messages_fr.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eclipse-swtchart/swtchart/HEAD/org.eclipse.swtchart.export/src/org/eclipse/swtchart/export/core/messages_fr.properties -------------------------------------------------------------------------------- /org.eclipse.swtchart.export/src/org/eclipse/swtchart/export/menu/text/messages_fr.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eclipse-swtchart/swtchart/HEAD/org.eclipse.swtchart.export/src/org/eclipse/swtchart/export/menu/text/messages_fr.properties -------------------------------------------------------------------------------- /org.eclipse.swtchart.export/src/org/eclipse/swtchart/export/menu/vector/messages.properties: -------------------------------------------------------------------------------- 1 | EXPORT_TO_SVG = Exports the chart to SVG (Template) 2 | SAVE_AS_SVG = Save As Scalable Vector Graphic 3 | SVG = Scalable Vector Graphic [Template] ({0}) -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions.examples/build.properties: -------------------------------------------------------------------------------- 1 | output.. = bin/ 2 | bin.includes = META-INF/,\ 3 | .,\ 4 | fragment.e4xmi,\ 5 | plugin.xml,\ 6 | icons/ 7 | source.. = src/ 8 | -------------------------------------------------------------------------------- /.mvn/extensions.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | org.eclipse.tycho 5 | tycho-build 6 | 5.0.1 7 | 8 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.export/src/org/eclipse/swtchart/export/menu/vector/messages_fr.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eclipse-swtchart/swtchart/HEAD/org.eclipse.swtchart.export/src/org/eclipse/swtchart/export/menu/vector/messages_fr.properties -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions.examples/src/org/eclipse/swtchart/extensions/examples/support/Measurement1_Readings: -------------------------------------------------------------------------------- 1 | 0.04052 10200.0 2 | 0.08104 24900.0 3 | 0.2026 72200.0 4 | 0.4052 179000.0 5 | 0.6078 287000.0 6 | 0.8104 401000.0 7 | 1.013 516000.0 8 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/org/eclipse/swtchart/extensions/core/messages_de.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eclipse-swtchart/swtchart/HEAD/org.eclipse.swtchart.extensions/src/org/eclipse/swtchart/extensions/core/messages_de.properties -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/org/eclipse/swtchart/extensions/core/messages_fr.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eclipse-swtchart/swtchart/HEAD/org.eclipse.swtchart.extensions/src/org/eclipse/swtchart/extensions/core/messages_fr.properties -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/org/eclipse/swtchart/extensions/menu/messages_fr.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eclipse-swtchart/swtchart/HEAD/org.eclipse.swtchart.extensions/src/org/eclipse/swtchart/extensions/menu/messages_fr.properties -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions.examples/src/org/eclipse/swtchart/extensions/examples/support/Measurement2_Readings_3: -------------------------------------------------------------------------------- 1 | 0.9904950000000001 17.5 2 | 8.914455 106.0 3 | 35.65782 889.0 4 | 62.401185 1530.0 5 | 89.14455000000001 2180.0 6 | 115.88791499999999 2830.0 -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/org/eclipse/swtchart/extensions/charts/messages_de.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eclipse-swtchart/swtchart/HEAD/org.eclipse.swtchart.extensions/src/org/eclipse/swtchart/extensions/charts/messages_de.properties -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/org/eclipse/swtchart/extensions/charts/messages_fr.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eclipse-swtchart/swtchart/HEAD/org.eclipse.swtchart.extensions/src/org/eclipse/swtchart/extensions/charts/messages_fr.properties -------------------------------------------------------------------------------- /org.eclipse.swtchart.customcharts/src/org/eclipse/swtchart/customcharts/core/messages_de.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eclipse-swtchart/swtchart/HEAD/org.eclipse.swtchart.customcharts/src/org/eclipse/swtchart/customcharts/core/messages_de.properties -------------------------------------------------------------------------------- /org.eclipse.swtchart.customcharts/src/org/eclipse/swtchart/customcharts/core/messages_fr.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eclipse-swtchart/swtchart/HEAD/org.eclipse.swtchart.customcharts/src/org/eclipse/swtchart/customcharts/core/messages_fr.properties -------------------------------------------------------------------------------- /org.eclipse.swtchart.export/src/org/eclipse/swtchart/export/menu/vector/messages_de.properties: -------------------------------------------------------------------------------- 1 | EXPORT_TO_SVG = Exportiert das Diagramm in SVG (Vorlage) 2 | SAVE_AS_SVG = Speichern als skalierbare Vektorgrafik 3 | SVG = Skalierbare Vektorgrafik [Vorlage] ({0}) -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/org/eclipse/swtchart/extensions/linecharts/messages_fr.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eclipse-swtchart/swtchart/HEAD/org.eclipse.swtchart.extensions/src/org/eclipse/swtchart/extensions/linecharts/messages_fr.properties -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/org/eclipse/swtchart/extensions/properties/messages_de.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eclipse-swtchart/swtchart/HEAD/org.eclipse.swtchart.extensions/src/org/eclipse/swtchart/extensions/properties/messages_de.properties -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/org/eclipse/swtchart/extensions/properties/messages_fr.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eclipse-swtchart/swtchart/HEAD/org.eclipse.swtchart.extensions/src/org/eclipse/swtchart/extensions/properties/messages_fr.properties -------------------------------------------------------------------------------- /maven/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | maven 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/org/eclipse/swtchart/extensions/menu/legend/messages_de.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eclipse-swtchart/swtchart/HEAD/org.eclipse.swtchart.extensions/src/org/eclipse/swtchart/extensions/menu/legend/messages_de.properties -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/org/eclipse/swtchart/extensions/menu/toggle/messages_fr.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eclipse-swtchart/swtchart/HEAD/org.eclipse.swtchart.extensions/src/org/eclipse/swtchart/extensions/menu/toggle/messages_fr.properties -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/org/eclipse/swtchart/extensions/preferences/messages_de.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eclipse-swtchart/swtchart/HEAD/org.eclipse.swtchart.extensions/src/org/eclipse/swtchart/extensions/preferences/messages_de.properties -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/org/eclipse/swtchart/extensions/preferences/messages_fr.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eclipse-swtchart/swtchart/HEAD/org.eclipse.swtchart.extensions/src/org/eclipse/swtchart/extensions/preferences/messages_fr.properties -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/org/eclipse/swtchart/extensions/axisconverter/messages_de.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eclipse-swtchart/swtchart/HEAD/org.eclipse.swtchart.extensions/src/org/eclipse/swtchart/extensions/axisconverter/messages_de.properties -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/org/eclipse/swtchart/extensions/axisconverter/messages_fr.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eclipse-swtchart/swtchart/HEAD/org.eclipse.swtchart.extensions/src/org/eclipse/swtchart/extensions/axisconverter/messages_fr.properties -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions.examples/src/org/eclipse/swtchart/extensions/examples/support/Measurement2_Readings_1: -------------------------------------------------------------------------------- 1 | 0.9989875000000001 18.5 2 | 8.990887500000001 190.0 3 | 35.963550000000005 924.0 4 | 62.9362125 1570.0 5 | 89.90887500000001 2300.0 6 | 116.88153750000001 2930.0 -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions.examples/src/org/eclipse/swtchart/extensions/examples/support/Measurement2_Readings_2: -------------------------------------------------------------------------------- 1 | 0.9869700000000002 17.0 2 | 8.882730000000002 132.0 3 | 35.53092000000001 915.0 4 | 62.17911 1600.0 5 | 88.82730000000001 2310.0 6 | 115.47548999999998 2950.0 -------------------------------------------------------------------------------- /org.eclipse.swtchart.customcharts/src/org/eclipse/swtchart/customcharts/core/messages.properties: -------------------------------------------------------------------------------- 1 | INTENSITY = Intensity 2 | MINUTES = Minutes 3 | RELATIVE_INTENSITY = Relative Intensity [%] 4 | RETENTION_TIME = Retention Time (milliseconds) 5 | RESET_CHROMATOGRAM = Reset Chromatogram -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- 1 | version: 2 2 | updates: 3 | - package-ecosystem: maven 4 | directory: "/" 5 | schedule: 6 | interval: daily 7 | open-pull-requests-limit: 10 8 | - package-ecosystem: github-actions 9 | directory: "/" 10 | schedule: 11 | interval: daily 12 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.export.extended/src/org/eclipse/swtchart/export/extended/menu/vector/messages_fr.properties: -------------------------------------------------------------------------------- 1 | EXPORT_TO_SVG = Exporter le graphe en SVG via Apache Batik (cela peut prendre du temps) 2 | SAVE_AS_SVG = Enregistrer en SVG 3 | SVG = Scalable Vector Graphic [Graphics2D] ( 4 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions.examples/src/org/eclipse/swtchart/extensions/examples/support/LineSeries1_InactivePeaks: -------------------------------------------------------------------------------- 1 | 151549.0 3.27E7 2 | 280950.0 230410.59375 3 | 555100.0 126721.0 4 | 634900.0 320606.0 5 | 659650.0 454661.0 6 | 664849.0 130201.0 7 | 686650.0 118437.0 8 | 977299.0 216124.0 -------------------------------------------------------------------------------- /org.eclipse.swtchart.export.extended/src/org/eclipse/swtchart/export/extended/menu/vector/messages.properties: -------------------------------------------------------------------------------- 1 | EXPORT_TO_SVG = Exports the chart to SVG via Apache Batik (this may take a while) 2 | SAVE_AS_SVG = Save As Scalable Vector Graphic 3 | SVG = Scalable Vector Graphic [Graphics2D] ( 4 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.rcptt/rcptt.properties: -------------------------------------------------------------------------------- 1 | --- RCPTT testcase --- 2 | Format-Version: 1.0 3 | Element-Name: Project Settings 4 | Element-Type: projectMetadata 5 | Element-Version: 2.0 6 | Id: _cMCbcHv-EeeBVfgBQSl_Lw 7 | Runtime-Version: 2.1.0.201606221726 8 | Save-Time: 8/8/17 7:57 AM 9 | 10 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.rcptt/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | org.eclipse.swtchart.rcptt 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.export.extended/src/org/eclipse/swtchart/export/extended/menu/vector/messages_de.properties: -------------------------------------------------------------------------------- 1 | EXPORT_TO_SVG = Exportiere das Diagramm in ein SVG mittels Apache Batik (dauert eine Weile) 2 | SAVE_AS_SVG = Speichere als skalierbare Vektorgrafik 3 | SVG = skalierbare Vektorgrafik [Graphics2D] ( 4 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.targetplatform/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | org.eclipse.swtchart.targetplatform 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions.examples/src/org/eclipse/swtchart/extensions/examples/support/LineSeries1_ActivePeaks: -------------------------------------------------------------------------------- 1 | 202399.0 177552.0 2 | 269299.0 699411.0 3 | 313099.0 215880.0 4 | 339550.0 4524976.0 5 | 346200.0 124681.0 6 | 372400.0 661858.0 7 | 389449.0 133762.0 8 | 397650.0 126422.0 9 | 640099.0 155471.0 10 | 650149.0 192206.0 -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/org/eclipse/swtchart/extensions/menu/toggle/messages.properties: -------------------------------------------------------------------------------- 1 | AXIS_ZERO_MARKER = Axis Zero Marker 2 | LEGEND_MARKER = Legend Marker 3 | PLOT_CENTER_MARKER = Plot Center Marker 4 | POSITION_MARKER = Position Marker 5 | RANGE_SELECTOR = Range Selector 6 | SERIES_LABEL_MARKER = Series Label Marker 7 | SERIES_LEGEND = Series Legend 8 | SHOW_TOOLTIPS = Show Tooltips 9 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.export.extended/plugin.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /org.eclipse.swtchart/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /org.eclipse.swtchart/src/org/eclipse/swtchart/internal/series/messages.properties: -------------------------------------------------------------------------------- 1 | POSITIVE_VALUE_FOR_ERROR = positive value must be given for error. 2 | REQUIRES_INDEXED_SERIES_MODEL = This requires a IndexedSeriesModel 3 | SERIES_ID_NOT_EXISTS = Given series id doesn't exist 4 | STACKED_SERIES_CANT_CONTAIN_NEGATIVE_VALUES = Stacked series cannot contain minus values. 5 | UNKNOWN_BAR_WIDTH_STYLE = unknown bar width style 6 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.test/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /org.eclipse.swtchart/src/org/eclipse/swtchart/internal/series/messages_fr.properties: -------------------------------------------------------------------------------- 1 | POSITIVE_VALUE_FOR_ERROR = positive value must be given for error. 2 | REQUIRES_INDEXED_SERIES_MODEL = This requires a IndexedSeriesModel 3 | SERIES_ID_NOT_EXISTS = Given series id doesn't exist 4 | STACKED_SERIES_CANT_CONTAIN_NEGATIVE_VALUES = Stacked series cannot contain minus values. 5 | UNKNOWN_BAR_WIDTH_STYLE = unknown bar width style 6 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.examples/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.export/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.customcharts/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.export.extended/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.export.test/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions.test/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions.examples/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.updatesite/category.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.vectorgraphics2d/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /maven/SWTChart4Mvn.aggran: -------------------------------------------------------------------------------- 1 | 2 | 7 | 9 | 10 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.customcharts/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=21 4 | org.eclipse.jdt.core.compiler.compliance=21 5 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 6 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 7 | org.eclipse.jdt.core.compiler.source=21 8 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/org/eclipse/swtchart/extensions/menu/toggle/messages_de.properties: -------------------------------------------------------------------------------- 1 | AXIS_ZERO_MARKER = Nullpunktmarkierung der Achse 2 | LEGEND_MARKER = Legendenmarkierung 3 | PLOT_CENTER_MARKER = Diagrammmittenmarkierung 4 | POSITION_MARKER = Positionsmarkierung 5 | RANGE_SELECTOR = Bereichsauswahl 6 | SERIES_LABEL_MARKER = Serienbeschriftungsmarkierung 7 | SERIES_LEGEND = Serienlegende 8 | SHOW_TOOLTIPS = Tooltips anzeigen 9 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions.examples/src/org/eclipse/swtchart/extensions/examples/support/BoxPlotSeries1: -------------------------------------------------------------------------------- 1 | 1 741.5,752.1,741.4,729.1,767.1,766.1,756.3,745.4,735.6,741,754.2,758.6,753.9,742.6,729.6,723.3,724.6,748.5,754.2,749.2,734,727.6,718.1,729.2,766.5,772.5,765.5,766.5,772.5,765.5 2 | 2 743.6,753.9,745.1,731.6,768.2,767.3,758.7,746.6,737.9,743.6,756.6,760.3,755.2,743.6,731.9,725.5,727.4,751.8,756.2,752.8,737.8,731.2,724.9,732.4,770.7,775.7,767.3,745.4,738.4,736 -------------------------------------------------------------------------------- /org.eclipse.swtchart.export/src/org/eclipse/swtchart/export/core/messages.properties: -------------------------------------------------------------------------------- 1 | ALL_SERIES = All Series 2 | DATA_EXPORT_ERROR = Sorry, something has gone wrong to export the data. 3 | DATA_EXPORT_SUCCESS = The data has been exported successfully. 4 | EXPORT = Export: 5 | EXPORT_AXIS_SELECTION = Export Axis Selection 6 | SELECT_X_Y_TO_EXPORT = Select the X and Y axis you'd like to export. 7 | VISIBLE_SERIES = Visible Series 8 | X_AXIS = X Axis: 9 | Y_AXIS = Y Axis: 10 | f -------------------------------------------------------------------------------- /org.eclipse.swtchart.export/src/org/eclipse/swtchart/export/menu/text/messages.properties: -------------------------------------------------------------------------------- 1 | COMMA_SEPARATED_VALUES = Comma Separated Values ({0}) 2 | IMAGE_R_SCRIPT = Image R-Script ({0}) 3 | LATEX_TABLE = LaTeX Table ({0}) 4 | SAVE_AS_COMMA_SEPARATED = Save As Comma Separated Text 5 | SAVE_AS_IMAGE_R_SCRIPT = Save As R-Script Image 6 | SAVE_AS_LATEX = Save As LaTeX Table 7 | SAVE_AS_TAB_SEPARATED = Save As Tab Separated Text 8 | TAB_SEPARATED_VALUES = Tab Separated Values ({0}) 9 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.test/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Automatic-Module-Name: org.eclipse.swtchart.test 3 | Bundle-ManifestVersion: 2 4 | Bundle-Name: SWTChart Test 5 | Bundle-SymbolicName: org.eclipse.swtchart.test 6 | Bundle-Version: 1.2.0.qualifier 7 | Bundle-Vendor: Eclipse SWTChart 8 | Fragment-Host: org.eclipse.swtchart;bundle-version="1.2.0" 9 | Bundle-RequiredExecutionEnvironment: JavaSE-21 10 | Require-Bundle: junit-jupiter-api;bundle-version="5.13.4" 11 | -------------------------------------------------------------------------------- /SECURITY.md: -------------------------------------------------------------------------------- 1 | # Security Policy 2 | 3 | Vulnerabilities are tracked by the Eclipse security team, in cooperation with the SWTChart project lead. Fixing vulnerabilities is taken care of by the SWTChart project committers, with assistance and guidance of the security team. 4 | 5 | ## Reporting a Vulnerability 6 | 7 | We recommend that in case of suspected vulnerabilities you do not use the SWTChart public issue tracker, but instead contact the Eclipse Security Team directly via security@eclipse.org. 8 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.bom/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | org.eclipse.swtchart.bom 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.m2e.core.maven2Builder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.m2e.core.maven2Nature 16 | 17 | 18 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.feature/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | org.eclipse.swtchart.feature 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.pde.FeatureBuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.pde.FeatureNature 16 | 17 | 18 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.updatesite/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | org.eclipse.swtchart.updatesite 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.pde.UpdateSiteBuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.pde.UpdateSiteNature 16 | 17 | 18 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/org/eclipse/swtchart/extensions/menu/messages.properties: -------------------------------------------------------------------------------- 1 | EXPORT_CHART_SELECTION = Export Chart Selection 2 | RANGE_SELECTION = Range Selection 3 | REDO_SELECTION = Redo Selection 4 | RESET_CHART = Reset Chart 5 | RESET_SELECTED_SERIES = Reset Selected Series 6 | TOGGLE_VISIBILITY = Toggle Visibility 7 | UNDO_SELECTION = Undo Selection 8 | RESET_X_AXIS = Reset X-Axis 9 | RESET_Y_AXIS = Reset Y-Axis 10 | SET_CHART_RANGE = Set Chart Range 11 | ZOOM_IN = Zoom In 12 | ZOOM_OUT = Zoom Out -------------------------------------------------------------------------------- /org.eclipse.swtchart.export.extended.feature/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | org.eclipse.swtchart.export.extended.feature 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.pde.FeatureBuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.pde.FeatureNature 16 | 17 | 18 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.examples/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Automatic-Module-Name: org.eclipse.swtchart.examples 3 | Bundle-ManifestVersion: 2 4 | Bundle-Name: SWTChart Examples 5 | Bundle-SymbolicName: org.eclipse.swtchart.examples 6 | Bundle-Version: 1.2.0.qualifier 7 | Bundle-Vendor: Eclipse SWTChart 8 | Require-Bundle: org.eclipse.ui, 9 | org.eclipse.core.runtime, 10 | org.eclipse.swtchart;bundle-version="1.2.0" 11 | Bundle-RequiredExecutionEnvironment: JavaSE-21 12 | Bundle-ActivationPolicy: lazy 13 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions.test/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Automatic-Module-Name: org.eclipse.swtchart.extensions.test 3 | Bundle-ManifestVersion: 2 4 | Bundle-Name: SWTChart Extensions Test 5 | Bundle-SymbolicName: org.eclipse.swtchart.extensions.test 6 | Bundle-Version: 1.2.0.qualifier 7 | Bundle-Vendor: Eclipse SWTChart 8 | Fragment-Host: org.eclipse.swtchart.extensions;bundle-version="1.2.0" 9 | Bundle-RequiredExecutionEnvironment: JavaSE-21 10 | Require-Bundle: junit-jupiter-api;bundle-version="5.13.4" 11 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions.examples/src/org/eclipse/swtchart/extensions/examples/support/ScatterSeries2_1: -------------------------------------------------------------------------------- 1 | 1794 5.975 2 | 738 3.58 3 | 870 3.52 4 | 974 3.5 5 | 986 3.55 6 | 1094 3.43 7 | 1224 3.425 8 | 1236 3.5 9 | 1248 3.455 10 | 1332 3.325 11 | 1344 3.415 12 | 1362 3.475 13 | 1458 3.38 14 | 1482 3.48 15 | 1578 3.415 16 | 1596 3.495 17 | 1602 3.47 18 | 1686 3.44 19 | 1710 3.495 20 | 1758 3.36 21 | 1788 3.48 22 | 1812 3.305 23 | 1818 3.255 24 | 1818 3.465 25 | 1890 3.495 26 | 1920 3.325 27 | 1920 3.49 28 | 1998 3.335 29 | 2100 3.405 30 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.vectorgraphics2d.test/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.export.test/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Automatic-Module-Name: org.eclipse.swtchart.export.test 3 | Bundle-ManifestVersion: 2 4 | Bundle-Name: SWTChart Export Test 5 | Bundle-SymbolicName: org.eclipse.swtchart.export.test 6 | Bundle-Version: 1.2.0.qualifier 7 | Fragment-Host: org.eclipse.swtchart.export;bundle-version="1.2.0" 8 | Bundle-RequiredExecutionEnvironment: JavaSE-21 9 | Bundle-Vendor: Eclipse SWTChart 10 | Require-Bundle: junit-jupiter-api;bundle-version="5.13.4", 11 | org.eclipse.swtchart.customcharts;bundle-version="1.2.0" 12 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.rcptt/SWTChart.suite: -------------------------------------------------------------------------------- 1 | --- RCPTT testcase --- 2 | Format-Version: 1.0 3 | Element-Name: SWTChart 4 | Element-Type: testsuite 5 | Element-Version: 2.0 6 | Id: __slFUHwKEeeBVfgBQSl_Lw 7 | Runtime-Version: 2.1.0.201606221726 8 | Save-Time: 12/11/18 7:20 PM 9 | 10 | ------=_testcase-items-62c497da-4241-31f4-811a-6b453a3ecff8 11 | Content-Type: text/testcase 12 | Entry-Name: testcase-items 13 | 14 | _dOtGcHwLEeef1PoTOWZ-Vw // kind: 'test' name: 'PerspectivesTest_1' path: 'Tests/PerspectivesTest_1.test' 15 | 16 | ------=_testcase-items-62c497da-4241-31f4-811a-6b453a3ecff8-- 17 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/org/eclipse/swtchart/extensions/menu/messages_de.properties: -------------------------------------------------------------------------------- 1 | EXPORT_CHART_SELECTION = Diagrammauswahl exportieren 2 | RANGE_SELECTION = Bereichsauswahl 3 | REDO_SELECTION = Selektion wiederholen 4 | RESET_CHART = Diagramm zurücksetzen 5 | RESET_SELECTED_SERIES = Ausgewählte Serie zurücksetzen 6 | TOGGLE_VISIBILITY = Sichtbarkeit umschalten 7 | UNDO_SELECTION = Selektion rückgängig 8 | RESET_X_AXIS = X-Achse zurücksetzen 9 | RESET_Y_AXIS = Y-Achse zurücksetzen 10 | SET_CHART_RANGE = Setze Darstellungsbereich 11 | ZOOM_IN = Hineinzoomen 12 | ZOOM_OUT = Rauszoomen 13 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.customcharts/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Bundle-ManifestVersion: 2 3 | Bundle-Name: SWTChart Custom Charts 4 | Bundle-SymbolicName: org.eclipse.swtchart.customcharts 5 | Bundle-Version: 1.2.0.qualifier 6 | Bundle-Vendor: Eclipse SWTChart 7 | Require-Bundle: org.eclipse.swt, 8 | org.eclipse.swtchart;bundle-version="1.2.0", 9 | org.eclipse.swtchart.extensions;bundle-version="1.2.0" 10 | Bundle-RequiredExecutionEnvironment: JavaSE-21 11 | Automatic-Module-Name: org.eclipse.swtchart.customcharts 12 | Bundle-ActivationPolicy: lazy 13 | Export-Package: org.eclipse.swtchart.customcharts.core 14 | -------------------------------------------------------------------------------- /org.eclipse.swtchart/src/org/eclipse/swtchart/internal/axis/messages.properties: -------------------------------------------------------------------------------- 1 | AXIS_ID_DONT_EXIST = Given axis id doesn't exist 2 | GIVEN_RANGE_INVALID = Given range is invalid 3 | ILLEGAL_RANGE = Illegal range: 4 | LENGTH_MUST_BE_POSITIVE = lengthInPixels must be positive value. 5 | MUST_BE_LESS_MAX = min must be less than max. 6 | SERIES_CONTAIN_INVALID_VALUES = Series contain zero or negative value. 7 | UNKNOWN_AXIS_POSITION = unknown axis position 8 | X_AXIS = X Axis 9 | Y_AXIS = Y Axis 10 | Y_AXIS_CANNOT_BE_CATEGORY = Y axis cannot be category axis. 11 | LOGARITHM_BASE_IS_INVALID = Logarithm base is invalid (must be positive and different from 1) 12 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions.examples/src/org/eclipse/swtchart/extensions/examples/support/ScatterSeries2_4: -------------------------------------------------------------------------------- 1 | 1146 4.735 2 | 1266 4.625 3 | 1290 4.7 4 | 1308 4.89 5 | 1374 4.55 6 | 1386 4.49 7 | 1392 4.705 8 | 1404 4.51 9 | 1404 4.57 10 | 1410 4.595 11 | 1428 4.715 12 | 1446 4.775 13 | 1476 4.43 14 | 1482 4.47 15 | 1482 4.495 16 | 1512 4.425 17 | 1530 4.62 18 | 1542 4.595 19 | 1560 4.64 20 | 1578 4.34 21 | 1578 4.665 22 | 1590 4.43 23 | 1608 4.345 24 | 1686 4.325 25 | 1698 4.39 26 | 1172 4.625 27 | 1292 4.505 28 | 1316 4.545 29 | 1334 4.76 30 | 1400 4.42 31 | 1406 4.44 32 | 1430 4.425 33 | 1454 4.595 34 | 1508 4.34 35 | 1538 4.305 36 | 1568 4.46 37 | 1586 4.5 38 | 1604 4.24 39 | -------------------------------------------------------------------------------- /.github/workflows/license-vetting.yml: -------------------------------------------------------------------------------- 1 | # This workflow will check for Maven projects if the licenses of all (transitive) dependencies are vetted. 2 | 3 | name: License vetting status check 4 | 5 | on: 6 | push: 7 | branches: 8 | - 'develop' 9 | pull_request: 10 | branches: 11 | - 'develop' 12 | issue_comment: 13 | types: [created] 14 | 15 | jobs: 16 | call-license-check: 17 | uses: eclipse-dash/dash-licenses/.github/workflows/mavenLicenseCheck.yml@master 18 | with: 19 | projectId: science.swtchart 20 | javaVersion: 21 21 | secrets: 22 | gitlabAPIToken: ${{ secrets.GITLAB_API_TOKEN }} 23 | permissions: 24 | pull-requests: write 25 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.vectorgraphics2d.test/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Bundle-ManifestVersion: 2 3 | Bundle-Name: SWTChart Vectorgraphics2d Tests 4 | Bundle-SymbolicName: org.eclipse.swtchart.vectorgraphics2d.test 5 | Bundle-Vendor: Eclipse SWTChart 6 | Bundle-Version: 1.2.0.qualifier 7 | Fragment-Host: org.eclipse.swtchart.vectorgraphics2d;bundle-version="1.2.0" 8 | Require-Bundle: junit-jupiter-api;bundle-version="5.13.4", 9 | junit-jupiter-params;bundle-version="5.13.4", 10 | org.hamcrest;bundle-version="3.0.0", 11 | org.opentest4j;bundle-version="1.3.0" 12 | Automatic-Module-Name: org.eclipse.swtchart.vectorgraphics2d.test 13 | Bundle-RequiredExecutionEnvironment: JavaSE-21 14 | -------------------------------------------------------------------------------- /org.eclipse.swtchart/src/org/eclipse/swtchart/IEnumLabel.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2023 Lablicate GmbH. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * Philip Wenig - initial API and implementation 12 | *******************************************************************************/ 13 | package org.eclipse.swtchart; 14 | 15 | public interface IEnumLabel { 16 | 17 | String label(); 18 | } -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions.examples/src/org/eclipse/swtchart/extensions/examples/support/ScatterSeries2_8: -------------------------------------------------------------------------------- 1 | 1176 4.84 2 | 1314 4.695 3 | 1320 4.755 4 | 1338 4.89 5 | 1440 4.685 6 | 1452 4.62 7 | 1470 4.695 8 | 1482 4.8 9 | 1494 4.775 10 | 1506 4.92 11 | 1530 4.565 12 | 1572 4.565 13 | 1596 4.675 14 | 1602 4.575 15 | 1614 4.65 16 | 1668 4.455 17 | 1674 4.455 18 | 1674 5.0 19 | 1202 4.72 20 | 1340 4.565 21 | 1346 4.62 22 | 1364 4.755 23 | 1442 4.105 24 | 1460 4.24 25 | 1472 4.44 26 | 1478 4.485 27 | 1496 4.57 28 | 1508 4.66 29 | 1538 4.35 30 | 1598 4.435 31 | 1622 4.535 32 | 1628 4.455 33 | 1640 4.51 34 | 1652 4.58 35 | 1694 4.34 36 | 1700 4.85 37 | 1712 4.31 38 | 1736 4.37 39 | 1754 4.345 40 | 1778 4.47 41 | -------------------------------------------------------------------------------- /org.eclipse.swtchart/about.ini: -------------------------------------------------------------------------------- 1 | featureImage=swtchart.png 2 | aboutText=Eclipse SWTChart allows to create different types of charts easily. Size, colors, axes, ranges and all aspects of the charts can be modified via code.\n\ 3 | \n\ 4 | We are open for ideas and suggestions see our contribution guidelines [1].\n\ 5 | For user- and developer documentation, have a look at our wiki [2], \n\ 6 | if you have questions or need guidelines you can contact the project developers via the project's "dev" list [3]\n\ 7 | \n\ 8 | [1] https://github.com/eclipse/swtchart/blob/develop/CONTRIBUTING.md\n\ 9 | [2] https://github.com/eclipse/swtchart/wiki\n\ 10 | [3] https://accounts.eclipse.org/mailing-list/swtchart-dev\n\ 11 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/org/eclipse/swtchart/extensions/model/IGraphicElement.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2023 Lablicate GmbH. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * Philip Wenig - initial API and implementation 12 | *******************************************************************************/ 13 | package org.eclipse.swtchart.extensions.model; 14 | 15 | public interface IGraphicElement extends IElement { 16 | } -------------------------------------------------------------------------------- /NEWS.md: -------------------------------------------------------------------------------- 1 | # News & Noteworthy 2 | 3 | ## Release 1.1.0 4 | 5 | * Available on Sonatype Central now. 6 | 7 | ## Release 0.12.0 8 | 9 | * Moved to version 0.12.0 to avoid confusions with existing pre-Eclipse SWTChart bundles 10 | * Internationalization support has been added 11 | * Keyboard and mouse events have been refactored to make them easier to use 12 | * Jar-signing added 13 | * Scroll bar thumb calculation has been fixed 14 | * Basic SVG export via Apache Batik has been added 15 | * A separate bundle for export options has been added 16 | * Improved series handling, introduced a flexible data model 17 | * SWT resource leaks fixed 18 | 19 | ## Release 0.7.0 20 | 21 | * Initial release of the official Eclipse SWTChart project 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Eclipse SWTChart 2 | 3 | Please see [our homepage](https://projects.eclipse.org/projects/science.swtchart) for detailed information about SWTChart, including the update site. 4 | 5 | Contributions follow the standard Eclipse mechanisms and you should check out our [CONTRIBUTING.md](https://github.com/eclipse/swtchart/blob/develop/CONTRIBUTING.md) file for more information. If you are looking at this, then you are most likely using Git and can start the process by issuing 6 | a pull request on our GitHub repo. 7 | 8 | YouTube (Virtual Eclipse Community Meetup): 9 | https://youtu.be/t0PQ1M3NCwI 10 | 11 | Continuous Integration: 12 | https://ci.eclipse.org/swtchart 13 | 14 | Eclipse Page: 15 | https://projects.eclipse.org/projects/science.swtchart 16 | -------------------------------------------------------------------------------- /org.eclipse.swtchart/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Automatic-Module-Name: org.eclipse.swtchart 3 | Bundle-ManifestVersion: 2 4 | Bundle-Name: SWTChart 5 | Bundle-SymbolicName: org.eclipse.swtchart 6 | Bundle-Version: 1.2.0.qualifier 7 | Bundle-Vendor: Eclipse SWTChart 8 | Require-Bundle: org.eclipse.swt 9 | Bundle-RequiredExecutionEnvironment: JavaSE-21 10 | Bundle-ActivationPolicy: lazy 11 | Export-Package: org.eclipse.swtchart, 12 | org.eclipse.swtchart.internal;x-friends:="org.eclipse.swtchart.export", 13 | org.eclipse.swtchart.internal.axis;x-friends:="org.eclipse.swtchart.export", 14 | org.eclipse.swtchart.internal.compress, 15 | org.eclipse.swtchart.internal.series, 16 | org.eclipse.swtchart.model, 17 | org.eclipse.swtchart.support 18 | -------------------------------------------------------------------------------- /RELENG.md: -------------------------------------------------------------------------------- 1 | # Develop 2 | 3 | 1. Install Eclipse for RCP/RAP Developers via the [Eclipse installer](https://www.eclipse.org/downloads/) 4 | 2. Install RCPTT (Menu -> Help -> Eclipse Marketplace) 5 | 3. Clone/Import [SWTChart repository](https://github.com/eclipse/swtchart) -> branch "develop" 6 | 4. Run Application (Create a new Eclipse Application "SWTChart Examples" and select "all workspace and enabled target plug-ins") 7 | 8 | # Build 9 | 10 | ``` mvn clean install ``` 11 | 12 | 13 | # Test 14 | 15 | 1. Download Eclipse for RCP and RAP Developers 16 | 2. org.eclipse.swtchart.extensions.demos.updatesite/site.xml -> Build All 17 | 3. Copy features and plugins folder -> dropins folder of "Eclipse for RCP and RAP Developers" 18 | 4. Run [RCPTT](https://eclipse.dev/rcptt/) tests 19 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.test/src/org/eclipse/swtchart/test/testmodel/BusinessObject.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2019, 2025 Lablicate GmbH. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * Contributors: 9 | * Christoph Läubrich - initial API and implementation 10 | *******************************************************************************/ 11 | package org.eclipse.swtchart.test.testmodel; 12 | 13 | import java.util.Date; 14 | 15 | public interface BusinessObject { 16 | 17 | double getPrice(); 18 | 19 | Date getTimeOfBuying(); 20 | } 21 | -------------------------------------------------------------------------------- /org.eclipse.swtchart/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | org.eclipse.swtchart 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.pde.ManifestBuilder 15 | 16 | 17 | 18 | 19 | org.eclipse.pde.SchemaBuilder 20 | 21 | 22 | 23 | 24 | 25 | org.eclipse.pde.PluginNature 26 | org.eclipse.jdt.core.javanature 27 | 28 | 29 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/org/eclipse/swtchart/extensions/core/ChartType.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2020 Lablicate GmbH. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * Philip Wenig - initial API and implementation 12 | *******************************************************************************/ 13 | package org.eclipse.swtchart.extensions.core; 14 | 15 | public enum ChartType { 16 | NONE, // 17 | LINE, // 18 | STEP, // 19 | SCATTER, // 20 | BAR, // 21 | PIE; 22 | } 23 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.test/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | org.eclipse.swtchart.test 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.pde.ManifestBuilder 15 | 16 | 17 | 18 | 19 | org.eclipse.pde.SchemaBuilder 20 | 21 | 22 | 23 | 24 | 25 | org.eclipse.pde.PluginNature 26 | org.eclipse.jdt.core.javanature 27 | 28 | 29 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.export/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | org.eclipse.swtchart.export 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.pde.ManifestBuilder 15 | 16 | 17 | 18 | 19 | org.eclipse.pde.SchemaBuilder 20 | 21 | 22 | 23 | 24 | 25 | org.eclipse.pde.PluginNature 26 | org.eclipse.jdt.core.javanature 27 | 28 | 29 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/org/eclipse/swtchart/extensions/core/ISeriesModificationListener.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2017, 2019 Lablicate GmbH. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * Dr. Philip Wenig - initial API and implementation 12 | *******************************************************************************/ 13 | package org.eclipse.swtchart.extensions.core; 14 | 15 | public interface ISeriesModificationListener { 16 | 17 | void handleSeriesModificationEvent(); 18 | } 19 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.examples/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | org.eclipse.swtchart.examples 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.pde.ManifestBuilder 15 | 16 | 17 | 18 | 19 | org.eclipse.pde.SchemaBuilder 20 | 21 | 22 | 23 | 24 | 25 | org.eclipse.pde.PluginNature 26 | org.eclipse.jdt.core.javanature 27 | 28 | 29 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.export.test/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | org.eclipse.swtchart.export.test 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.pde.ManifestBuilder 15 | 16 | 17 | 18 | 19 | org.eclipse.pde.SchemaBuilder 20 | 21 | 22 | 23 | 24 | 25 | org.eclipse.pde.PluginNature 26 | org.eclipse.jdt.core.javanature 27 | 28 | 29 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | org.eclipse.swtchart.extensions 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.pde.ManifestBuilder 15 | 16 | 17 | 18 | 19 | org.eclipse.pde.SchemaBuilder 20 | 21 | 22 | 23 | 24 | 25 | org.eclipse.pde.PluginNature 26 | org.eclipse.jdt.core.javanature 27 | 28 | 29 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/org/eclipse/swtchart/extensions/events/ZoomEvent.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2017, 2024 Lablicate GmbH. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * Philip Wenig - initial API and implementation 12 | *******************************************************************************/ 13 | package org.eclipse.swtchart.extensions.events; 14 | 15 | /** 16 | * Use the MouseWheelEvent instead. 17 | */ 18 | @Deprecated 19 | public class ZoomEvent extends MouseWheelZoomEvent { 20 | } -------------------------------------------------------------------------------- /org.eclipse.swtchart.customcharts/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | org.eclipse.swtchart.customcharts 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.pde.ManifestBuilder 15 | 16 | 17 | 18 | 19 | org.eclipse.pde.SchemaBuilder 20 | 21 | 22 | 23 | 24 | 25 | org.eclipse.pde.PluginNature 26 | org.eclipse.jdt.core.javanature 27 | 28 | 29 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/org/eclipse/swtchart/extensions/core/IChartSeriesData.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2017, 2019 Lablicate GmbH. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * Dr. Philip Wenig - initial API and implementation 12 | *******************************************************************************/ 13 | package org.eclipse.swtchart.extensions.core; 14 | 15 | public interface IChartSeriesData { 16 | 17 | ISeriesData getSeriesData(); 18 | 19 | ISeriesSettings getSettings(); 20 | } 21 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.export.extended/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | org.eclipse.swtchart.export.extended 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.pde.ManifestBuilder 15 | 16 | 17 | 18 | 19 | org.eclipse.pde.SchemaBuilder 20 | 21 | 22 | 23 | 24 | 25 | org.eclipse.pde.PluginNature 26 | org.eclipse.jdt.core.javanature 27 | 28 | 29 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions.test/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | org.eclipse.swtchart.extensions.test 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.pde.ManifestBuilder 15 | 16 | 17 | 18 | 19 | org.eclipse.pde.SchemaBuilder 20 | 21 | 22 | 23 | 24 | 25 | org.eclipse.pde.PluginNature 26 | org.eclipse.jdt.core.javanature 27 | 28 | 29 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/org/eclipse/swtchart/extensions/core/ISecondaryAxisSettings.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2017, 2019 Lablicate GmbH. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * Dr. Philip Wenig - initial API and implementation 12 | *******************************************************************************/ 13 | package org.eclipse.swtchart.extensions.core; 14 | 15 | public interface ISecondaryAxisSettings extends IAxisSettings { 16 | 17 | IAxisScaleConverter getAxisScaleConverter(); 18 | } 19 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/org/eclipse/swtchart/extensions/core/ISeriesData.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2017, 2019 Lablicate GmbH. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * Dr. Philip Wenig - initial API and implementation 12 | *******************************************************************************/ 13 | package org.eclipse.swtchart.extensions.core; 14 | 15 | public interface ISeriesData { 16 | 17 | double[] getXSeries(); 18 | 19 | double[] getYSeries(); 20 | 21 | String getId(); 22 | } 23 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.vectorgraphics2d/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | org.eclipse.swtchart.vectorgraphics2d 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.pde.ManifestBuilder 15 | 16 | 17 | 18 | 19 | org.eclipse.pde.SchemaBuilder 20 | 21 | 22 | 23 | 24 | 25 | org.eclipse.pde.PluginNature 26 | org.eclipse.jdt.core.javanature 27 | 28 | 29 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions.examples/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | org.eclipse.swtchart.extensions.examples 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.pde.ManifestBuilder 15 | 16 | 17 | 18 | 19 | org.eclipse.pde.SchemaBuilder 20 | 21 | 22 | 23 | 24 | 25 | org.eclipse.pde.PluginNature 26 | org.eclipse.jdt.core.javanature 27 | 28 | 29 | -------------------------------------------------------------------------------- /org.eclipse.swtchart/src/org/eclipse/swtchart/model/SeriesModel.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2019, 2025 Lablicate GmbH. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * Contributors: 9 | * Christoph Läubrich - initial API and implementation 10 | *******************************************************************************/ 11 | package org.eclipse.swtchart.model; 12 | 13 | /** 14 | * Basic interface for {@link SeriesModel}s that allows access to an set of DataTypes items 15 | * 16 | * @author Christoph Läubrich 17 | */ 18 | public interface SeriesModel extends Iterable { 19 | } 20 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.vectorgraphics2d.test/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | org.eclipse.swtchart.vectorgraphics2d.test 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.pde.ManifestBuilder 15 | 16 | 17 | 18 | 19 | org.eclipse.pde.SchemaBuilder 20 | 21 | 22 | 23 | 24 | 25 | org.eclipse.pde.PluginNature 26 | org.eclipse.jdt.core.javanature 27 | 28 | 29 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/org/eclipse/swtchart/extensions/core/ICustomSelectionHandler.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2017, 2019 Lablicate GmbH. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * Dr. Philip Wenig - initial API and implementation 12 | *******************************************************************************/ 13 | package org.eclipse.swtchart.extensions.core; 14 | 15 | import org.eclipse.swt.widgets.Event; 16 | 17 | public interface ICustomSelectionHandler { 18 | 19 | void handleUserSelection(Event event); 20 | } 21 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions.examples/src/org/eclipse/swtchart/extensions/examples/charts/macos/ResetChartHandlerX.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2021 Lablicate GmbH. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * Philip Wenig - initial API and implementation 12 | *******************************************************************************/ 13 | package org.eclipse.swtchart.extensions.examples.charts.macos; 14 | 15 | import org.eclipse.swtchart.extensions.menu.ResetChartHandler; 16 | 17 | public class ResetChartHandlerX extends ResetChartHandler { 18 | } -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/org/eclipse/swtchart/extensions/events/IHandledEventProcessor.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2017, 2019 Lablicate GmbH. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * Dr. Philip Wenig - initial API and implementation 12 | *******************************************************************************/ 13 | package org.eclipse.swtchart.extensions.events; 14 | 15 | public interface IHandledEventProcessor extends IEventProcessor { 16 | 17 | int getEvent(); 18 | 19 | int getButton(); 20 | 21 | int getStateMask(); 22 | } 23 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/org/eclipse/swtchart/extensions/scattercharts/IScatterSeriesSettings.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2017, 2023 Lablicate GmbH. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * Dr. Philip Wenig - initial API and implementation 12 | *******************************************************************************/ 13 | package org.eclipse.swtchart.extensions.scattercharts; 14 | 15 | import org.eclipse.swtchart.extensions.core.IPointSeriesSettings; 16 | 17 | public interface IScatterSeriesSettings extends IPointSeriesSettings { 18 | } -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/org/eclipse/swtchart/extensions/marker/IPositionPaintListener.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2017, 2019 Lablicate GmbH. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * Dr. Philip Wenig - initial API and implementation 12 | *******************************************************************************/ 13 | package org.eclipse.swtchart.extensions.marker; 14 | 15 | public interface IPositionPaintListener extends IBaseChartPaintListener { 16 | 17 | void setActualPosition(int x, int y); 18 | 19 | int getX(); 20 | 21 | int getY(); 22 | } 23 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/org/eclipse/swtchart/extensions/model/ITextElement.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2023 Lablicate GmbH. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * Philip Wenig - initial API and implementation 12 | *******************************************************************************/ 13 | package org.eclipse.swtchart.extensions.model; 14 | 15 | public interface ITextElement extends IElement { 16 | 17 | String getLabel(); 18 | 19 | void setLabel(String label); 20 | 21 | int getRotation(); 22 | 23 | void setRotation(int rotation); 24 | } -------------------------------------------------------------------------------- /org.eclipse.swtchart.export/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Automatic-Module-Name: org.eclipse.swtchart.export 3 | Bundle-ManifestVersion: 2 4 | Bundle-Name: SWTChart Export Options 5 | Bundle-SymbolicName: org.eclipse.swtchart.export;singleton:=true 6 | Bundle-Version: 1.2.0.qualifier 7 | Require-Bundle: org.eclipse.swt, 8 | org.eclipse.jface, 9 | org.eclipse.core.runtime, 10 | org.eclipse.swtchart;bundle-version="1.2.0", 11 | org.eclipse.swtchart.extensions;bundle-version="1.2.0" 12 | Bundle-RequiredExecutionEnvironment: JavaSE-21 13 | Bundle-ActivationPolicy: lazy 14 | Bundle-Vendor: Eclipse SWTChart 15 | Export-Package: org.eclipse.swtchart.export.core, 16 | org.eclipse.swtchart.export.images, 17 | org.eclipse.swtchart.export.menu, 18 | org.eclipse.swtchart.export.menu.bitmap, 19 | org.eclipse.swtchart.export.menu.text, 20 | org.eclipse.swtchart.export.menu.vector 21 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/org/eclipse/swtchart/extensions/core/IChartDataCoordinates.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2017, 2019 Lablicate GmbH. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * Dr. Philip Wenig - initial API and implementation 12 | *******************************************************************************/ 13 | package org.eclipse.swtchart.extensions.core; 14 | 15 | public interface IChartDataCoordinates { 16 | 17 | int getSeriesMaxDataPoints(); 18 | 19 | double getMinX(); 20 | 21 | double getMaxX(); 22 | 23 | double getMinY(); 24 | 25 | double getMaxY(); 26 | } -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/org/eclipse/swtchart/extensions/events/IEventProcessor.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2017, 2019 Lablicate GmbH. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * Dr. Philip Wenig - initial API and implementation 12 | *******************************************************************************/ 13 | package org.eclipse.swtchart.extensions.events; 14 | 15 | import org.eclipse.swt.widgets.Event; 16 | import org.eclipse.swtchart.extensions.core.BaseChart; 17 | 18 | public interface IEventProcessor { 19 | 20 | void handleEvent(BaseChart baseChart, Event event); 21 | } 22 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions.examples/src/org/eclipse/swtchart/extensions/examples/preferences/SpacerFieldEditor.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2017, 2019 Lablicate GmbH. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * Philip Wenig - initial API and implementation 12 | *******************************************************************************/ 13 | package org.eclipse.swtchart.extensions.examples.preferences; 14 | 15 | import org.eclipse.swt.widgets.Composite; 16 | 17 | public class SpacerFieldEditor extends LabelFieldEditor { 18 | 19 | public SpacerFieldEditor(Composite parent) { 20 | super("", parent); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.vectorgraphics2d/src/org/eclipse/swtchart/vectorgraphics2d/intermediate/commands/StateCommand.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2010, 2019 VectorGraphics2D project. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * Erich Seifert - initial API and implementation 12 | * Michael Seifert - initial API and implementation 13 | *******************************************************************************/ 14 | package org.eclipse.swtchart.vectorgraphics2d.intermediate.commands; 15 | 16 | public abstract class StateCommand extends Command { 17 | 18 | public StateCommand(T value) { 19 | 20 | super(value); 21 | } 22 | } -------------------------------------------------------------------------------- /org.eclipse.swtchart.vectorgraphics2d/src/org/eclipse/swtchart/vectorgraphics2d/intermediate/filters/Filter.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2010, 2019 VectorGraphics2D project. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * Erich Seifert - initial API and implementation 12 | * Michael Seifert - initial API and implementation 13 | *******************************************************************************/ 14 | package org.eclipse.swtchart.vectorgraphics2d.intermediate.filters; 15 | 16 | import org.eclipse.swtchart.vectorgraphics2d.intermediate.CommandSequence; 17 | 18 | public interface Filter extends CommandSequence { 19 | } 20 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.export/src/org/eclipse/swtchart/export/menu/vector/IVectorDataExport.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2023 Lablicate GmbH. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * Philip Wenig - initial API and implementation 12 | *******************************************************************************/ 13 | package org.eclipse.swtchart.export.menu.vector; 14 | 15 | import org.eclipse.swtchart.export.core.AxisSettings; 16 | import org.eclipse.swtchart.extensions.core.ScrollableChart; 17 | 18 | public interface IVectorDataExport { 19 | 20 | String generate(ScrollableChart scrollableChart, AxisSettings axisSettings) throws Exception; 21 | } -------------------------------------------------------------------------------- /org.eclipse.swtchart.customcharts/src/org/eclipse/swtchart/customcharts/core/ResetChromatogramHandler.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2023 Lablicate GmbH. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * Matthias Mailänder - initial API and implementation 12 | *******************************************************************************/ 13 | package org.eclipse.swtchart.customcharts.core; 14 | 15 | import org.eclipse.swtchart.extensions.menu.ResetChartHandler; 16 | 17 | public class ResetChromatogramHandler extends ResetChartHandler { 18 | 19 | @Override 20 | public String getName() { 21 | 22 | return Messages.getString(Messages.RESET_CHROMATOGRAM); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /org.eclipse.swtchart/src/org/eclipse/swtchart/IDisposeListener.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2008, 2019 SWTChart project. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * yoshitaka - initial API and implementation 12 | *******************************************************************************/ 13 | package org.eclipse.swtchart; 14 | 15 | import org.eclipse.swt.widgets.Event; 16 | 17 | /** 18 | * The dispose listener. 19 | */ 20 | public interface IDisposeListener { 21 | 22 | /** 23 | * The method to be invoked when the target is disposed. 24 | * 25 | * @param e 26 | * the event 27 | */ 28 | void disposed(Event e); 29 | } -------------------------------------------------------------------------------- /org.eclipse.swtchart.vectorgraphics2d/src/org/eclipse/swtchart/vectorgraphics2d/intermediate/commands/SetFontCommand.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2010, 2019 VectorGraphics2D project. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * Erich Seifert - initial API and implementation 12 | * Michael Seifert - initial API and implementation 13 | *******************************************************************************/ 14 | package org.eclipse.swtchart.vectorgraphics2d.intermediate.commands; 15 | 16 | import java.awt.Font; 17 | 18 | public class SetFontCommand extends StateCommand { 19 | 20 | public SetFontCommand(Font font) { 21 | 22 | super(font); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.vectorgraphics2d/src/org/eclipse/swtchart/vectorgraphics2d/intermediate/commands/SetClipCommand.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2010, 2019 VectorGraphics2D project. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * Erich Seifert - initial API and implementation 12 | * Michael Seifert - initial API and implementation 13 | *******************************************************************************/ 14 | package org.eclipse.swtchart.vectorgraphics2d.intermediate.commands; 15 | 16 | import java.awt.Shape; 17 | 18 | public class SetClipCommand extends StateCommand { 19 | 20 | public SetClipCommand(Shape shape) { 21 | 22 | super(shape); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.vectorgraphics2d/src/org/eclipse/swtchart/vectorgraphics2d/intermediate/commands/SetColorCommand.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2010, 2019 VectorGraphics2D project. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * Erich Seifert - initial API and implementation 12 | * Michael Seifert - initial API and implementation 13 | *******************************************************************************/ 14 | package org.eclipse.swtchart.vectorgraphics2d.intermediate.commands; 15 | 16 | import java.awt.Color; 17 | 18 | public class SetColorCommand extends StateCommand { 19 | 20 | public SetColorCommand(Color color) { 21 | 22 | super(color); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.vectorgraphics2d/src/org/eclipse/swtchart/vectorgraphics2d/intermediate/commands/SetPaintCommand.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2010, 2019 VectorGraphics2D project. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * Erich Seifert - initial API and implementation 12 | * Michael Seifert - initial API and implementation 13 | *******************************************************************************/ 14 | package org.eclipse.swtchart.vectorgraphics2d.intermediate.commands; 15 | 16 | import java.awt.Paint; 17 | 18 | public class SetPaintCommand extends StateCommand { 19 | 20 | public SetPaintCommand(Paint paint) { 21 | 22 | super(paint); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.vectorgraphics2d/src/org/eclipse/swtchart/vectorgraphics2d/intermediate/commands/SetXORModeCommand.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2010, 2019 VectorGraphics2D project. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * Erich Seifert - initial API and implementation 12 | * Michael Seifert - initial API and implementation 13 | *******************************************************************************/ 14 | package org.eclipse.swtchart.vectorgraphics2d.intermediate.commands; 15 | 16 | import java.awt.Color; 17 | 18 | public class SetXORModeCommand extends StateCommand { 19 | 20 | public SetXORModeCommand(Color mode) { 21 | 22 | super(mode); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.vectorgraphics2d/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Bundle-ManifestVersion: 2 3 | Bundle-Name: SWTChart VectorGraphics2d 4 | Bundle-SymbolicName: org.eclipse.swtchart.vectorgraphics2d 5 | Bundle-Vendor: Eclipse SWTChart 6 | Bundle-Version: 1.2.0.qualifier 7 | Export-Package: org.eclipse.swtchart.vectorgraphics2d.core, 8 | org.eclipse.swtchart.vectorgraphics2d.eps, 9 | org.eclipse.swtchart.vectorgraphics2d.intermediate, 10 | org.eclipse.swtchart.vectorgraphics2d.intermediate.commands, 11 | org.eclipse.swtchart.vectorgraphics2d.intermediate.filters, 12 | org.eclipse.swtchart.vectorgraphics2d.pdf, 13 | org.eclipse.swtchart.vectorgraphics2d.svg, 14 | org.eclipse.swtchart.vectorgraphics2d.util 15 | Require-Bundle: 16 | org.apache.pdfbox;bundle-version="2.0.35", 17 | org.apache.pdfbox.fontbox;bundle-version="2.0.35" 18 | Bundle-RequiredExecutionEnvironment: JavaSE-21 19 | Automatic-Module-Name: org.eclipse.swtchart.vectorgraphics2d 20 | Bundle-ActivationPolicy: lazy 21 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.vectorgraphics2d/src/org/eclipse/swtchart/vectorgraphics2d/intermediate/commands/SetStrokeCommand.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2010, 2019 VectorGraphics2D project. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * Erich Seifert - initial API and implementation 12 | * Michael Seifert - initial API and implementation 13 | *******************************************************************************/ 14 | package org.eclipse.swtchart.vectorgraphics2d.intermediate.commands; 15 | 16 | import java.awt.Stroke; 17 | 18 | public class SetStrokeCommand extends StateCommand { 19 | 20 | public SetStrokeCommand(Stroke stroke) { 21 | 22 | super(stroke); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.rcptt/Contexts/Clear_Workspace.ctx: -------------------------------------------------------------------------------- 1 | --- RCPTT testcase --- 2 | Format-Version: 1.0 3 | Context-Type: org.eclipse.rcptt.ctx.workspace 4 | Element-Name: Clear_Workspace 5 | Element-Type: context 6 | Element-Version: 2.0 7 | Id: _yteKkHwKEeeBVfgBQSl_Lw 8 | Runtime-Version: 2.1.0.201606221726 9 | Save-Time: 8/8/17 9:25 AM 10 | 11 | ------=_.q7.content-3d2e0690-ce48-3609-83e0-c704d49f1eaf 12 | Content-Type: q7/binary 13 | Entry-Name: .q7.content 14 | 15 | UEsDBBQACAgIAAAAIQAAAAAAAAAAAAAAAAAIAAkALmNvbnRlbnRVVAUAAQAAAACVj7EKwjAYhPc+Rchu 16 | ok5S2goVQVEHEdStlPRvDLZJSX9NfXtToXUUt+P47o6Lll1dkSfYVhkd0xmbUgJamEJpGdMHlpMFXSZB 17 | ZKxkICrVtMCsaBCZwI45Y+9tkwsIL4NaGY3QIelqFY61877WD+k29H5Mb4hNyLlzjplaMl/Or4ftgPzY 18 | GuMD08c/HPccHzlKdF57elVBbrPL11ZFTLMXwu6+cbs1QHouZXo8Vdne0SQgJBL9B43c/+b/Hk+CN1BL 19 | BwgAXxOCvwAAAFMBAABQSwECFAAUAAgICAAAACEAAF8Tgr8AAABTAQAACAAJAAAAAAAAAAAAAAAAAAAA 20 | LmNvbnRlbnRVVAUAAQAAAABQSwUGAAAAAAEAAQA/AAAA/gAAAAAA 21 | ------=_.q7.content-3d2e0690-ce48-3609-83e0-c704d49f1eaf-- 22 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.vectorgraphics2d/src/org/eclipse/swtchart/vectorgraphics2d/intermediate/commands/SetBackgroundCommand.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2010, 2019 VectorGraphics2D project. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * Erich Seifert - initial API and implementation 12 | * Michael Seifert - initial API and implementation 13 | *******************************************************************************/ 14 | package org.eclipse.swtchart.vectorgraphics2d.intermediate.commands; 15 | 16 | import java.awt.Color; 17 | 18 | public class SetBackgroundCommand extends StateCommand { 19 | 20 | public SetBackgroundCommand(Color color) { 21 | 22 | super(color); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/org/eclipse/swtchart/extensions/core/AbstractChartSeriesData.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2017, 2023 Lablicate GmbH. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * Dr. Philip Wenig - initial API and implementation 12 | *******************************************************************************/ 13 | package org.eclipse.swtchart.extensions.core; 14 | 15 | public abstract class AbstractChartSeriesData { 16 | 17 | private ISeriesData seriesData; 18 | 19 | protected AbstractChartSeriesData(ISeriesData seriesData) { 20 | 21 | this.seriesData = seriesData; 22 | } 23 | 24 | public ISeriesData getSeriesData() { 25 | 26 | return seriesData; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.vectorgraphics2d/src/org/eclipse/swtchart/vectorgraphics2d/util/FlateEncodeStream.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2010, 2019 VectorGraphics2D project. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * Erich Seifert - initial API and implementation 12 | * Michael Seifert - initial API and implementation 13 | *******************************************************************************/ 14 | package org.eclipse.swtchart.vectorgraphics2d.util; 15 | 16 | import java.io.OutputStream; 17 | import java.util.zip.DeflaterOutputStream; 18 | 19 | public class FlateEncodeStream extends DeflaterOutputStream { 20 | 21 | public FlateEncodeStream(OutputStream out) { 22 | 23 | super(out); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.vectorgraphics2d/src/org/eclipse/swtchart/vectorgraphics2d/intermediate/commands/SetCompositeCommand.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2010, 2019 VectorGraphics2D project. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * Erich Seifert - initial API and implementation 12 | * Michael Seifert - initial API and implementation 13 | *******************************************************************************/ 14 | package org.eclipse.swtchart.vectorgraphics2d.intermediate.commands; 15 | 16 | import java.awt.Composite; 17 | 18 | public class SetCompositeCommand extends StateCommand { 19 | 20 | public SetCompositeCommand(Composite composite) { 21 | 22 | super(composite); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.export/src/org/eclipse/swtchart/export/core/ISeriesExportConverter.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2017, 2019 Lablicate GmbH. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * Dr. Philip Wenig - initial API and implementation 12 | * Frank Buloup - Internationalization 13 | *******************************************************************************/ 14 | package org.eclipse.swtchart.export.core; 15 | 16 | import org.eclipse.swtchart.extensions.menu.IChartMenuEntry; 17 | 18 | public interface ISeriesExportConverter extends IChartMenuEntry { 19 | 20 | String MESSAGE_OK = Messages.getString(Messages.DATA_EXPORT_SUCCESS); 21 | String MESSAGE_ERROR = Messages.getString(Messages.DATA_EXPORT_ERROR); 22 | } 23 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions.test/src/org/eclipse/swtchart/extensions/core/ChartSettings_1_UITest.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2019, 2025 Lablicate GmbH. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * Philip Wenig - initial API and implementation 12 | *******************************************************************************/ 13 | package org.eclipse.swtchart.extensions.core; 14 | 15 | import static org.junit.jupiter.api.Assertions.assertNotNull; 16 | 17 | import org.junit.jupiter.api.Test; 18 | 19 | public class ChartSettings_1_UITest { 20 | 21 | private ChartSettings settings = new ChartSettings(); 22 | 23 | @Test 24 | public void test1() { 25 | 26 | assertNotNull(settings.getTitleFont()); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.export.extended/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Automatic-Module-Name: org.eclipse.swtchart.export.extended 3 | Bundle-ManifestVersion: 2 4 | Bundle-Name: SWTChart Export Options (Extended) 5 | Bundle-SymbolicName: org.eclipse.swtchart.export.extended;singleton:=true 6 | Bundle-Version: 1.2.0.qualifier 7 | Require-Bundle: org.eclipse.ui, 8 | org.eclipse.core.runtime, 9 | org.eclipse.swtchart;bundle-version="1.2.0", 10 | org.eclipse.swtchart.extensions;bundle-version="1.2.0", 11 | org.eclipse.swtchart.export;bundle-version="1.2.0" 12 | Bundle-RequiredExecutionEnvironment: JavaSE-21 13 | Bundle-ActivationPolicy: lazy 14 | Bundle-Vendor: Eclipse SWTChart 15 | Export-Package: org.eclipse.swtchart.export.extended.menu.vector 16 | Import-Package: org.apache.batik;version="1.14.0", 17 | org.apache.batik.anim;version="1.14.0", 18 | org.apache.batik.anim.dom;version="1.14.0", 19 | org.apache.batik.dom.svg;version="1.14.0", 20 | org.apache.batik.ext.awt;version="1.14.0", 21 | org.apache.batik.svggen;version="1.14.0" 22 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/org/eclipse/swtchart/extensions/core/ISeriesStatusListener.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2017, 2020 Lablicate GmbH. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * Dr. Philip Wenig - initial API and implementation 12 | *******************************************************************************/ 13 | package org.eclipse.swtchart.extensions.core; 14 | 15 | public interface ISeriesStatusListener { 16 | 17 | int SELECT = 1; 18 | int HIDE = 2; 19 | int RESET = 3; 20 | int REDRAW = 4; 21 | 22 | void handleSeriesSelectionEvent(String seriesId); 23 | 24 | void handleSeriesHideEvent(String seriesId); 25 | 26 | void handleSeriesResetEvent(String seriesId); 27 | 28 | void handleRedrawEvent(); 29 | } 30 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/org/eclipse/swtchart/extensions/exceptions/SeriesException.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2017, 2019 Lablicate GmbH. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * Dr. Philip Wenig - initial API and implementation 12 | *******************************************************************************/ 13 | package org.eclipse.swtchart.extensions.exceptions; 14 | 15 | public class SeriesException extends RuntimeException { 16 | 17 | /** 18 | * Renew this UUID on change. 19 | */ 20 | private static final long serialVersionUID = 2625126351854161968L; 21 | 22 | public SeriesException() { 23 | super(); 24 | } 25 | 26 | public SeriesException(String message) { 27 | super(message); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/org/eclipse/swtchart/extensions/internal/support/BarSeriesIonComparator.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2017, 2019 Lablicate GmbH. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * Philip Wenig - initial API and implementation 12 | *******************************************************************************/ 13 | package org.eclipse.swtchart.extensions.internal.support; 14 | 15 | import java.util.Comparator; 16 | 17 | public class BarSeriesIonComparator implements Comparator { 18 | 19 | @Override 20 | public int compare(BarSeriesIon barSeriesIon1, BarSeriesIon barSeriesIon2) { 21 | 22 | return Double.compare(barSeriesIon2.getIntensity(), barSeriesIon1.getIntensity()); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.customcharts/src/org/eclipse/swtchart/customcharts/internal/support/BarSeriesIonComparator.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2017, 2020 Lablicate GmbH. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * Philip Wenig - initial API and implementation 12 | *******************************************************************************/ 13 | package org.eclipse.swtchart.customcharts.internal.support; 14 | 15 | import java.util.Comparator; 16 | 17 | public class BarSeriesIonComparator implements Comparator { 18 | 19 | @Override 20 | public int compare(BarSeriesIon barSeriesIon1, BarSeriesIon barSeriesIon2) { 21 | 22 | return Double.compare(barSeriesIon2.getIntensity(), barSeriesIon1.getIntensity()); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/org/eclipse/swtchart/extensions/properties/messages.properties: -------------------------------------------------------------------------------- 1 | AXES = Axes: 2 | BACKGROUND = Background: 3 | BACKGROUND_PLOT_AREA = Background in plot area: 4 | BAR_SERIES = Bar series: 5 | CHART_TITLE = Chart Title 6 | COLOR = Color: 7 | ENABLE_CATEGORY = Enable category 8 | ENABLE_LOG_SCALE = Enable log scale 9 | FONT_SIZE = Font size: 10 | FOREGROUND = Foreground: 11 | LINE_COLOR = Line color: 12 | LINE_SERIES = Line series: 13 | LINE_STYLE = Line style: 14 | MAX_RANGE_VALUE = Maximum range value: 15 | MIN_RANGE_VALUE = Minimum range value: 16 | PADDING_SIZE = Padding size: 17 | POSITION = Position: 18 | SERIES = Series: 19 | SHOW_LABEL = Show label 20 | SHOW_LEGEND = Show legend 21 | SHOW_PLOT = Show plot 22 | SHOW_TICK = Show tick 23 | SHOW_TITLE = Show title 24 | STACKED_SERIES = Stacked series 25 | SYMBOL_COLOR = Symbol color: 26 | SYMBOL_SIZE = Symbol size: 27 | SYMBOL_TYPE = Symbol type: 28 | TEXT = Text: 29 | TITLE = Title: 30 | VERTICAL_ORIENTATION = Vertical orientation: 31 | X_AXIS = X Axis: 32 | Y_AXIS = Y Axis: 33 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.vectorgraphics2d/src/org/eclipse/swtchart/vectorgraphics2d/intermediate/commands/CreateCommand.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2010, 2019 VectorGraphics2D project. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * Erich Seifert - initial API and implementation 12 | * Michael Seifert - initial API and implementation 13 | *******************************************************************************/ 14 | package org.eclipse.swtchart.vectorgraphics2d.intermediate.commands; 15 | 16 | import org.eclipse.swtchart.vectorgraphics2d.core.VectorGraphics2D; 17 | 18 | public class CreateCommand extends StateCommand { 19 | 20 | public CreateCommand(VectorGraphics2D graphics) { 21 | 22 | super(graphics); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.vectorgraphics2d/src/org/eclipse/swtchart/vectorgraphics2d/intermediate/commands/DisposeCommand.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2010, 2019 VectorGraphics2D project. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * Erich Seifert - initial API and implementation 12 | * Michael Seifert - initial API and implementation 13 | *******************************************************************************/ 14 | package org.eclipse.swtchart.vectorgraphics2d.intermediate.commands; 15 | 16 | import org.eclipse.swtchart.vectorgraphics2d.core.VectorGraphics2D; 17 | 18 | public class DisposeCommand extends StateCommand { 19 | 20 | public DisposeCommand(VectorGraphics2D graphics) { 21 | 22 | super(graphics); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.vectorgraphics2d.test/src/org/eclipse/swtchart/vectorgraphics2d/test/visual/EmptyFileTest.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2010, 2025 VectorGraphics2D project. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * Erich Seifert - initial API and implementation 12 | * Michael Seifert - initial API and implementation 13 | *******************************************************************************/ 14 | package org.eclipse.swtchart.vectorgraphics2d.test.visual; 15 | 16 | import java.awt.Graphics2D; 17 | import java.io.IOException; 18 | 19 | public class EmptyFileTest extends AbstractTest { 20 | 21 | public EmptyFileTest() throws IOException { 22 | 23 | } 24 | 25 | @Override 26 | public void draw(Graphics2D g) { 27 | 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.vectorgraphics2d/src/org/eclipse/swtchart/vectorgraphics2d/intermediate/commands/AffineTransformCommand.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2010, 2019 VectorGraphics2D project. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * Erich Seifert - initial API and implementation 12 | * Michael Seifert - initial API and implementation 13 | *******************************************************************************/ 14 | package org.eclipse.swtchart.vectorgraphics2d.intermediate.commands; 15 | 16 | import java.awt.geom.AffineTransform; 17 | 18 | public abstract class AffineTransformCommand extends StateCommand { 19 | 20 | public AffineTransformCommand(AffineTransform transform) { 21 | 22 | super(transform); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions.examples/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Automatic-Module-Name: org.eclipse.swtchart.extensions.examples 3 | Bundle-ManifestVersion: 2 4 | Bundle-Name: SWTChat Extension Examples 5 | Bundle-SymbolicName: org.eclipse.swtchart.extensions.examples;singleton:=true 6 | Bundle-Version: 1.2.0.qualifier 7 | Bundle-Activator: org.eclipse.swtchart.extensions.examples.Activator 8 | Bundle-Vendor: Eclipse SWTChart 9 | Require-Bundle: org.eclipse.ui, 10 | org.eclipse.core.runtime, 11 | org.eclipse.swtchart;bundle-version="1.2.0", 12 | org.eclipse.swtchart.extensions;bundle-version="1.2.0", 13 | org.eclipse.e4.ui.di;bundle-version="1.1.100", 14 | org.eclipse.e4.ui.model.workbench;bundle-version="1.2.0.v20160229-1459", 15 | org.eclipse.swtchart.customcharts;bundle-version="1.2.0", 16 | com.github.weisj.jsvg;bundle-version="1.7.2" 17 | Bundle-RequiredExecutionEnvironment: JavaSE-21 18 | Bundle-ActivationPolicy: lazy 19 | Export-Package: org.eclipse.swtchart.extensions.examples.support 20 | Import-Package: jakarta.inject;version="2.0.1" 21 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/org/eclipse/swtchart/extensions/menu/legend/messages.properties: -------------------------------------------------------------------------------- 1 | ADD_SERIES_MAPPING=Add series mapping 2 | REMOVE_SERIES_MAPPING=Remove series mapping 3 | ADD_REMOVE_SERIES_MAPPING=Add/Remove the series settings mapping of the selected entries. 4 | ADJUST_COLOR_OF_SELECTED_SERIES=Adjust the color of the selected series. 5 | DESCRIPTION=Description 6 | DESCRIPTION_MUST_NOT_BE_EMPTY=The description must be not empty. 7 | FORGOT_TO_SET_DESCRIPTION=Please set a description. 8 | HIDE_SELECTED_SERIES=Hide selected series 9 | HIDE_SELECTED_SERIES_IN_LEGEND=Hide selected series in legend 10 | HIDE_SERIES=Hide series 11 | HIDE_SERIES_IN_LEGEND=Hide series in legend 12 | SET_COLOR=Set Color 13 | SET_DESCRIPTION=Set Description 14 | SET_DESCRIPTION_FOR_SELECTED_SERIES=Set a description for the selected series. 15 | SET_SERIES_COLOR=Set Series Color 16 | SHOW_SELECTED_SERIES=Hide the selected series 17 | SHOW_SELECTED_SERIES_IN_LEGEND=Show the selected series in legend 18 | SHOW_SERIES=Show series 19 | SHOW_SERIES_IN_LEGEND=Show series in legend 20 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.vectorgraphics2d/src/org/eclipse/swtchart/vectorgraphics2d/intermediate/commands/SetTransformCommand.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2010, 2019 VectorGraphics2D project. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * Erich Seifert - initial API and implementation 12 | * Michael Seifert - initial API and implementation 13 | *******************************************************************************/ 14 | package org.eclipse.swtchart.vectorgraphics2d.intermediate.commands; 15 | 16 | import java.awt.geom.AffineTransform; 17 | 18 | public class SetTransformCommand extends StateCommand { 19 | 20 | public SetTransformCommand(AffineTransform transform) { 21 | 22 | super(new AffineTransform(transform)); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions.examples/icons/svg/right.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/org/eclipse/swtchart/extensions/dialogs/SettingsStatus.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2022, 2023 Lablicate GmbH. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * Philip Wenig - initial API and implementation 12 | *******************************************************************************/ 13 | package org.eclipse.swtchart.extensions.dialogs; 14 | 15 | import org.eclipse.swtchart.IEnumLabel; 16 | 17 | public enum SettingsStatus implements IEnumLabel { 18 | 19 | NORMAL("Normal"), // 20 | HIGHLIGHT("Highlight"); 21 | 22 | private String label = ""; 23 | 24 | private SettingsStatus(String label) { 25 | 26 | this.label = label; 27 | } 28 | 29 | @Override 30 | public String label() { 31 | 32 | return label; 33 | } 34 | } -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/resources/icons/svg/arrowRight.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.vectorgraphics2d/src/org/eclipse/swtchart/vectorgraphics2d/intermediate/commands/DrawShapeCommand.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2010, 2019 VectorGraphics2D project. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * Erich Seifert - initial API and implementation 12 | * Michael Seifert - initial API and implementation 13 | *******************************************************************************/ 14 | package org.eclipse.swtchart.vectorgraphics2d.intermediate.commands; 15 | 16 | import java.awt.Shape; 17 | 18 | import org.eclipse.swtchart.vectorgraphics2d.util.GraphicsUtils; 19 | 20 | public class DrawShapeCommand extends Command { 21 | 22 | public DrawShapeCommand(Shape shape) { 23 | 24 | super(GraphicsUtils.clone(shape)); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.vectorgraphics2d/src/org/eclipse/swtchart/vectorgraphics2d/intermediate/commands/FillShapeCommand.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2010, 2019 VectorGraphics2D project. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * Erich Seifert - initial API and implementation 12 | * Michael Seifert - initial API and implementation 13 | *******************************************************************************/ 14 | package org.eclipse.swtchart.vectorgraphics2d.intermediate.commands; 15 | 16 | import java.awt.Shape; 17 | 18 | import org.eclipse.swtchart.vectorgraphics2d.util.GraphicsUtils; 19 | 20 | public class FillShapeCommand extends Command { 21 | 22 | public FillShapeCommand(Shape shape) { 23 | 24 | super(GraphicsUtils.clone(shape)); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/org/eclipse/swtchart/extensions/core/IMouseSupport.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2019, 2025 Lablicate GmbH. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * Dr. Philip Wenig - initial API and implementation 12 | *******************************************************************************/ 13 | package org.eclipse.swtchart.extensions.core; 14 | 15 | public interface IMouseSupport { 16 | 17 | int EVENT_MOUSE_DOUBLE_CLICK = 1; 18 | int EVENT_MOUSE_WHEEL = 2; 19 | int EVENT_MOUSE_DOWN = 3; 20 | int EVENT_MOUSE_MOVE = 4; 21 | int EVENT_MOUSE_UP = 5; 22 | 23 | int MOUSE_BUTTON_LEFT = 1; 24 | int MOUSE_BUTTON_MIDDLE = 2; 25 | int MOUSE_BUTTON_RIGHT = 3; // Used by the menu 26 | int MOUSE_BUTTON_WHEEL = 4; 27 | int MOUSE_BUTTON_NONE = 5; 28 | } 29 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/org/eclipse/swtchart/extensions/charts/messages.properties: -------------------------------------------------------------------------------- 1 | ADJUST_AXIS_RANGE = &Adjust Axes Range 2 | ADJUST_X_AXIS_RANGE = Adjust &X Axis Range 3 | ADJUST_Y_AXIS_RANGE = Adjust &Y Axis Range 4 | BOLD = Bold 5 | CHART = Chart 6 | CIRCLE = Circle 7 | CROSS = Cross 8 | DIAMOND = Diamond 9 | EMOJI = Emoji 10 | GRID = Grid 11 | INVERTED_TRIANGLE = Inverted Triangle 12 | ITALIC = Italic 13 | LABEL = Label 14 | LEGEND = Legend 15 | NONE = None 16 | NORMAL = Normal 17 | PLUS = Plus 18 | PRIMARY = Primary 19 | PROPERTIES = Properties 20 | PROPERTIES_MENU = P&roperties... 21 | SAVE_AS = Save As... 22 | SAVE_AS_DIALOG = Save As 23 | SECONDARY = Secondary 24 | SERIES = Series 25 | SOLID = Solid 26 | SQUARE = Square 27 | TICK = Tick 28 | TRIANGLE = Triangle 29 | X_AXIS = X Axis 30 | Y_AXIS = Y Axis 31 | ZOOM_IN = Zoom &In 32 | ZOOM_IN_CTRL = Zoom &In\tCtrl+Up 33 | ZOOM_IN_X_AXIS = Zoom In &X Axis 34 | ZOOM_IN_Y_AXIS = Zoom In &Y Axis 35 | ZOOM_OUT = Zoom &Out 36 | ZOOM_OUT_CTRL = Zoom &Out\tCtrl+Down 37 | ZOOM_OUT_X_AXIS = Zoom Out &X Axis 38 | ZOOM_OUT_Y_AXIS = Zoom Out &Y Axis 39 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/org/eclipse/swtchart/extensions/dialogs/ScatterSeriesSettingsDialog.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2022, 2023 Lablicate GmbH. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * Philip Wenig - initial API and implementation 12 | *******************************************************************************/ 13 | package org.eclipse.swtchart.extensions.dialogs; 14 | 15 | import org.eclipse.swt.widgets.Shell; 16 | import org.eclipse.swtchart.extensions.scattercharts.IScatterSeriesSettings; 17 | 18 | public class ScatterSeriesSettingsDialog extends AbstractPointSeriesSettingsDialog { 19 | 20 | public ScatterSeriesSettingsDialog(Shell parentShell, IScatterSeriesSettings settings) { 21 | 22 | super(parentShell, settings); 23 | } 24 | } -------------------------------------------------------------------------------- /org.eclipse.swtchart.export.test/testData/files/import/BarSeries1: -------------------------------------------------------------------------------- 1 | 16.0 40 2 | 17.0 13 3 | 18.0 61 4 | 20.0 2 5 | 25.0 2 6 | 26.0 11 7 | 29.3 36 8 | 34.0 3 9 | 36.0 4 10 | 37.0 36 11 | 38.0 61 12 | 39.0 79 13 | 40.0 62 14 | 41.0 17 15 | 42.0 7 16 | 44.0 98 17 | 45.0 38 18 | 46.0 2 19 | 47.0 8 20 | 49.1 32 21 | 50.0 220 22 | 51.0 373 23 | 52.1 63 24 | 54.0 3 25 | 55.0 23 26 | 56.0 7 27 | 57.0 8 28 | 60.0 6 29 | 61.0 13 30 | 62.0 10 31 | 63.0 13 32 | 64.0 5 33 | 65.0 31 34 | 66.2 20 35 | 67.0 10 36 | 68.0 7 37 | 69.0 5 38 | 70.0 3 39 | 71.0 1 40 | 73.0 26 41 | 74.0 97 42 | 75.0 49 43 | 77.1 709 44 | 78.0 73 45 | 79.0 11 46 | 80.0 2 47 | 81.0 3 48 | 82.0 3 49 | 83.0 4 50 | 84.0 3 51 | 85.0 5 52 | 86.0 3 53 | 87.0 2 54 | 89.0 1 55 | 90.0 1 56 | 91.0 10 57 | 93.0 8 58 | 94.0 27 59 | 95.0 5 60 | 96.0 2 61 | 97.0 1 62 | 102.0 2 63 | 103.0 4 64 | 105.1 1000 65 | 106.2 81 66 | 107.0 7 67 | 118.0 2 68 | 119.0 6 69 | 122.1 843 70 | 123.0 62 71 | 124.0 8 72 | 133.0 6 73 | 134.0 4 74 | 135.0 1 75 | 137.0 3 76 | 149.0 3 77 | 150.0 2 78 | 191.0 1 79 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions.test/testData/files/import/BarSeries1: -------------------------------------------------------------------------------- 1 | 16.0 40 2 | 17.0 13 3 | 18.0 61 4 | 20.0 2 5 | 25.0 2 6 | 26.0 11 7 | 29.3 36 8 | 34.0 3 9 | 36.0 4 10 | 37.0 36 11 | 38.0 61 12 | 39.0 79 13 | 40.0 62 14 | 41.0 17 15 | 42.0 7 16 | 44.0 98 17 | 45.0 38 18 | 46.0 2 19 | 47.0 8 20 | 49.1 32 21 | 50.0 220 22 | 51.0 373 23 | 52.1 63 24 | 54.0 3 25 | 55.0 23 26 | 56.0 7 27 | 57.0 8 28 | 60.0 6 29 | 61.0 13 30 | 62.0 10 31 | 63.0 13 32 | 64.0 5 33 | 65.0 31 34 | 66.2 20 35 | 67.0 10 36 | 68.0 7 37 | 69.0 5 38 | 70.0 3 39 | 71.0 1 40 | 73.0 26 41 | 74.0 97 42 | 75.0 49 43 | 77.1 709 44 | 78.0 73 45 | 79.0 11 46 | 80.0 2 47 | 81.0 3 48 | 82.0 3 49 | 83.0 4 50 | 84.0 3 51 | 85.0 5 52 | 86.0 3 53 | 87.0 2 54 | 89.0 1 55 | 90.0 1 56 | 91.0 10 57 | 93.0 8 58 | 94.0 27 59 | 95.0 5 60 | 96.0 2 61 | 97.0 1 62 | 102.0 2 63 | 103.0 4 64 | 105.1 1000 65 | 106.2 81 66 | 107.0 7 67 | 118.0 2 68 | 119.0 6 69 | 122.1 843 70 | 123.0 62 71 | 124.0 8 72 | 133.0 6 73 | 134.0 4 74 | 135.0 1 75 | 137.0 3 76 | 149.0 3 77 | 150.0 2 78 | 191.0 1 79 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.vectorgraphics2d/src/org/eclipse/swtchart/vectorgraphics2d/intermediate/CommandSequence.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2010, 2019 VectorGraphics2D project. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * Erich Seifert - initial API and implementation 12 | * Michael Seifert - initial API and implementation 13 | *******************************************************************************/ 14 | package org.eclipse.swtchart.vectorgraphics2d.intermediate; 15 | 16 | import org.eclipse.swtchart.vectorgraphics2d.intermediate.commands.Command; 17 | 18 | /** 19 | * Represents a sequence of {@link Command} objects. 20 | * The individual {@code Command}s can be retrieved through an {@code Iterator}. 21 | */ 22 | public interface CommandSequence extends Iterable> { 23 | } 24 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/org/eclipse/swtchart/extensions/core/SeriesStatusAdapter.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2017, 2020 Lablicate GmbH. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * Dr. Philip Wenig - initial API and implementation 12 | *******************************************************************************/ 13 | package org.eclipse.swtchart.extensions.core; 14 | 15 | public class SeriesStatusAdapter implements ISeriesStatusListener { 16 | 17 | @Override 18 | public void handleSeriesSelectionEvent(String seriesId) { 19 | 20 | } 21 | 22 | @Override 23 | public void handleSeriesHideEvent(String seriesId) { 24 | 25 | } 26 | 27 | @Override 28 | public void handleSeriesResetEvent(String seriesId) { 29 | 30 | } 31 | 32 | @Override 33 | public void handleRedrawEvent() { 34 | 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/org/eclipse/swtchart/extensions/model/ICustomSeries.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2023 Lablicate GmbH. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * Philip Wenig - initial API and implementation 12 | *******************************************************************************/ 13 | package org.eclipse.swtchart.extensions.model; 14 | 15 | import java.util.Set; 16 | 17 | public interface ICustomSeries { 18 | 19 | String getId(); 20 | 21 | String getLabel(); 22 | 23 | void setLabel(String label); 24 | 25 | String getDescription(); 26 | 27 | void setDescription(String description); 28 | 29 | boolean isDraw(); 30 | 31 | void setDraw(boolean draw); 32 | 33 | void clear(); 34 | 35 | Set getTextElements(); 36 | 37 | Set getGraphicElements(); 38 | } -------------------------------------------------------------------------------- /org.eclipse.swtchart.vectorgraphics2d/src/org/eclipse/swtchart/vectorgraphics2d/intermediate/commands/Group.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2010, 2019 VectorGraphics2D project. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * Erich Seifert - initial API and implementation 12 | * Michael Seifert - initial API and implementation 13 | *******************************************************************************/ 14 | package org.eclipse.swtchart.vectorgraphics2d.intermediate.commands; 15 | 16 | import java.util.LinkedList; 17 | import java.util.List; 18 | 19 | public class Group extends Command>> { 20 | 21 | public Group() { 22 | 23 | super(new LinkedList<>()); 24 | } 25 | 26 | public void add(Command command) { 27 | 28 | List> group = getValue(); 29 | group.add(command); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions.examples/src/org/eclipse/swtchart/extensions/examples/support/BarSeries1: -------------------------------------------------------------------------------- 1 | 16.0 40 2 | 17.0 13 3 | 18.0 61 4 | 20.0 2 5 | 25.0 2 6 | 26.0 11 7 | 29.3 36 8 | 34.0 3 9 | 36.0 4 10 | 37.0 36 11 | 38.0 61 12 | 39.0 79 13 | 40.0 62 14 | 41.0 17 15 | 42.0 7 16 | 44.0 98 17 | 45.0 38 18 | 46.0 2 19 | 47.0 8 20 | 49.1 32 21 | 50.0 220 22 | 51.0 373 23 | 52.1 63 24 | 54.0 3 25 | 55.0 23 26 | 56.0 7 27 | 57.0 8 28 | 60.0 6 29 | 61.0 13 30 | 62.0 10 31 | 63.0 13 32 | 64.0 5 33 | 65.0 31 34 | 66.2 20 35 | 67.0 10 36 | 68.0 7 37 | 69.0 5 38 | 70.0 3 39 | 71.0 1 40 | 73.0 26 41 | 74.0 97 42 | 75.0 49 43 | 77.1 709 44 | 78.0 73 45 | 79.0 11 46 | 80.0 2 47 | 81.0 3 48 | 82.0 3 49 | 83.0 4 50 | 84.0 3 51 | 85.0 5 52 | 86.0 3 53 | 87.0 2 54 | 89.0 1 55 | 90.0 1 56 | 91.0 10 57 | 93.0 8 58 | 94.0 27 59 | 95.0 5 60 | 96.0 2 61 | 97.0 1 62 | 102.0 2 63 | 103.0 4 64 | 105.1 1000 65 | 106.2 81 66 | 107.0 7 67 | 118.0 2 68 | 119.0 6 69 | 122.1 843 70 | 123.0 62 71 | 124.0 8 72 | 133.0 6 73 | 134.0 4 74 | 135.0 1 75 | 137.0 3 76 | 149.0 3 77 | 150.0 2 78 | 191.0 1 79 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/org/eclipse/swtchart/extensions/core/AbstractAxisScaleConverter.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2017, 2019 Lablicate GmbH. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * Dr. Philip Wenig - initial API and implementation 12 | *******************************************************************************/ 13 | package org.eclipse.swtchart.extensions.core; 14 | 15 | public abstract class AbstractAxisScaleConverter implements IAxisScaleConverter { 16 | 17 | private IChartDataCoordinates dataCoordinates; 18 | 19 | @Override 20 | public IChartDataCoordinates getChartDataCoordinates() { 21 | 22 | return dataCoordinates; 23 | } 24 | 25 | @Override 26 | public void setChartDataCoordinates(IChartDataCoordinates dataCoordinates) { 27 | 28 | this.dataCoordinates = dataCoordinates; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/org/eclipse/swtchart/extensions/menu/IChartMenuCategories.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2017, 2019 Lablicate GmbH. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * Dr. Philip Wenig - initial API and implementation 12 | * Frank Buloup - Internationalization 13 | *******************************************************************************/ 14 | package org.eclipse.swtchart.extensions.menu; 15 | 16 | public interface IChartMenuCategories { 17 | 18 | String STANDARD_OPERATION = ""; // Must be empty to be placed on the main menu level. //$NON-NLS-1$ 19 | String RANGE_SELECTION = Messages.getString(Messages.RANGE_SELECTION); 20 | String TOGGLE_VISIBILITY = Messages.getString(Messages.TOGGLE_VISIBILITY); 21 | String EXPORT_CONVERTER = Messages.getString(Messages.EXPORT_CHART_SELECTION); 22 | } 23 | -------------------------------------------------------------------------------- /org.eclipse.swtchart/src/org/eclipse/swtchart/ICustomPaintListener.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2008, 2019 SWTChart project. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * yoshitaka - initial API and implementation 12 | * Christoph Läubrich - add default implementation 13 | *******************************************************************************/ 14 | package org.eclipse.swtchart; 15 | 16 | import org.eclipse.swt.events.PaintListener; 17 | 18 | /** 19 | * The paint listener to paint on plot area. 20 | */ 21 | @FunctionalInterface 22 | public interface ICustomPaintListener extends PaintListener { 23 | 24 | /** 25 | * Gets the state indicating if painting behind series. 26 | * 27 | * @return True if painting behind series 28 | */ 29 | default boolean drawBehindSeries() { 30 | 31 | return false; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions.examples/icons/svg/down.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions.examples/icons/svg/up.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/org/eclipse/swtchart/extensions/core/IPrimaryAxisSettings.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2017, 2019 Lablicate GmbH. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * Dr. Philip Wenig - initial API and implementation 12 | *******************************************************************************/ 13 | package org.eclipse.swtchart.extensions.core; 14 | 15 | public interface IPrimaryAxisSettings extends IAxisSettings { 16 | 17 | boolean isEnableCategory(); 18 | 19 | /** 20 | * Only works for X-Axis. 21 | * 22 | * @param enableCategory 23 | */ 24 | void setEnableCategory(boolean enableCategory); 25 | 26 | String[] getCategorySeries(); 27 | 28 | /** 29 | * Only works for X-Axis. 30 | * 31 | * @param categorySeries 32 | */ 33 | void setCategorySeries(String[] categorySeries); 34 | } -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions.examples/icons/svg/left.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/org/eclipse/swtchart/extensions/core/AbstractSeriesListUI.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2020, 2023 Lablicate GmbH. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * Philip Wenig - initial API and implementation 12 | *******************************************************************************/ 13 | package org.eclipse.swtchart.extensions.core; 14 | 15 | import org.eclipse.jface.viewers.TableViewer; 16 | import org.eclipse.swt.widgets.Composite; 17 | 18 | public abstract class AbstractSeriesListUI extends TableViewer { 19 | 20 | protected AbstractSeriesListUI(Composite parent, int style) { 21 | 22 | super(parent, style); 23 | } 24 | 25 | public void clear() { 26 | 27 | super.setInput(null); 28 | } 29 | 30 | public boolean isTableSortable() { 31 | 32 | return getComparator() != null; 33 | } 34 | } -------------------------------------------------------------------------------- /org.eclipse.swtchart.vectorgraphics2d/src/org/eclipse/swtchart/vectorgraphics2d/util/NonClosingFormattingWriter.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2024 VectorGraphics2D project. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * Matthias Mailänder - initial API and implementation 12 | *******************************************************************************/ 13 | package org.eclipse.swtchart.vectorgraphics2d.util; 14 | 15 | import java.io.IOException; 16 | import java.io.OutputStream; 17 | import java.nio.charset.Charset; 18 | 19 | public class NonClosingFormattingWriter extends FormattingWriter { 20 | 21 | public NonClosingFormattingWriter(OutputStream out, Charset charset, String eol) { 22 | 23 | super(out, charset, eol); 24 | } 25 | 26 | @Override 27 | public void close() throws IOException { 28 | 29 | this.flush(); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/org/eclipse/swtchart/extensions/barcharts/IBarSeriesData.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2017, 2025 Lablicate GmbH. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * Dr. Philip Wenig - initial API and implementation 12 | *******************************************************************************/ 13 | package org.eclipse.swtchart.extensions.barcharts; 14 | 15 | import org.eclipse.swtchart.extensions.core.IChartSeriesData; 16 | 17 | public interface IBarSeriesData extends IChartSeriesData { 18 | 19 | /** 20 | * @deprecated use {@link #getSettings()} instead 21 | * @return the {@link IBarSeriesSettings} 22 | */ 23 | @Deprecated 24 | IBarSeriesSettings getBarSeriesSettings(); 25 | 26 | @Override 27 | default IBarSeriesSettings getSettings() { 28 | 29 | return getBarSeriesSettings(); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/resources/icons/svg/arrowDown.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/resources/icons/svg/arrowUp.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /org.eclipse.swtchart/src/org/eclipse/swtchart/Antialias.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2023 Lablicate GmbH. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * Philip Wenig - initial API and implementation 12 | *******************************************************************************/ 13 | package org.eclipse.swtchart; 14 | 15 | import org.eclipse.swt.SWT; 16 | 17 | public enum Antialias implements IEnumLabel { 18 | 19 | DEFAULT("Default", SWT.DEFAULT), // 20 | ON("On", SWT.ON), // 21 | OFF("Off", SWT.OFF); 22 | 23 | private String label; 24 | private int value; 25 | 26 | private Antialias(String label, int value) { 27 | 28 | this.label = label; 29 | this.value = value; 30 | } 31 | 32 | @Override 33 | public String label() { 34 | 35 | return label; 36 | } 37 | 38 | public int value() { 39 | 40 | return value; 41 | } 42 | } -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/resources/icons/svg/arrowLeft.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/org/eclipse/swtchart/extensions/linecharts/ILineSeriesData.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2017, 2025 Lablicate GmbH. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * Dr. Philip Wenig - initial API and implementation 12 | *******************************************************************************/ 13 | package org.eclipse.swtchart.extensions.linecharts; 14 | 15 | import org.eclipse.swtchart.extensions.core.IChartSeriesData; 16 | 17 | public interface ILineSeriesData extends IChartSeriesData { 18 | 19 | /** 20 | * @deprecated use {@link #getSettings()} instead 21 | * @return the {@link ILineSeriesSettings} 22 | */ 23 | @Deprecated 24 | ILineSeriesSettings getLineSeriesSettings(); 25 | 26 | @Override 27 | default ILineSeriesSettings getSettings() { 28 | 29 | return getLineSeriesSettings(); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/org/eclipse/swtchart/extensions/marker/IBaseChartPaintListener.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2017, 2023 Lablicate GmbH. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * Dr. Philip Wenig - initial API and implementation 12 | *******************************************************************************/ 13 | package org.eclipse.swtchart.extensions.marker; 14 | 15 | import org.eclipse.swt.graphics.Color; 16 | import org.eclipse.swtchart.ICustomPaintListener; 17 | import org.eclipse.swtchart.extensions.core.IMouseSupport; 18 | 19 | public interface IBaseChartPaintListener extends ICustomPaintListener { 20 | 21 | IMouseSupport getBaseChart(); 22 | 23 | void setForegroundColor(Color foregroundColor); 24 | 25 | void setBackgroundColor(Color backgroundColor); 26 | 27 | boolean isDraw(); 28 | 29 | void setDraw(boolean draw); 30 | } -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/org/eclipse/swtchart/extensions/model/ElementRectangle.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2023 Lablicate GmbH. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * Philip Wenig - initial API and implementation 12 | *******************************************************************************/ 13 | package org.eclipse.swtchart.extensions.model; 14 | 15 | public class ElementRectangle extends AbstractElement implements IGraphicElement { 16 | 17 | private double width = 0.0d; 18 | private double height = 0.0d; 19 | 20 | public double getWidth() { 21 | 22 | return width; 23 | } 24 | 25 | public void setWidth(double width) { 26 | 27 | this.width = width; 28 | } 29 | 30 | public double getHeight() { 31 | 32 | return height; 33 | } 34 | 35 | public void setHeight(double height) { 36 | 37 | this.height = height; 38 | } 39 | } -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/org/eclipse/swtchart/extensions/scattercharts/IScatterSeriesData.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2017, 2025 Lablicate GmbH. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * Dr. Philip Wenig - initial API and implementation 12 | *******************************************************************************/ 13 | package org.eclipse.swtchart.extensions.scattercharts; 14 | 15 | import org.eclipse.swtchart.extensions.core.IChartSeriesData; 16 | 17 | public interface IScatterSeriesData extends IChartSeriesData { 18 | 19 | /** 20 | * @deprecated use {@link #getSettings()} instead 21 | * @return the {@link IScatterSeriesSettings} 22 | */ 23 | @Deprecated 24 | IScatterSeriesSettings getScatterSeriesSettings(); 25 | 26 | @Override 27 | default IScatterSeriesSettings getSettings() { 28 | 29 | return getScatterSeriesSettings(); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/org/eclipse/swtchart/extensions/core/AbstractHandledChart.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2017, 2023 Lablicate GmbH. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * Dr. Philip Wenig - initial API and implementation 12 | *******************************************************************************/ 13 | package org.eclipse.swtchart.extensions.core; 14 | 15 | import org.eclipse.swt.widgets.Composite; 16 | import org.eclipse.swt.widgets.Event; 17 | import org.eclipse.swtchart.Chart; 18 | 19 | public abstract class AbstractHandledChart extends Chart implements IEventHandler { 20 | 21 | protected AbstractHandledChart(Composite parent, int style) { 22 | 23 | super(parent, style); 24 | } 25 | 26 | @Override 27 | public void handleEvent(Event event) { 28 | 29 | super.handleEvent(event); 30 | IEventHandler.super.handleEvent(event); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /org.eclipse.swtchart/src/org/eclipse/swtchart/model/IndexedSeriesModel.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2019, 2025 Lablicate GmbH. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * Contributors: 9 | * Christoph Läubrich - initial API and implementation 10 | *******************************************************************************/ 11 | package org.eclipse.swtchart.model; 12 | 13 | /** 14 | * A series model that is accessible by an index 15 | * 16 | * @author Christoph Läubrich 17 | * 18 | * @param 19 | */ 20 | public interface IndexedSeriesModel extends SeriesModel { 21 | 22 | /** 23 | * 24 | * @return the size of this {@link IndexedSeriesModel} 25 | */ 26 | int size(); 27 | 28 | /** 29 | * Get the item at the specified index 30 | * 31 | * @param index 32 | * @throws IndexOutOfBoundsException 33 | * if index < 0 or >= {@link #size()} 34 | */ 35 | T itemAt(int index) throws IndexOutOfBoundsException; 36 | } 37 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.export.test/src/org/eclipse/swtchart/export/TestPathHelper.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2019 Lablicate GmbH. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * Contributors: 8 | * 9 | * Dr. Philip Wenig - initial API and implementation 10 | *******************************************************************************/ 11 | package org.eclipse.swtchart.export; 12 | 13 | /** 14 | * THIS CLASS IS NOT SUITED FOR PRODUCTIVE USE!
15 | * IT IS A TESTCLASS! 16 | */ 17 | public class TestPathHelper extends PathResolver { 18 | 19 | /* 20 | * IMPORT 21 | */ 22 | public static final String TESTFILE_LINE_SERIES_1 = "testData/files/import/LineSeries1"; 23 | public static final String TESTFILE_BAR_SERIES_1 = "testData/files/import/BarSeries1"; 24 | public static final String TESTFILE_SCATTER_SERIES_1 = "testData/files/import/ScatterSeries1"; 25 | /* 26 | * EXPORT 27 | */ 28 | public static final String TESTFOLDER_EXPORT = "testData/files/export"; 29 | } 30 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.vectorgraphics2d/src/org/eclipse/swtchart/vectorgraphics2d/intermediate/commands/TransformCommand.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2010, 2019 VectorGraphics2D project. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * Erich Seifert - initial API and implementation 12 | * Michael Seifert - initial API and implementation 13 | *******************************************************************************/ 14 | package org.eclipse.swtchart.vectorgraphics2d.intermediate.commands; 15 | 16 | import java.awt.geom.AffineTransform; 17 | 18 | public class TransformCommand extends AffineTransformCommand { 19 | 20 | private final AffineTransform transform; 21 | 22 | public TransformCommand(AffineTransform transform) { 23 | 24 | super(transform); 25 | this.transform = new AffineTransform(transform); 26 | } 27 | 28 | public AffineTransform getTransform() { 29 | 30 | return transform; 31 | } 32 | } -------------------------------------------------------------------------------- /org.eclipse.swtchart/src/org/eclipse/swtchart/internal/ChartLayoutData.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2008, 2019 SWTChart project. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * yoshitaka - initial API and implementation 12 | *******************************************************************************/ 13 | package org.eclipse.swtchart.internal; 14 | 15 | /** 16 | * The chart layout data 17 | */ 18 | public class ChartLayoutData { 19 | 20 | /** the width hint */ 21 | public int widthHint; 22 | /** the height hint */ 23 | public int heightHint; 24 | 25 | /** 26 | * Constructor. 27 | * 28 | * @param widthHint 29 | * the width hint 30 | * @param heightHint 31 | * the height hint 32 | */ 33 | public ChartLayoutData(int widthHint, int heightHint) { 34 | this.widthHint = widthHint; 35 | this.heightHint = heightHint; 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/org/eclipse/swtchart/extensions/model/TextElement.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2023 Lablicate GmbH. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * Philip Wenig - initial API and implementation 12 | *******************************************************************************/ 13 | package org.eclipse.swtchart.extensions.model; 14 | 15 | public class TextElement extends AbstractElement implements ITextElement { 16 | 17 | private String label = ""; 18 | private int rotation = -90; 19 | 20 | @Override 21 | public String getLabel() { 22 | 23 | return label; 24 | } 25 | 26 | @Override 27 | public void setLabel(String label) { 28 | 29 | this.label = label; 30 | } 31 | 32 | @Override 33 | public int getRotation() { 34 | 35 | return rotation; 36 | } 37 | 38 | @Override 39 | public void setRotation(int rotation) { 40 | 41 | this.rotation = rotation; 42 | } 43 | } -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions.test/src/org/eclipse/swtchart/extensions/TestPathHelper.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2017, 2022 Lablicate GmbH. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * Contributors: 8 | * 9 | * Dr. Philip Wenig - initial API and implementation 10 | *******************************************************************************/ 11 | package org.eclipse.swtchart.extensions; 12 | 13 | /** 14 | * THIS CLASS IS NOT SUITED FOR PRODUCTIVE USE!
15 | * IT IS A TESTCLASS! 16 | */ 17 | public class TestPathHelper extends PathResolver { 18 | 19 | /* 20 | * IMPORT 21 | */ 22 | public static final String TESTFILE_LINE_SERIES_1 = "testData/files/import/LineSeries1"; 23 | public static final String TESTFILE_BAR_SERIES_1 = "testData/files/import/BarSeries1"; 24 | public static final String TESTFILE_SCATTER_SERIES_1 = "testData/files/import/ScatterSeries1"; 25 | /* 26 | * EXPORT 27 | */ 28 | public static final String TESTFOLDER_EXPORT = "testData/files/export"; 29 | } 30 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/org/eclipse/swtchart/extensions/axisconverter/PassThroughConverter.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2017, 2019 Lablicate GmbH. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * Dr. Philip Wenig - initial API and implementation 12 | *******************************************************************************/ 13 | package org.eclipse.swtchart.extensions.axisconverter; 14 | 15 | import org.eclipse.swtchart.extensions.core.AbstractAxisScaleConverter; 16 | import org.eclipse.swtchart.extensions.core.IAxisScaleConverter; 17 | 18 | public class PassThroughConverter extends AbstractAxisScaleConverter implements IAxisScaleConverter { 19 | 20 | @Override 21 | public double convertToSecondaryUnit(double primaryValue) { 22 | 23 | return primaryValue; 24 | } 25 | 26 | @Override 27 | public double convertToPrimaryUnit(double secondaryValue) { 28 | 29 | return secondaryValue; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/org/eclipse/swtchart/extensions/core/ISeriesSettings.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2017, 2023 Lablicate GmbH. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * Dr. Philip Wenig - initial API and implementation 12 | *******************************************************************************/ 13 | package org.eclipse.swtchart.extensions.core; 14 | 15 | public interface ISeriesSettings { 16 | 17 | String getDescription(); 18 | 19 | void setDescription(String description); 20 | 21 | boolean isVisible(); 22 | 23 | void setVisible(boolean visible); 24 | 25 | boolean isVisibleInLegend(); 26 | 27 | void setVisibleInLegend(boolean visibleInLegend); 28 | 29 | boolean isHighlight(); 30 | 31 | void setHighlight(boolean highlight); 32 | 33 | ISeriesSettings getSeriesSettingsHighlight(); 34 | 35 | ISeriesSettings makeDeepCopy(); 36 | 37 | boolean transfer(ISeriesSettings sink); 38 | } -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions.test/src/org/eclipse/swtchart/extensions/axisconverter/ByteToKibibyteConverter_1_Test.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2020, 2025 Lablicate GmbH. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * Philip Wenig - initial API and implementation 12 | *******************************************************************************/ 13 | package org.eclipse.swtchart.extensions.axisconverter; 14 | 15 | import static org.junit.jupiter.api.Assertions.assertEquals; 16 | 17 | import org.junit.jupiter.api.Test; 18 | 19 | public class ByteToKibibyteConverter_1_Test { 20 | 21 | private ByteToKibibyteConverter converter = new ByteToKibibyteConverter(); 22 | 23 | @Test 24 | public void test1() { 25 | 26 | assertEquals(1.0d, converter.convertToSecondaryUnit(1024.0d), 0); 27 | } 28 | 29 | @Test 30 | public void test2() { 31 | 32 | assertEquals(1024.0d, converter.convertToPrimaryUnit(1.0d), 0); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/org/eclipse/swtchart/extensions/internal/support/SeriesContentProvider.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2021, 2023 Lablicate GmbH. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * Philip Wenig - initial API and implementation 12 | *******************************************************************************/ 13 | package org.eclipse.swtchart.extensions.internal.support; 14 | 15 | import java.util.List; 16 | 17 | import org.eclipse.jface.viewers.IStructuredContentProvider; 18 | import org.eclipse.swtchart.ISeriesSet; 19 | 20 | public class SeriesContentProvider implements IStructuredContentProvider { 21 | 22 | @Override 23 | public Object[] getElements(Object input) { 24 | 25 | if(input instanceof ISeriesSet) { 26 | return ((ISeriesSet)input).getSeries(); 27 | } else if(input instanceof List) { 28 | return ((List)input).toArray(); 29 | } else { 30 | return null; 31 | } 32 | } 33 | } -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions.examples/src/org/eclipse/swtchart/extensions/examples/support/BarSeries3-Negative: -------------------------------------------------------------------------------- 1 | 26.0 -4.0 2 | 27.0 -4.0 3 | 28.0 -2.0 4 | 29.0 -3.0 5 | 37.0 -4.0 6 | 38.0 -9.0 7 | 39.0 -94.0 8 | 40.0 -10.0 9 | 41.0 -55.0 10 | 42.0 -0.0 11 | 43.0 -14.0 12 | 50.0 -13.0 13 | 51.0 -56.0 14 | 52.0 -17.0 15 | 53.0 -33.0 16 | 54.0 -0.0 17 | 55.0 -17.0 18 | 57.0 -3.0 19 | 58.0 -5.0 20 | 61.0 -3.0 21 | 62.0 -12.0 22 | 63.0 -24.0 23 | 64.0 -7.0 24 | 65.0 -46.0 25 | 66.0 -16.0 26 | 67.0 -25.0 27 | 68.0 -12.0 28 | 69.0 -7.0 29 | 74.0 -6.0 30 | 75.0 -12.0 31 | 76.0 -3.0 32 | 77.0 -80.0 33 | 78.0 -24.0 34 | 79.0 -49.0 35 | 80.0 -2.0 36 | 81.0 -6.0 37 | 83.0 -5.0 38 | 85.0 -4.0 39 | 87.0 -3.0 40 | 89.0 -13.0 41 | 90.0 -5.0 42 | 91.0 -157.0 43 | 92.0 -19.0 44 | 93.0 -12.0 45 | 94.0 -4.0 46 | 95.0 -3.0 47 | 101.0 -4.0 48 | 102.0 -11.0 49 | 103.0 -17.0 50 | 104.0 -4.0 51 | 105.0 -43.0 52 | 106.0 -6.0 53 | 107.0 -51.0 54 | 108.0 -12.0 55 | 109.0 -17.0 56 | 113.0 -6.0 57 | 114.0 -3.0 58 | 115.0 -91.0 59 | 116.0 -28.0 60 | 117.0 -87.0 61 | 118.0 -10.0 62 | 119.0 -6.0 63 | 120.0 -6.0 64 | 121.0 -22.0 65 | 128.0 -4.0 66 | 129.0 -3.0 67 | 131.0 -6.0 68 | 133.0 -20.0 69 | 134.0 -18.0 70 | 135.0 -1000.0 71 | 136.0 -89.0 72 | 137.0 -4.0 73 | 150.0 -248.0 74 | 151.0 -27.0 -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/org/eclipse/swtchart/extensions/core/MappingsType.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2021, 2023 Lablicate GmbH. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * Philip Wenig - initial API and implementation 12 | *******************************************************************************/ 13 | package org.eclipse.swtchart.extensions.core; 14 | 15 | import org.eclipse.swtchart.IEnumLabel; 16 | 17 | public enum MappingsType implements IEnumLabel { 18 | 19 | NONE(Messages.getString(Messages.NONE)), // 20 | BAR(Messages.getString(Messages.BAR)), // 21 | LINE(Messages.getString(Messages.LINE)), // 22 | SCATTER(Messages.getString(Messages.SCATTER)), // 23 | CIRCULAR(Messages.getString(Messages.CIRCULAR)); // 24 | 25 | private String label; 26 | 27 | private MappingsType(String label) { 28 | 29 | this.label = label; 30 | } 31 | 32 | @Override 33 | public String label() { 34 | 35 | return label; 36 | } 37 | } -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/org/eclipse/swtchart/extensions/internal/support/BarSeriesIon.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2017, 2019 Lablicate GmbH. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * Philip Wenig - initial API and implementation 12 | *******************************************************************************/ 13 | package org.eclipse.swtchart.extensions.internal.support; 14 | 15 | import org.eclipse.swt.graphics.Point; 16 | 17 | public class BarSeriesIon { 18 | 19 | private double mz; 20 | private double intensity; 21 | private Point point; 22 | 23 | public BarSeriesIon(double mz, double intensity, Point point) { 24 | this.mz = mz; 25 | this.intensity = intensity; 26 | this.point = point; 27 | } 28 | 29 | public double getMz() { 30 | 31 | return mz; 32 | } 33 | 34 | public double getIntensity() { 35 | 36 | return intensity; 37 | } 38 | 39 | public Point getPoint() { 40 | 41 | return point; 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.customcharts/src/org/eclipse/swtchart/customcharts/internal/support/BarSeriesIon.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2017, 2020 Lablicate GmbH. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * Philip Wenig - initial API and implementation 12 | *******************************************************************************/ 13 | package org.eclipse.swtchart.customcharts.internal.support; 14 | 15 | import org.eclipse.swt.graphics.Point; 16 | 17 | public class BarSeriesIon { 18 | 19 | private double mz; 20 | private double intensity; 21 | private Point point; 22 | 23 | public BarSeriesIon(double mz, double intensity, Point point) { 24 | 25 | this.mz = mz; 26 | this.intensity = intensity; 27 | this.point = point; 28 | } 29 | 30 | public double getMz() { 31 | 32 | return mz; 33 | } 34 | 35 | public double getIntensity() { 36 | 37 | return intensity; 38 | } 39 | 40 | public Point getPoint() { 41 | 42 | return point; 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/org/eclipse/swtchart/extensions/clipboard/IImageClipboardSupplier.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2023 Lablicate GmbH. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * Philip Wenig - initial API and implementation 12 | *******************************************************************************/ 13 | package org.eclipse.swtchart.extensions.clipboard; 14 | 15 | import org.eclipse.swtchart.extensions.core.BaseChart; 16 | 17 | public interface IImageClipboardSupplier { 18 | 19 | /** 20 | * Return a MIME type, e.g.: image/svg+xml 21 | * 22 | * @return String 23 | */ 24 | String getTypeName(); 25 | 26 | /** 27 | * Creates the transfer object. 28 | * 29 | * @param baseChart 30 | * @return Object 31 | */ 32 | Object createData(BaseChart baseChart); 33 | 34 | /** 35 | * Transfer the given object to a byte array. 36 | * 37 | * @param object 38 | * @return byte[] 39 | */ 40 | byte[] getData(Object object); 41 | } -------------------------------------------------------------------------------- /org.eclipse.swtchart.vectorgraphics2d/src/org/eclipse/swtchart/vectorgraphics2d/core/Document.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2010, 2019 VectorGraphics2D project. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * Erich Seifert - initial API and implementation 12 | * Michael Seifert - initial API and implementation 13 | *******************************************************************************/ 14 | package org.eclipse.swtchart.vectorgraphics2d.core; 15 | 16 | import java.io.IOException; 17 | import java.io.OutputStream; 18 | 19 | /** 20 | * Interface for documents that are able to output binary files in the 21 | * implemented file format. 22 | */ 23 | public interface Document { 24 | 25 | void writeTo(OutputStream out) throws IOException; 26 | 27 | /** 28 | * Returns whether or not the {@code Document} represents compressed data. 29 | * 30 | * @return {@code true} if the contents are compressed, {@code false} otherwise. 31 | */ 32 | boolean isCompressed(); 33 | } -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/org/eclipse/swtchart/extensions/core/OS.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2022, 2025 Lablicate GmbH. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * Philip Wenig - initial API and implementation 12 | *******************************************************************************/ 13 | package org.eclipse.swtchart.extensions.core; 14 | 15 | public class OS { 16 | 17 | public static boolean isWindows() { 18 | 19 | return (getOperatingSystem().indexOf("win") >= 0); 20 | } 21 | 22 | public static boolean isLinux() { 23 | 24 | return (getOperatingSystem().indexOf("linux") >= 0); 25 | } 26 | 27 | public static boolean isMac() { 28 | 29 | return (getOperatingSystem().indexOf("mac") >= 0); 30 | } 31 | 32 | public static boolean isUnix() { 33 | 34 | return (getOperatingSystem().indexOf("unix") >= 0); 35 | } 36 | 37 | private static String getOperatingSystem() { 38 | 39 | return System.getProperty("os.name").toLowerCase(); 40 | } 41 | } -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/org/eclipse/swtchart/extensions/widgets/ExtendedCombo.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2023, 2025 Lablicate GmbH. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * Philip Wenig - initial API and implementation 12 | *******************************************************************************/ 13 | package org.eclipse.swtchart.extensions.widgets; 14 | 15 | import org.eclipse.swt.widgets.Combo; 16 | import org.eclipse.swt.widgets.Composite; 17 | import org.eclipse.swtchart.extensions.core.OS; 18 | 19 | public class ExtendedCombo { 20 | 21 | public static Combo create(Composite parent, int style) { 22 | 23 | Combo combo = new Combo(parent, style); 24 | initialize(combo); 25 | 26 | return combo; 27 | } 28 | 29 | private static void initialize(Combo combo) { 30 | 31 | /* 32 | * https://bugs.eclipse.org/bugs/show_bug.cgi?id=567652 33 | */ 34 | if(OS.isLinux()) { 35 | combo.setBackground(combo.getBackground()); 36 | } 37 | } 38 | } -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Copyright (c) 2022, 2025 SWTChart project 3 | # 4 | # This program and the accompanying materials are made available under the 5 | # terms of the Eclipse Public License 2.0 which is available at 6 | # https://www.eclipse.org/legal/epl-2.0/. 7 | # 8 | # SPDX-License-Identifier: EPL-2.0 9 | # 10 | # Contributors: 11 | # Matthias Mailänder - initial API and implementation 12 | ############################################################################### 13 | 14 | name: Continuous Integration 15 | on: 16 | pull_request: 17 | 18 | permissions: 19 | contents: read 20 | 21 | jobs: 22 | build: 23 | runs-on: ubuntu-latest 24 | 25 | steps: 26 | - name: Checkout SWTChart 27 | uses: actions/checkout@v6 28 | 29 | - name: Set up JDK 30 | uses: actions/setup-java@v5 31 | with: 32 | distribution: 'temurin' 33 | java-version: '21' 34 | cache: 'maven' 35 | 36 | - name: Set up Maven 37 | uses: stCarolas/setup-maven@v5 38 | with: 39 | maven-version: 3.9.11 40 | 41 | - name: Build with Maven on X Window Virtual Framebuffer 42 | run: xvfb-run --auto-servernum mvn -Pjavadoc --T 1C verify --B -ntp -Dstyle.color=always 43 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/org/eclipse/swtchart/extensions/axisconverter/ByteToKibibyteConverter.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2020 Lablicate GmbH. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * Philip Wenig - initial API and implementation 12 | *******************************************************************************/ 13 | package org.eclipse.swtchart.extensions.axisconverter; 14 | 15 | import org.eclipse.swtchart.extensions.core.AbstractAxisScaleConverter; 16 | import org.eclipse.swtchart.extensions.core.IAxisScaleConverter; 17 | 18 | public class ByteToKibibyteConverter extends AbstractAxisScaleConverter implements IAxisScaleConverter { 19 | 20 | private static final double FACTOR = 1024.0d; // 2^10 21 | 22 | @Override 23 | public double convertToSecondaryUnit(double primaryValue) { 24 | 25 | return primaryValue / FACTOR; 26 | } 27 | 28 | @Override 29 | public double convertToPrimaryUnit(double secondaryValue) { 30 | 31 | return secondaryValue * FACTOR; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.vectorgraphics2d/src/org/eclipse/swtchart/vectorgraphics2d/intermediate/commands/SetHintCommand.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2010, 2019 VectorGraphics2D project. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * Erich Seifert - initial API and implementation 12 | * Michael Seifert - initial API and implementation 13 | *******************************************************************************/ 14 | package org.eclipse.swtchart.vectorgraphics2d.intermediate.commands; 15 | 16 | import java.util.Locale; 17 | 18 | public class SetHintCommand extends StateCommand { 19 | 20 | private final Object key; 21 | 22 | public SetHintCommand(Object hintKey, Object hintValue) { 23 | 24 | super(hintValue); 25 | key = hintKey; 26 | } 27 | 28 | public Object getKey() { 29 | 30 | return key; 31 | } 32 | 33 | @Override 34 | public String toString() { 35 | 36 | return String.format((Locale)null, "%s[key=%s, value=%s]", getClass().getName(), getKey(), getValue()); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions.test/src/org/eclipse/swtchart/extensions/axisconverter/MillisecondsToMinuteConverter_1_Test.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2017, 2025 Lablicate GmbH. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * Philip Wenig - initial API and implementation 12 | *******************************************************************************/ 13 | package org.eclipse.swtchart.extensions.axisconverter; 14 | 15 | import static org.junit.jupiter.api.Assertions.assertEquals; 16 | 17 | import org.junit.jupiter.api.Test; 18 | 19 | public class MillisecondsToMinuteConverter_1_Test { 20 | 21 | private MillisecondsToMinuteConverter millisecondsToMinuteConverter = new MillisecondsToMinuteConverter(); 22 | 23 | @Test 24 | public void test1() { 25 | 26 | assertEquals(1.0d, millisecondsToMinuteConverter.convertToSecondaryUnit(60000.0d), 0); 27 | } 28 | 29 | @Test 30 | public void test2() { 31 | 32 | assertEquals(60000.0d, millisecondsToMinuteConverter.convertToPrimaryUnit(1.0d), 0); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /org.eclipse.swtchart/src/org/eclipse/swtchart/model/Messages.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2020 SWT Chart Project 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * Frank Buloup - initial API and implementation 12 | *******************************************************************************/ 13 | 14 | package org.eclipse.swtchart.model; 15 | 16 | import java.util.MissingResourceException; 17 | import java.util.ResourceBundle; 18 | 19 | public class Messages { 20 | 21 | private static final String BUNDLE_NAME = "org.eclipse.swtchart.model.messages"; //$NON-NLS-1$ 22 | private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle.getBundle(BUNDLE_NAME); 23 | 24 | public static final String X_Y_LENGTH_DOESNT_MATCH = "X_Y_LENGTH_DOESNT_MATCH"; 25 | 26 | private Messages() { 27 | 28 | } 29 | 30 | public static String getString(String key) { 31 | 32 | try { 33 | return RESOURCE_BUNDLE.getString(key); 34 | } catch(MissingResourceException e) { 35 | return '!' + key + '!'; 36 | } 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/org/eclipse/swtchart/extensions/core/UserRestriction.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2025 Lablicate GmbH. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * Philip Wenig - initial API and implementation 12 | *******************************************************************************/ 13 | package org.eclipse.swtchart.extensions.core; 14 | 15 | import org.eclipse.swtchart.Range; 16 | 17 | public class UserRestriction { 18 | 19 | private Range rangeX = null; 20 | private Range rangeY = null; 21 | 22 | public void resetRestriction() { 23 | 24 | this.rangeX = null; 25 | this.rangeY = null; 26 | } 27 | 28 | public void setRange(Range rangeX, Range rangeY) { 29 | 30 | this.rangeX = rangeX; 31 | this.rangeY = rangeY; 32 | } 33 | 34 | public Range getRangeX() { 35 | 36 | return rangeX; 37 | } 38 | 39 | public Range getRangeY() { 40 | 41 | return rangeY; 42 | } 43 | 44 | public boolean isRestrictFrame() { 45 | 46 | return rangeX != null && rangeY != null; 47 | } 48 | } -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/org/eclipse/swtchart/extensions/model/IElement.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2023 Lablicate GmbH. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * Philip Wenig - initial API and implementation 12 | *******************************************************************************/ 13 | package org.eclipse.swtchart.extensions.model; 14 | 15 | import org.eclipse.swt.graphics.Color; 16 | 17 | public interface IElement { 18 | 19 | double POSITION_TOP_Y = Double.NEGATIVE_INFINITY; 20 | double POSITION_BOTTOM_Y = Double.POSITIVE_INFINITY; 21 | double POSITION_LEFT_X = Double.NEGATIVE_INFINITY; 22 | double POSITION_RIGHT_X = Double.POSITIVE_INFINITY; 23 | double MAX_HEIGHT = Double.POSITIVE_INFINITY; 24 | double MAX_WIDTH = Double.POSITIVE_INFINITY; 25 | 26 | double getX(); 27 | 28 | void setX(double x); 29 | 30 | double getY(); 31 | 32 | void setY(double y); 33 | 34 | Color getColor(); 35 | 36 | void setColor(Color color); 37 | 38 | int getAlpha(); 39 | 40 | void setAlpha(int alpha); 41 | } -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/org/eclipse/swtchart/extensions/marker/AbstractPositionPaintListener.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2017, 2019 Lablicate GmbH. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * Dr. Philip Wenig - initial API and implementation 12 | *******************************************************************************/ 13 | package org.eclipse.swtchart.extensions.marker; 14 | 15 | import org.eclipse.swtchart.extensions.core.BaseChart; 16 | 17 | public abstract class AbstractPositionPaintListener extends AbstractBaseChartPaintListener implements IPositionPaintListener { 18 | 19 | private int x = -1; 20 | private int y = -1; 21 | 22 | public AbstractPositionPaintListener(BaseChart baseChart) { 23 | super(baseChart); 24 | } 25 | 26 | @Override 27 | public void setActualPosition(int x, int y) { 28 | 29 | this.x = x; 30 | this.y = y; 31 | } 32 | 33 | @Override 34 | public int getX() { 35 | 36 | return x; 37 | } 38 | 39 | @Override 40 | public int getY() { 41 | 42 | return y; 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.export/src/org/eclipse/swtchart/export/menu/bitmap/PNGExportHandler.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2017, 2023 Lablicate GmbH. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * Dr. Philip Wenig - initial API and implementation 12 | *******************************************************************************/ 13 | package org.eclipse.swtchart.export.menu.bitmap; 14 | 15 | import java.text.MessageFormat; 16 | 17 | import org.eclipse.swt.SWT; 18 | 19 | public class PNGExportHandler extends AbstractBitmapExportHandler { 20 | 21 | private static final String FILE_EXTENSION = "*.png"; //$NON-NLS-1$ 22 | public static final String NAME = MessageFormat.format(Messages.getString(Messages.IMAGE), FILE_EXTENSION); 23 | private static final String TITLE = Messages.getString("SAVE_AS_IMAGE"); //$NON-NLS-1$ 24 | private static final String[] FILTER_EXTENSIONS = new String[]{"*.png"}; //$NON-NLS-1$ //$NON-NLS-2$ 25 | 26 | public PNGExportHandler() { 27 | 28 | super(NAME, TITLE, FILTER_EXTENSIONS, SWT.IMAGE_PNG); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /org.eclipse.swtchart/src/org/eclipse/swtchart/internal/ChartTitle.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2008, 2023 SWTChart project. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * yoshitaka - initial API and implementation 12 | * Frank Buloup - Internationalization 13 | * Philip Wenig - resource handling 14 | *******************************************************************************/ 15 | package org.eclipse.swtchart.internal; 16 | 17 | import org.eclipse.swtchart.Chart; 18 | 19 | /** 20 | * A chart title. 21 | */ 22 | public class ChartTitle extends Title { 23 | 24 | /** the default text */ 25 | private static final String DEFAULT_TEXT = Messages.getString(Messages.CHART_TITLE); 26 | 27 | /** 28 | * Constructor. 29 | * 30 | * @param chart 31 | * the plot chart 32 | */ 33 | public ChartTitle(Chart chart) { 34 | 35 | super(chart); 36 | setText(getDefaultText()); 37 | } 38 | 39 | @Override 40 | protected String getDefaultText() { 41 | 42 | return DEFAULT_TEXT; 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/org/eclipse/swtchart/extensions/menu/IChartMenuEntry.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2017, 2024 Lablicate GmbH. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * Dr. Philip Wenig - initial API and implementation 12 | * Christoph Läubrich - extend for tooltip 13 | * Matthias Mailänder - add optional icon 14 | *******************************************************************************/ 15 | package org.eclipse.swtchart.extensions.menu; 16 | 17 | import org.eclipse.swt.graphics.Image; 18 | import org.eclipse.swt.widgets.Shell; 19 | import org.eclipse.swtchart.extensions.core.ScrollableChart; 20 | 21 | public interface IChartMenuEntry { 22 | 23 | String getCategory(); 24 | 25 | String getName(); 26 | 27 | default String getToolTipText() { 28 | 29 | return ""; 30 | } 31 | 32 | default Image getIcon() { 33 | 34 | return null; 35 | } 36 | 37 | default boolean isEnabled(ScrollableChart scrollableChart) { 38 | 39 | return true; 40 | } 41 | 42 | void execute(Shell shell, ScrollableChart scrollableChart); 43 | } 44 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.vectorgraphics2d/src/org/eclipse/swtchart/vectorgraphics2d/intermediate/filters/StateChangeGroupingFilter.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2010, 2019 VectorGraphics2D project. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * Erich Seifert - initial API and implementation 12 | * Michael Seifert - initial API and implementation 13 | *******************************************************************************/ 14 | package org.eclipse.swtchart.vectorgraphics2d.intermediate.filters; 15 | 16 | import org.eclipse.swtchart.vectorgraphics2d.intermediate.CommandSequence; 17 | import org.eclipse.swtchart.vectorgraphics2d.intermediate.commands.Command; 18 | import org.eclipse.swtchart.vectorgraphics2d.intermediate.commands.StateCommand; 19 | 20 | public class StateChangeGroupingFilter extends GroupingFilter { 21 | 22 | public StateChangeGroupingFilter(CommandSequence stream) { 23 | 24 | super(stream); 25 | } 26 | 27 | @Override 28 | protected boolean isGrouped(Command command) { 29 | 30 | return command instanceof StateCommand; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/org/eclipse/swtchart/extensions/axisconverter/MillisecondsToMinuteConverter.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2017, 2019 Lablicate GmbH. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * Dr. Philip Wenig - initial API and implementation 12 | *******************************************************************************/ 13 | package org.eclipse.swtchart.extensions.axisconverter; 14 | 15 | import org.eclipse.swtchart.extensions.core.AbstractAxisScaleConverter; 16 | import org.eclipse.swtchart.extensions.core.IAxisScaleConverter; 17 | 18 | public class MillisecondsToMinuteConverter extends AbstractAxisScaleConverter implements IAxisScaleConverter { 19 | 20 | private static final double MINUTE_CORRELATION_FACTOR = 60000.0d; 21 | 22 | @Override 23 | public double convertToSecondaryUnit(double primaryValue) { 24 | 25 | return primaryValue / MINUTE_CORRELATION_FACTOR; 26 | } 27 | 28 | @Override 29 | public double convertToPrimaryUnit(double secondaryValue) { 30 | 31 | return secondaryValue * MINUTE_CORRELATION_FACTOR; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /org.eclipse.swtchart.extensions/src/org/eclipse/swtchart/extensions/axisconverter/MillisecondsToSecondsConverter.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2018, 2019 Lablicate GmbH. 3 | * 4 | * This program and the accompanying materials are made 5 | * available under the terms of the Eclipse Public License 2.0 6 | * which is available at https://www.eclipse.org/legal/epl-2.0/ 7 | * 8 | * SPDX-License-Identifier: EPL-2.0 9 | * 10 | * Contributors: 11 | * Dr. Philip Wenig - initial API and implementation 12 | *******************************************************************************/ 13 | package org.eclipse.swtchart.extensions.axisconverter; 14 | 15 | import org.eclipse.swtchart.extensions.core.AbstractAxisScaleConverter; 16 | import org.eclipse.swtchart.extensions.core.IAxisScaleConverter; 17 | 18 | public class MillisecondsToSecondsConverter extends AbstractAxisScaleConverter implements IAxisScaleConverter { 19 | 20 | private static final double SECOND_CORRELATION_FACTOR = 1000.0d; 21 | 22 | @Override 23 | public double convertToSecondaryUnit(double primaryValue) { 24 | 25 | return primaryValue / SECOND_CORRELATION_FACTOR; 26 | } 27 | 28 | @Override 29 | public double convertToPrimaryUnit(double secondaryValue) { 30 | 31 | return secondaryValue * SECOND_CORRELATION_FACTOR; 32 | } 33 | } 34 | --------------------------------------------------------------------------------