org.objectweb.jac.aspects.gui
Class Border

java.lang.Object
  extended byorg.objectweb.jac.aspects.gui.Border

public class Border
extends Object

This class represents borders in GUI.


Field Summary
static int BOTTOM
          The label of the border if any is diplayed on the bottom constant
static int CENTER
          The label of the border if any is diplayed centered constant
static int ETCHED
          The style is etched constant
static int LEFT
          The label of the border if any is diplayed on the left constant
static int LINE
          The style is a line constant
static int LOWERED
          The style is lowered constant
static int NONE
          None border constant
static int RAISED
          The style is raised constant
static int RIGHT
          The label of the border if any is diplayed on the right constant
static int TOP
          The label of the border if any is diplayed on the top constant
 
Constructor Summary
Border(String title, int alignment, int style)
          Constructs a new border.
 
Method Summary
static int a2iAlignment(String alignment)
          Converts a string representation of the alignment to an int.
static int a2iStyle(String style)
          Converts a string representation of the style to an int.
 int getAlignment()
          Get the value of alignment.
 int getStyle()
          Get the value of style.
 String getTitle()
          Get the value of title.
 boolean hasTitle()
          Returns true if the border has a title.
static String i2aStyle(int style)
          Converts an integer representation of the style to a string.
 void setAlignment(int v)
          Set the value of alignment.
 void setStyle(int v)
          Set the value of style.
 void setTitle(String v)
          Set the value of title.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NONE

public static final int NONE
None border constant

See Also:
Constant Field Values

LEFT

public static final int LEFT
The label of the border if any is diplayed on the left constant

See Also:
Constant Field Values

TOP

public static final int TOP
The label of the border if any is diplayed on the top constant

See Also:
Constant Field Values

RIGHT

public static final int RIGHT
The label of the border if any is diplayed on the right constant

See Also:
Constant Field Values

BOTTOM

public static final int BOTTOM
The label of the border if any is diplayed on the bottom constant

See Also:
Constant Field Values

CENTER

public static final int CENTER
The label of the border if any is diplayed centered constant

See Also:
Constant Field Values

LINE

public static final int LINE
The style is a line constant

See Also:
Constant Field Values

ETCHED

public static final int ETCHED
The style is etched constant

See Also:
Constant Field Values

LOWERED

public static final int LOWERED
The style is lowered constant

See Also:
Constant Field Values

RAISED

public static final int RAISED
The style is raised constant

See Also:
Constant Field Values
Constructor Detail

Border

public Border(String title,
              int alignment,
              int style)
Constructs a new border.

Parameters:
title - the border's title
alignment - the title alignment
style - the border's style
Method Detail

a2iAlignment

public static int a2iAlignment(String alignment)
Converts a string representation of the alignment to an int.


a2iStyle

public static int a2iStyle(String style)
Converts a string representation of the style to an int.


i2aStyle

public static String i2aStyle(int style)
Converts an integer representation of the style to a string.


hasTitle

public boolean hasTitle()
Returns true if the border has a title.


getAlignment

public int getAlignment()
Get the value of alignment.

Returns:
value of alignment.

setAlignment

public void setAlignment(int v)
Set the value of alignment.

Parameters:
v - Value to assign to alignment.

getStyle

public int getStyle()
Get the value of style.

Returns:
value of style.

setStyle

public void setStyle(int v)
Set the value of style.

Parameters:
v - Value to assign to style.

getTitle

public String getTitle()
Get the value of title.

Returns:
value of title.

setTitle

public void setTitle(String v)
Set the value of title.

Parameters:
v - Value to assign to title.

toString

public String toString()