TeeChartPHP
[ class tree: TeeChartPHP ] [ index: TeeChartPHP ] [ all elements ]

Class: Color

Source Location: /drawing/Color.php

Class Overview


Color class


Author(s):

Version:

  • 1.0

Copyright:

  • (c) 1995-2008 by Steema Software SL. All Rights Reserved. <info@steema.com>

Methods



Class Details

[line 16]
Color class

Description: Color characteristics




Tags:

author:  
version:  1.0
copyright:  (c) 1995-2008 by Steema Software SL. All Rights Reserved. <info@steema.com>
link:  http://www.steema.com


[ Top ]


Class Methods


static method AQUA [line 439]

static void AQUA( )

The color aqua. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method BISQUE [line 481]

static void BISQUE( )

The color bisque. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method BLACK [line 173]

static void BLACK( )

The color black. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method BLUE [line 243]

static void BLUE( )

The color blue. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method CYAN [line 551]

static void CYAN( )

The color cyan. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method DARK_GRAY [line 187]

static void DARK_GRAY( )

The color dark gray. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method EMPTYCOLOR [line 122]

static void EMPTYCOLOR( )



Tags:

access:  public


[ Top ]

static method fromArgb [line 118]

static void fromArgb( $a, $r, $g, $b)



Tags:

access:  public


Parameters:

   $a  
   $r  
   $g  
   $b  

[ Top ]

static method fromRgb [line 143]

static void fromRgb( $r, $g, $b)



Tags:

access:  public


Parameters:

   $r  
   $g  
   $b  

[ Top ]

static method FUCHSIA [line 355]

static void FUCHSIA( )

The color fuchsia. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method getAqua [line 432]

static void getAqua( )

The color aqua. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method getBisque [line 474]

static void getBisque( )

The color bisque. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method getBlack [line 166]

static void getBlack( )

The color black. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method getCyan [line 544]

static void getCyan( )

The color cyan. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method getDarkGray [line 180]

static void getDarkGray( )

The color dark gray. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method getFuchsia [line 348]

static void getFuchsia( )

The color fuchsia. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method getGold [line 320]

static void getGold( )

The color gold. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method getGray [line 264]

static void getGray( )

The color gray. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method getGreenYellow [line 446]

static void getGreenYellow( )

The color green yellow. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method getIndigo [line 488]

static void getIndigo( )

The color indigo. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method getLightYellow [line 334]

static void getLightYellow( )



Tags:

access:  public


[ Top ]

static method getLime [line 390]

static void getLime( )

The color lime. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method getMagenta [line 530]

static void getMagenta( )

The color magenta. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method getMaroon [line 376]

static void getMaroon( )

The color maroon. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method getNavy [line 306]

static void getNavy( )

The color navy. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method getOlive [line 404]

static void getOlive( )

The color olive. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method getOrange [line 516]

static void getOrange( )

The color orange. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method getPink [line 502]

static void getPink( )

The color pink. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method getPurple [line 418]

static void getPurple( )

The color purple. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method getSilver [line 250]

static void getSilver( )

The color silver. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method getSkyBlue [line 460]

static void getSkyBlue( )

The color sky blue. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method getTeal [line 362]

static void getTeal( )

The color teal. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method getWhite [line 278]

static void getWhite( )

The color white. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method getWhiteSmoke [line 292]

static void getWhiteSmoke( )

The color white smoke. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method getYellow [line 194]

static void getYellow( )

The color yellow. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method GOLD [line 327]

static void GOLD( )

The color gold. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method GRAY [line 271]

static void GRAY( )

The color gray. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method GREEN [line 229]

static void GREEN( )

The color green. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method GREEN_YELLOW [line 453]

static void GREEN_YELLOW( )

The color green yellow. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method INDIGO [line 495]

static void INDIGO( )

The color indigo. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method LIGHT_YELLOW [line 341]

static void LIGHT_YELLOW( )

The color light yellow. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method LIME [line 397]

static void LIME( )

The color lime. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method MAGENTA [line 537]

static void MAGENTA( )

The color magenta. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method MAROON [line 383]

static void MAROON( )

The color maroon. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method NAVY [line 313]

static void NAVY( )

The color navy. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method OLIVE [line 411]

static void OLIVE( )

The color olive. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method ORANGE [line 523]

static void ORANGE( )

The color orange. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method PINK [line 509]

static void PINK( )

The color pink. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method PURPLE [line 425]

static void PURPLE( )

