X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.diagram%2Fsrc%2Forg%2Fsimantics%2Fdiagram%2Fprofile%2FMonitorTextResult.java;fp=bundles%2Forg.simantics.diagram%2Fsrc%2Forg%2Fsimantics%2Fdiagram%2Fprofile%2FMonitorTextResult.java;h=509bd8eee0844c44880444eb8c619220b9534fd8;hp=ca8aa40bcdba24fe41495b2ba132bb8b1d2f0cb0;hb=0ae2b770234dfc3cbb18bd38f324125cf0faca07;hpb=24e2b34260f219f0d1644ca7a138894980e25b14 diff --git a/bundles/org.simantics.diagram/src/org/simantics/diagram/profile/MonitorTextResult.java b/bundles/org.simantics.diagram/src/org/simantics/diagram/profile/MonitorTextResult.java index ca8aa40bc..509bd8eee 100644 --- a/bundles/org.simantics.diagram/src/org/simantics/diagram/profile/MonitorTextResult.java +++ b/bundles/org.simantics.diagram/src/org/simantics/diagram/profile/MonitorTextResult.java @@ -1,38 +1,38 @@ -/******************************************************************************* - * Copyright (c) 2011 Association for Decentralized Information Management in - * Industry THTH ry. - * 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.diagram.profile; - -import java.awt.geom.AffineTransform; - -import org.simantics.common.color.Color; -import org.simantics.utils.datastructures.map.Tuple; - -/** - * @author Tuukka Lehtonen - */ -public class MonitorTextResult extends Tuple { - public MonitorTextResult(String text, AffineTransform parentTransform) { - super(text, parentTransform, null); - } - public MonitorTextResult(String text, AffineTransform parentTransform, Color color) { - super(text, parentTransform, color); - } - public String getText() { - return (String) getField(0); - } - public AffineTransform getParentTransform() { - return (AffineTransform) getField(1); - } - public Color getColor() { - return (Color) getField(2); - } +/******************************************************************************* + * Copyright (c) 2011 Association for Decentralized Information Management in + * Industry THTH ry. + * 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.diagram.profile; + +import java.awt.geom.AffineTransform; + +import org.simantics.common.color.Color; +import org.simantics.utils.datastructures.map.Tuple; + +/** + * @author Tuukka Lehtonen + */ +public class MonitorTextResult extends Tuple { + public MonitorTextResult(String text, AffineTransform parentTransform) { + super(text, parentTransform, null); + } + public MonitorTextResult(String text, AffineTransform parentTransform, Color color) { + super(text, parentTransform, color); + } + public String getText() { + return (String) getField(0); + } + public AffineTransform getParentTransform() { + return (AffineTransform) getField(1); + } + public Color getColor() { + return (Color) getField(2); + } } \ No newline at end of file