| Overview | Package | Class | Tree | Deprecated | Index | Help | |||
| PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||
java.lang.Object
|
+--java.text.Format
|
+--ncsa.horizon.awt.color.PixelFormat
This Format supports three formats for describing a color and its opacity:
The Object handed to format as well as the result of parsing is a 4-element byte array containing the red, green, blue, and alpha values.
| Field Summary | |
| static int | FOURCOMPONENT
an identifier of the four decimal component format |
| static int | HEX_0x
an identifier of the 0x Hexidecimal format |
| static int | HEX_lb
an identifier of the # Hexidecimal format |
| static int | NEWTYPE
an unknown format. |
| Constructor Summary | |
| PixelFormat()
|
|
| PixelFormat(int format_type,
int ntypes)
contruct this Format objects to format pixel values using a specified type. |
|
| PixelFormat(int format_type)
contruct this Format objects to format pixel values using a specified type. |
|
| Method Summary | |
| java.lang.StringBuffer | format(byte[] pixel,
java.lang.StringBuffer buf)
format the 4-component pixel value and append results to a buffer. |
| java.lang.StringBuffer | format(java.lang.Object obj,
java.lang.StringBuffer toAppendTo,
java.text.FieldPosition pos)
|
| java.lang.Object | parseObject(java.lang.String source,
java.text.ParsePosition status)
|
| byte[] | parsePixel(java.lang.String s,
java.text.ParsePosition stat)
|
| Methods inherited from class java.text.Format | |
| clone, format, format, parseObject, parseObject | |
| Methods inherited from class java.lang.Object | |
| clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait | |
| Field Detail |
public static final int FOURCOMPONENT
public static final int HEX_0x
public static final int HEX_lb
public static final int NEWTYPE
| Constructor Detail |
public PixelFormat()
protected PixelFormat(int format_type,
int ntypes)
format_type
- the format type code
ntypes
- the number of formats recognized by this
subclasspublic PixelFormat(int format_type)
| Method Detail |
public java.lang.StringBuffer format(byte[] pixel,
java.lang.StringBuffer buf)
public java.lang.StringBuffer format(java.lang.Object obj,
java.lang.StringBuffer toAppendTo,
java.text.FieldPosition pos)
public byte[] parsePixel(java.lang.String s,
java.text.ParsePosition stat)
public java.lang.Object parseObject(java.lang.String source,
java.text.ParsePosition status)
| Overview | Package | Class | Tree | Deprecated | Index | Help | |||
| PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||