OBEROn SDK

com.oberon.ooql.sdk
Class GraphStyler.Color

java.lang.Object
  extended by com.oberon.ooql.sdk.GraphStyler.Color
Enclosing class:
GraphStyler

public class GraphStyler.Color
extends java.lang.Object

Generic chart color


Constructor Summary
GraphStyler.Color(int red, int green, int blue)
          Generates a new color from RGB values
GraphStyler.Color(java.lang.String hexColor)
          Generates a new color from the hex value
 
Method Summary
 int getBlue()
          Return the color blue value
 int getGreen()
          Return the color green value
 java.lang.String getHexString()
          Return the hex value of this color
 GraphStyler.Color getModifyColor(int delta)
          Return a new darker or brighter color
 GraphStyler.Color getNegativeColor()
          Return the corresponding negative color
 int getRed()
          Return the color red value
 void setHexColor(java.lang.String hexColor)
          Change the color hex value
 void setRGBColor(int red, int green, int blue)
          Change the color RGB values
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphStyler.Color

public GraphStyler.Color(java.lang.String hexColor)
Generates a new color from the hex value

Parameters:
hexColor - the hex or html color (example: #000000)

GraphStyler.Color

public GraphStyler.Color(int red,
                         int green,
                         int blue)
Generates a new color from RGB values

Method Detail

getHexString

public java.lang.String getHexString()
Return the hex value of this color


getModifyColor

public GraphStyler.Color getModifyColor(int delta)
Return a new darker or brighter color

Parameters:
delta - the increase (positive) or decrease (negative) value applied to each color channel

getNegativeColor

public GraphStyler.Color getNegativeColor()
Return the corresponding negative color


getRed

public int getRed()
Return the color red value


getGreen

public int getGreen()
Return the color green value


getBlue

public int getBlue()
Return the color blue value


setRGBColor

public void setRGBColor(int red,
                        int green,
                        int blue)
Change the color RGB values


setHexColor

public void setHexColor(java.lang.String hexColor)
Change the color hex value

Parameters:
hexColor - the hex or html color (example: #000000)

OBEROn SDK

Copyright © 2008-2014 Mirko Solazzi. All Rights Reserved.