org.foray.common.ps
Class PsColor
java.lang.Object
org.foray.common.ps.PsColor
public final class PsColor
- extends Object
Utility class for PostScript color conversions.
Method Summary |
static String |
toPS(Color color,
boolean fillNotStroke)
Convert a Color to PostScript. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
toPS
public static String toPS(Color color,
boolean fillNotStroke)
- Convert a Color to PostScript.
- Parameters:
color
- The AWT color instance that should be expressed in
PostScript.fillNotStroke
- Set to true iff the color should be used for the
fill but not for the stroke.
- Returns:
- The PostScript code that represents this color.
Copyright © 2017. All rights reserved.