Package ptolemy.domains.gr.kernel
Class GRUtilities2D
- java.lang.Object
-
- ptolemy.domains.gr.kernel.GRUtilities2D
-
public class GRUtilities2D extends java.lang.Object
Utilities that are useful for building 2D GR actors.- Since:
- Ptolemy II 4.0
- Version:
- $Id$
- Author:
- Steve Neuendorffer
- Pt.AcceptedRating:
- yellow (vogel)
- Pt.ProposedRating:
- yellow (chf)
-
-
Constructor Summary
Constructors Constructor Description GRUtilities2D()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.awt.Color
makeColor(DoubleMatrixToken colorVector)
Given a 1x3 DoubleMatrixToken, return the corresponding java.awt.Color object.
-
-
-
Method Detail
-
makeColor
public static java.awt.Color makeColor(DoubleMatrixToken colorVector)
Given a 1x3 DoubleMatrixToken, return the corresponding java.awt.Color object.- Parameters:
colorVector
- A 1x3 DoubleMatrixToken of where the first element is the red value, the second is the green value and the third is the blue value.- Returns:
- The corresponding color.
-
-