1 /*******************************************************************************
2 * Copyright (c) 2011 Association for Decentralized Information Management in
4 * All rights reserved. This program and the accompanying materials
5 * are made available under the terms of the Eclipse Public License v1.0
6 * which accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
10 * VTT Technical Research Centre of Finland - initial API and implementation
11 *******************************************************************************/
12 package org.simantics.diagram.profile;
14 import java.awt.geom.AffineTransform;
16 import org.simantics.common.color.Color;
17 import org.simantics.utils.datastructures.map.Tuple;
20 * @author Tuukka Lehtonen
22 public class MonitorTextResult extends Tuple {
23 public MonitorTextResult(String text, AffineTransform parentTransform) {
24 super(text, parentTransform, null);
26 public MonitorTextResult(String text, AffineTransform parentTransform, Color color) {
27 super(text, parentTransform, color);
29 public String getText() {
30 return (String) getField(0);
32 public AffineTransform getParentTransform() {
33 return (AffineTransform) getField(1);
35 public Color getColor() {
36 return (Color) getField(2);