Class 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.
      • 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.