X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.trend%2Fsrc%2Forg%2Fsimantics%2Ftrend%2Fconfiguration%2FViewProfile.java;fp=bundles%2Forg.simantics.trend%2Fsrc%2Forg%2Fsimantics%2Ftrend%2Fconfiguration%2FViewProfile.java;h=f90e5cde6276c4e7cb9a05ad74318c36d20b0095;hb=969bd23cab98a79ca9101af33334000879fb60c5;hp=0000000000000000000000000000000000000000;hpb=866dba5cd5a3929bbeae85991796acb212338a08;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.trend/src/org/simantics/trend/configuration/ViewProfile.java b/bundles/org.simantics.trend/src/org/simantics/trend/configuration/ViewProfile.java new file mode 100644 index 000000000..f90e5cde6 --- /dev/null +++ b/bundles/org.simantics.trend/src/org/simantics/trend/configuration/ViewProfile.java @@ -0,0 +1,58 @@ +/******************************************************************************* + * Copyright (c) 2007 VTT Technical Research Centre of Finland and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * VTT Technical Research Centre of Finland - initial API and implementation + *******************************************************************************/ +package org.simantics.trend.configuration; + +import org.simantics.databoard.util.Bean; + +/** + * ViewProfile specifies a view settings of a chart. + * + * ViewProfiles can exist in different scopes: Transient, Model, Workspace + * + * @author Toni Kalajainen + */ +public class ViewProfile extends Bean { + + public String profileName; + + public boolean showMilestones; + + /** + * Whether to render the value grid in the chart or not. + */ + public boolean showGrid; + + public TimeWindow timeWindow; + + /** + * If true the momentary value hairline shall follow current + * experiment time when simulation is in running state. + */ + public boolean trackExperimentTime; + + /** + * Relative position in (0,0)x(1,1) for the momentary value view. + */ + public double valueViewPositionX = 1; + public double valueViewPositionY = 0; + + /** + * Either one color (3 values) or a vertical color gradient (6 values). + */ + public float[] backgroundColor; + + /** + * Optional grid color in RGB, 3 float values. + * By default (0,7451, 0,7451, 0,8627), i.e. (190, 190, 220) or #BEBEDC. + */ + public float[] gridColor; + +}