-
Notifications
You must be signed in to change notification settings - Fork 45
/
BarChartComponentProps.java
54 lines (43 loc) · 1.85 KB
/
BarChartComponentProps.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/*******************************************************************************
* Copyright (c) 2022 Obeo.
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Obeo - initial API and implementation
*******************************************************************************/
package org.eclipse.sirius.components.charts.barchart.components;
import java.util.Objects;
import java.util.Optional;
import org.eclipse.sirius.components.charts.barchart.BarChart;
import org.eclipse.sirius.components.charts.barchart.descriptions.BarChartDescription;
import org.eclipse.sirius.components.representations.IProps;
import org.eclipse.sirius.components.representations.VariableManager;
/**
* The props of the bar-chart component.
*
* @author fbarbin
*/
public class BarChartComponentProps implements IProps {
private final VariableManager variableManager;
private final BarChartDescription barChartDescription;
private final Optional<BarChart> previousBarChart;
public BarChartComponentProps(VariableManager variableManager, BarChartDescription barChartDescription, Optional<BarChart> previousBarChart) {
this.variableManager = Objects.requireNonNull(variableManager);
this.barChartDescription = Objects.requireNonNull(barChartDescription);
this.previousBarChart = Objects.requireNonNull(previousBarChart);
}
public VariableManager getVariableManager() {
return this.variableManager;
}
public BarChartDescription getBarChartDescription() {
return this.barChartDescription;
}
public Optional<BarChart> getPreviousBarChart() {
return this.previousBarChart;
}
}