ptolemy.domains.gr.kernel
Class GRUtilities2D

java.lang.Object
  extended by 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: GRUtilities2D.java 40340 2005-12-30 03:30:52Z cxh $
Author:
Steve Neuendorffer
Accepted Rating:
yellow (vogel)
Proposed Rating:
yellow (chf)

Constructor Summary
GRUtilities2D()
           
 
Method Summary
static java.awt.Color makeColor(DoubleMatrixToken colorVector)
          Given a 1x3 DoubleMatrixToken, return the corresponding java.awt.Color object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GRUtilities2D

public GRUtilities2D()
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.