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

Class: Color

Source Location: /drawing/Color.php

Class Overview


Color class


Author(s):

  • Steema Software SL.

Version:

  • 1.0

Copyright:

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

Methods



Class Details

[line 25]
Color class

Description: Color characteristics




Tags:

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


[ Top ]


Class Methods


static method AQUA [line 459]

static void AQUA( )

The color aqua. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method BISQUE [line 501]

static void BISQUE( )

The color bisque. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method BLACK [line 193]

static void BLACK( )

The color black. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method BLUE [line 263]

static void BLUE( )

The color blue. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method CYAN [line 571]

static void CYAN( )

The color cyan. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method DARK_GRAY [line 207]

static void DARK_GRAY( )

The color dark gray. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method EMPTYCOLOR [line 142]

static void EMPTYCOLOR( )



Tags:

access:  public


[ Top ]

static method fromArgb [line 138]

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



Tags:

access:  public


Parameters:

   $a  
   $r  
   $g  
   $b  

[ Top ]

static method fromRgb [line 163]

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



Tags:

access:  public


Parameters:

   $r  
   $g  
   $b  

[ Top ]

static method FUCHSIA [line 375]

static void FUCHSIA( )

The color fuchsia. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method getAqua [line 452]

static void getAqua( )

The color aqua. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method getBisque [line 494]

static void getBisque( )

The color bisque. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method getBlack [line 186]

static void getBlack( )

The color black. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method getCyan [line 564]

static void getCyan( )

The color cyan. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method getDarkGray [line 200]

static void getDarkGray( )

The color dark gray. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method getFuchsia [line 368]

static void getFuchsia( )

The color fuchsia. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method getGold [line 340]

static void getGold( )

The color gold. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method getGray [line 284]

static void getGray( )

The color gray. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method getGreenYellow [line 466]

static void getGreenYellow( )

The color green yellow. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method getIndigo [line 508]

static void getIndigo( )

The color indigo. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method getLightYellow [line 354]

static void getLightYellow( )



Tags:

access:  public


[ Top ]

static method getLime [line 410]

static void getLime( )

The color lime. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method getMagenta [line 550]

static void getMagenta( )

The color magenta. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method getMaroon [line 396]

static void getMaroon( )

The color maroon. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method getNavy [line 326]

static void getNavy( )

The color navy. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method getOlive [line 424]

static void getOlive( )

The color olive. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method getOrange [line 536]

static void getOrange( )

The color orange. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method getPink [line 522]

static void getPink( )

The color pink. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method getPurple [line 438]

static void getPurple( )

The color purple. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method getSilver [line 270]

static void getSilver( )

The color silver. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method getSkyBlue [line 480]

static void getSkyBlue( )

The color sky blue. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method getTeal [line 382]

static void getTeal( )

The color teal. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method getWhite [line 298]

static void getWhite( )

The color white. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method getWhiteSmoke [line 312]

static void getWhiteSmoke( )

The color white smoke. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method getYellow [line 214]

static void getYellow( )

The color yellow. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method GOLD [line 347]

static void GOLD( )

The color gold. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method GRAY [line 291]

static void GRAY( )

The color gray. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method GREEN [line 249]

static void GREEN( )

The color green. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method GREEN_YELLOW [line 473]

static void GREEN_YELLOW( )

The color green yellow. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method INDIGO [line 515]

static void INDIGO( )

The color indigo. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method LIGHT_YELLOW [line 361]

static void LIGHT_YELLOW( )

The color light yellow. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method LIME [line 417]

static void LIME( )

The color lime. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method MAGENTA [line 557]

static void MAGENTA( )

The color magenta. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method MAROON [line 403]

static void MAROON( )

The color maroon. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method NAVY [line 333]

static void NAVY( )

The color navy. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method OLIVE [line 431]

static void OLIVE( )

The color olive. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method ORANGE [line 543]

static void ORANGE( )

The color orange. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method PINK [line 529]

static void PINK( )

The color pink. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method PURPLE [line 445]

static void PURPLE( )

The color purple. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method random [line 176]

static Color random( )

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



Tags:

access:  public


[ Top ]

static method RED [line 235]

static void RED( )

The color red. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method SILVER [line 277]

static void SILVER( )

The color silver. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method SKY_BLUE [line 487]

static void SKY_BLUE( )

The color sky blue. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method TEAL [line 389]

static void TEAL( )

The color teal. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method transparencyOf [line 595]

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 146]

static void TRANSPARENT( )



Tags:

access:  public


[ Top ]

static method WHITE [line 305]

static void WHITE( )

The color white. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method WHITE_SMOKE [line 319]

static void WHITE_SMOKE( )

The color white smoke. In the default sRGB space.



Tags:

access:  public


[ Top ]

static method YELLOW [line 221]

static void YELLOW( )

The color yellow. In the default sRGB space.



Tags:

access:  public


[ Top ]

constructor Color [line 61]

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 ]

destructor __destruct [line 76]

void __destruct( )



Tags:

access:  public


[ Top ]

method applyBright [line 674]

void applyBright( $howMuch)



Tags:

access:  public


Parameters:

   $howMuch  

[ Top ]

method applyDark [line 639]

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 607]

the getAlpha( )

Returns the alpha component in the range 0-255.



Tags:

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


[ Top ]

method getBlue [line 256]

void getBlue( )

The color blue. In the default sRGB space.



Tags:

access:  public


[ Top ]

method getColor [line 94]

void getColor( $img $img)

Get GD color



Tags:

access:  public


Parameters:

$img   $img   GD image resource

[ Top ]

method getEmpty [line 118]

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 242]

void getGreen( )

The color green. In the default sRGB space.



Tags:

access:  public


[ Top ]

method getNone [line 130]

void getNone( )



Tags:

access:  public


[ Top ]

method getRed [line 228]

void getRed( )

The color red. In the default sRGB space.



Tags:

access:  public


[ Top ]

method getRGB [line 625]

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 108]

void isEmpty( )



Tags:

access:  public


[ Top ]

method isNull [line 126]

void isNull( )



Tags:

access:  public


[ Top ]

method setEmpty [line 122]

void setEmpty( $value)



Tags:

access:  public


Parameters:

   $value  

[ Top ]

method setNone [line 134]

void setNone( $value)



Tags:

access:  public


Parameters:

   $value  

[ Top ]

method transparentColor [line 581]

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 37]

void __get( $property)



Parameters:

   $property  

[ Top ]

method __set [line 44]

void __set( $property, $value)



Parameters:

   $property  
   $value  

[ Top ]


Documentation generated on Mon, 19 Aug 2013 13:42:11 +0200 by phpDocumentor 1.4.3