1 /*
2 * Metis: Java Data Framework
3 * Copyright 2026. Tony Washer
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
6 * use this file except in compliance with the License. You may obtain a copy
7 * of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14 * License for the specific language governing permissions and limitations under
15 * the License.
16 */
17
18 package io.github.tonywasher.joceanus.metis.preference;
19
20 import io.github.tonywasher.joceanus.metis.viewer.MetisViewerManager;
21
22 /**
23 * Metis Preference Initialisation parameters.
24 */
25 public class MetisPreferenceParams {
26 /**
27 * The Viewer Manager.
28 */
29 private final MetisViewerManager theViewerManager;
30
31 /**
32 * Constructor.
33 *
34 * @param pViewer the viewer manager
35 */
36 public MetisPreferenceParams(final MetisViewerManager pViewer) {
37 theViewerManager = pViewer;
38 }
39
40 /**
41 * Constructor.
42 *
43 * @param pBase the base parameters
44 */
45 protected MetisPreferenceParams(final MetisPreferenceParams pBase) {
46 this(pBase.getViewerManager());
47 }
48
49 /**
50 * Obtain the viewer manager.
51 *
52 * @return the viewer manager
53 */
54 public MetisViewerManager getViewerManager() {
55 return theViewerManager;
56 }
57 }