1 /*******************************************************************************
2 * Copyright (c) 2016 École Polytechnique de Montréal
4 * All rights reserved. This program and the accompanying materials are
5 * made available under the terms of the Eclipse Public License v1.0 which
6 * accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
8 *******************************************************************************/
10 package org
.eclipse
.tracecompass
.internal
.provisional
.tmf
.chart
.core
.chart
;
13 * This object should contain all the information needed to create a chart in
14 * the GUI, independently of the actual chart implementation.
16 * @author Gabriel-Andrew Pollo-Guilbert
18 public class ChartModel
{
20 // ------------------------------------------------------------------------
22 // ------------------------------------------------------------------------
24 private final ChartType fType
;
25 private final String fTitle
;
26 private final boolean fXLogscale
;
27 private final boolean fYLogscale
;
29 // ------------------------------------------------------------------------
31 // ------------------------------------------------------------------------
37 * The type of the chart
39 * The title of the chart
41 * Whether X axis is logarithmic
43 * Whether Y axis is logarithmic
45 public ChartModel(ChartType type
, String title
, boolean xlog
, boolean ylog
) {
52 // ------------------------------------------------------------------------
54 // ------------------------------------------------------------------------
57 * Accessor that returns the type of the chart.
59 * @return The chart type
61 public ChartType
getChartType() {
66 * Accessor that returns the title of the chart.
68 * @return The title of the chart
70 public String
getTitle() {
75 * Accessor that returns whether X axis is logarithmic.
77 * @return Whether X axis is logarithmic
79 public boolean isXLogscale() {
84 * Accessor that returns whether Y axis is logarithmic.
86 * @return Whether Y axis is logarithmic
88 public boolean isYLogscale() {
This page took 0.042032 seconds and 5 git commands to generate.