com.panayotis.gnuplot.style
Class RgbPlotColor

java.lang.Object
  extended by com.panayotis.gnuplot.style.RgbPlotColor
All Implemented Interfaces:
PlotColor

public class RgbPlotColor
extends java.lang.Object
implements PlotColor

This is an RGB (red-green-blue) color. For more information see gnuplot documentation for linetype, colors, and styles as well as Colorspec definition.


Constructor Summary
RgbPlotColor(float red, float green, float blue)
          Create a new color using the RGB colorspace.
RgbPlotColor(int red, int green, int blue)
          Create a new color using the RGB colorspace.
 
Method Summary
 java.lang.String getColor()
          Get the representation of this color
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RgbPlotColor

public RgbPlotColor(int red,
                    int green,
                    int blue)
Create a new color using the RGB colorspace.

Parameters:
red - value for red color, in the range of 0..255
green - value for green color, in the range of 0..255
blue - value for blue color, in the range of 0..255

RgbPlotColor

public RgbPlotColor(float red,
                    float green,
                    float blue)
Create a new color using the RGB colorspace.

Parameters:
red - value for red color, in the range of 0..1
green - value for green color, in the range of 0..1
blue - value for blue color, in the range of 0..1
Method Detail

getColor

public java.lang.String getColor()
Get the representation of this color

Specified by:
getColor in interface PlotColor
Returns:
The color representation