Java DTV API 1.0
12-Dec-2008

com.sun.lwuit.plaf
Class Accessor

java.lang.Object
  extended bycom.sun.lwuit.plaf.Accessor

public class Accessor
extends Object

This tool exposes some internal border functionality from the package.


Field Summary
static int TYPE_BEVEL_LOWERED
          The bevel lowered border.
static int TYPE_BEVEL_RAISED
          The bevel raised border.
static int TYPE_EMPTY
          The empty border.
static int TYPE_ETCHED_LOWERED
          The etched lowered border.
static int TYPE_ETCHED_RAISED
          The etched raised border.
static int TYPE_IMAGE
          The image border.
static int TYPE_LINE
          The line border.
static int TYPE_ROUNDED
          The rounded border.
static int TYPE_ROUNDED_PRESSED
          The rounded pressed border.
 
Constructor Summary
Accessor()
           
 
Method Summary
static int getArcHeight(Border b)
          Returns the border's arc height.
static int getArcWidth(Border b)
          Returns the border's arc width.
static Color getColorA(Border b)
          Returns color a of the border.
static Color getColorB(Border b)
          Returns color b of the border.
static Color getColorC(Border b)
          Returns color c of the border.
static Color getColorD(Border b)
          Returns color d of the border.
static Image[] getImages(Border b)
          Returns the images of the border.
static Border getPressed(Border b)
          Indicates whether this border is pressed.
static int getThickness(Border b)
          Returns the border's thickness.
static int getType(Border b)
          Returns the border type.
static boolean isThemeColors(Border b)
          Indicates whether border is in theme colors.
static void setTheme(Hashtable theme)
          Sets the theme.
static String toString(Border b)
          Returns the string representation of the border object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE_EMPTY

public static final int TYPE_EMPTY
The empty border.

See Also:
Constant Field Values

TYPE_LINE

public static final int TYPE_LINE
The line border.

See Also:
Constant Field Values

TYPE_ROUNDED

public static final int TYPE_ROUNDED
The rounded border.

See Also:
Constant Field Values

TYPE_ROUNDED_PRESSED

public static final int TYPE_ROUNDED_PRESSED
The rounded pressed border.

See Also:
Constant Field Values

TYPE_ETCHED_LOWERED

public static final int TYPE_ETCHED_LOWERED
The etched lowered border.

See Also:
Constant Field Values

TYPE_ETCHED_RAISED

public static final int TYPE_ETCHED_RAISED
The etched raised border.

See Also:
Constant Field Values

TYPE_BEVEL_RAISED

public static final int TYPE_BEVEL_RAISED
The bevel raised border.

See Also:
Constant Field Values

TYPE_BEVEL_LOWERED

public static final int TYPE_BEVEL_LOWERED
The bevel lowered border.

See Also:
Constant Field Values

TYPE_IMAGE

public static final int TYPE_IMAGE
The image border.

See Also:
Constant Field Values
Constructor Detail

Accessor

public Accessor()
Method Detail

getType

public static int getType(Border b)
Returns the border type.

Parameters:
b - the border
Returns:
the type of that border

toString

public static String toString(Border b)
Returns the string representation of the border object.

Parameters:
b - the border
Returns:
the string representation

getImages

public static Image[] getImages(Border b)
Returns the images of the border.

Parameters:
b - the border
Returns:
the images of that border

isThemeColors

public static boolean isThemeColors(Border b)
Indicates whether border is in theme colors.

Parameters:
b - the border
Returns:
true if border is in theme colors

getColorA

public static Color getColorA(Border b)
Returns color a of the border.

Parameters:
b - the border
Returns:
color a of that border

getColorB

public static Color getColorB(Border b)
Returns color b of the border.

Parameters:
b - the border
Returns:
color b of that border

getColorC

public static Color getColorC(Border b)
Returns color c of the border.

Parameters:
b - the border
Returns:
color c of that border

getColorD

public static Color getColorD(Border b)
Returns color d of the border.

Parameters:
b - the border
Returns:
color d of that border

getThickness

public static int getThickness(Border b)
Returns the border's thickness.

Parameters:
b - the border
Returns:
the thickness of that border

getArcWidth

public static int getArcWidth(Border b)
Returns the border's arc width.

Parameters:
b - the border
Returns:
the arc width of that border

getArcHeight

public static int getArcHeight(Border b)
Returns the border's arc height.

Parameters:
b - the border
Returns:
the arc height of that border

getPressed

public static Border getPressed(Border b)
Indicates whether this border is pressed.

Parameters:
b - the border
Returns:
true if that border is pressed

setTheme

public static void setTheme(Hashtable theme)
Sets the theme.

Parameters:
theme - the theme

Java DTV API 1.0
12-Dec-2008

Copyright © 2008 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, California 95054, U.S.A. All rights reserved.

U.S. Government Rights - Commercial software. Government users are subject to the Sun Microsystems, Inc. standard license agreement and applicable provisions of the FAR and its supplements. Sun, Sun Microsystems, the Sun logo and Java are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries.Products covered by and information contained in this service manual are controlled by U.S. Export Control laws and may be subject to the export or import laws in other countries. Nuclear, missile, chemical biological weapons or nuclear maritime end uses or end users, whether direct or indirect, are strictly prohibited. Export or reexport to countries subject to U.S. embargo or to entities identified on U.S. export exclusion lists, including, but not limited to, the denied persons and specially designated nationals lists is strictly prohibited.

DOCUMENTATION IS PROVIDED AS IS AND ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE DISCLAIMED, EXCEPT TO THE EXTENT THAT SUCH DISCLAIMERS ARE HELD TO BE LEGALLY INVALID.

Use of this document is subject to license terms.