The color purple. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method random [line 156]

static Color random( )

Creates a new Color instance with random RED, GREEN and BLUE color components.



Tags:

access:  public


[ Top ]

static method RED [line 215]

static void RED( )

The color red. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method SILVER [line 257]

static void SILVER( )

The color silver. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method SKY_BLUE [line 467]

static void SKY_BLUE( )

The color sky blue. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method TEAL [line 369]

static void TEAL( )

The color teal. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method transparencyOf [line 575]

static int transparencyOf( value $value)

Returns an integer from 0 to 100 that is the percent of transparency of this color.



Tags:

see:  #transparentColor
see:  getAlpha
access:  public


Parameters:

value   $value   Color

[ Top ]

static method TRANSPARENT [line 126]

static void TRANSPARENT( )



Tags:

access:  public


[ Top ]

static method WHITE [line 285]

static void WHITE( )

The color white. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method WHITE_SMOKE [line 299]

static void WHITE_SMOKE( )

The color white smoke. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method YELLOW [line 201]

static void YELLOW( )

The color yellow. In the default sRGB space.



Tags:

access:  public


[ Top ]

constructor Color [line 52]

Color Color( [integer $red = 0], [integer $green = 0], [integer $blue = 0], [integer $alpha = 0], [ $_empty = false], [ $none = false])

Creates a new color



Tags:

access:  public


Parameters:

integer   $red   red [0,255]
integer   $green   green [0,255]
integer   $blue   blue [0,255]
integer   $alpha   alpha [0,255]
   $_empty  
   $none  

[ Top ]

method applyBright [line 654]

void applyBright( $howMuch)



Tags:

access:  public


Parameters:

   $howMuch  

[ Top ]

method applyDark [line 619]

Color applyDark( howMuch $howMuch)

Converts the Color parameter to a darker color.
The HowMuch parameter indicates the quantity of dark increment.
It is used by Bar Series and Pie Series to calculate the right color t to draw Bar sides and Pie 3D zones.



Tags:

access:  public


Parameters:

howMuch   $howMuch   int

[ Top ]

method getAlpha [line 587]

the getAlpha( )

Returns the alpha component in the range 0-255.



Tags:

return:  alpha component.
see:  #getRGB
access:  public


[ Top ]

method getBlue [line 236]

void getBlue( )

The color blue. In the default sRGB space.



Tags:

access:  public


[ Top ]

method getColor [line 74]

void getColor( $img $img)

Get GD color



Tags:

access:  public


Parameters:

$img   $img   GD image resource

[ Top ]

method getEmpty [line 98]

Color getEmpty( )

Returns true when the Color equals to EMPTY color.
EMPTY Color means objects will not fill drawing elements.



Tags:

access:  public


[ Top ]

method getGreen [line 222]

void getGreen( )

The color green. In the default sRGB space.



Tags:

access:  public


[ Top ]

method getNone [line 110]

void getNone( )



Tags:

access:  public


[ Top ]

method getRed [line 208]

void getRed( )

The color red. In the default sRGB space.



Tags:

access:  public


[ Top ]

method getRGB [line 605]

the getRGB( )

Returns the RGB value representing the color in the default sRGB ColorModel.

(Bits 24-31 are alpha, 16-23 are red, 8-15 are green, 0-7 are blue).




Tags:

return:  RGB value of the color in the default sRGB
  1. ColorModel
.
see:  #getBlue
see:  getRGBdefault
see:  #getGreen
see:  #getRed
since:  JDK1.0
access:  public


[ Top ]

method isEmpty [line 88]

void isEmpty( )



Tags:

access:  public


[ Top ]

method isNull [line 106]

void isNull( )



Tags:

access:  public


[ Top ]

method setEmpty [line 102]

void setEmpty( $value)



Tags:

access:  public


Parameters:

   $value  

[ Top ]

method setNone [line 114]

void setNone( $value)



Tags:

access:  public


Parameters:

   $value  

[ Top ]

method transparentColor [line 561]

Color transparentColor( value $value)

Returns Color with transparency percentage applied.



Tags:

return:  with transparency percentage applied.
access:  public


Parameters:

value   $value   int

[ Top ]

method __get [line 28]

void __get( $property)



Parameters:

   $property  

[ Top ]

method __set [line 35]

void __set( $property, $value)



Parameters:

   $property  
   $value  

[ Top ]


Documentation generated on Wed, 16 Jun 2010 12:04:30 +0200 by phpDocumentor 1.4.1