TinyLine 2.5

com.tinyline.tiny2d
Class TinyColor

java.lang.Object
  extended by com.tinyline.tiny2d.TinyColor

public class TinyColor
extends java.lang.Object

The TinyColor class defines colors in the ARGB color space.

Version:
1.11

Field Summary
static TinyColor CURRENT
          Special TinyColor object that says to use the current color value.
static TinyColor INHERIT
          Special TinyColor object that says to take the same value as the property for the nodes parent.
static TinyColor NONE
          Special TinyColor object that says do not fill or stroke.
 TinyPaint paint
          The paint server.
 int value
          The ARGB value of the solid color
 
Constructor Summary
TinyColor(int argb)
          Creates a solid TinyColor with the specified combined ARGB value consisting of the alpha component in bits 24-31, the red component in bits 16-23, the green component in bits 8-15, and the blue component in bits 0-7.
TinyColor(TinyPaint p)
          Creates a new complex TinyColor using the given paint server
 
Method Summary
static TinyColor copy(TinyColor src)
          Creates a new copy of the given 'source' TinyColor.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CURRENT

public static final TinyColor CURRENT
Special TinyColor object that says to use the current color value.


INHERIT

public static final TinyColor INHERIT
Special TinyColor object that says to take the same value as the property for the nodes parent.


NONE

public static final TinyColor NONE
Special TinyColor object that says do not fill or stroke.


paint

public TinyPaint paint
The paint server.


value

public int value
The ARGB value of the solid color

Constructor Detail

TinyColor

public TinyColor(int argb)
Creates a solid TinyColor with the specified combined ARGB value consisting of the alpha component in bits 24-31, the red component in bits 16-23, the green component in bits 8-15, and the blue component in bits 0-7.

Parameters:
argb - the ARGB value.

TinyColor

public TinyColor(TinyPaint p)
Creates a new complex TinyColor using the given paint server

Parameters:
p - the paint server.
Method Detail

copy

public static TinyColor copy(TinyColor src)
Creates a new copy of the given 'source' TinyColor.


TinyLine 2.5

Provided under the terms of the TinyLine License Agreement that has been included with this distribution.