com.im.ijc.widgets/1 5.9.1

com.im.ijc.widgets.abstractwidget
Class WidgetBorder

java.lang.Object
  extended by com.im.ijc.widgets.abstractwidget.WidgetBorder

public class WidgetBorder
extends Object


Nested Class Summary
static class WidgetBorder.BorderType
           
 
Field Summary
static Font DEFAULT_FONT
          Default font for title.
 
Constructor Summary
WidgetBorder()
           
WidgetBorder(String title, Font font, WidgetBorder.BorderType type, int top, int left, int bottom, int right)
           
 
Method Summary
 WidgetBorder deriveBorder(Font font)
           
 WidgetBorder deriveBorder(String title)
           
 WidgetBorder deriveBorder(WidgetBorder.BorderType type)
           
 WidgetBorder deriveLineBorder(int top, int left, int bottom, int right)
           
 boolean equals(Object obj)
           
 String getAsText()
          Return descriptive string of this border in human readable form.
 WidgetBorder.BorderType getBorderType()
           
 Font getFont()
          Get the current font.
 int getLineSizeBottom()
           
 int getLineSizeLeft()
           
 int getLineSizeRight()
           
 int getLineSizeTop()
           
 String getTitle()
          Get the current title.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_FONT

public static final Font DEFAULT_FONT
Default font for title.

Constructor Detail

WidgetBorder

public WidgetBorder()

WidgetBorder

public WidgetBorder(String title,
                    Font font,
                    WidgetBorder.BorderType type,
                    int top,
                    int left,
                    int bottom,
                    int right)
Method Detail

deriveBorder

public WidgetBorder deriveBorder(Font font)

deriveBorder

public WidgetBorder deriveBorder(WidgetBorder.BorderType type)

deriveLineBorder

public WidgetBorder deriveLineBorder(int top,
                                     int left,
                                     int bottom,
                                     int right)

deriveBorder

public WidgetBorder deriveBorder(String title)

getTitle

public String getTitle()
Get the current title.

Returns:
The title or null (which means "use default")

getFont

public Font getFont()
Get the current font.

Returns:
The font or null (which means "use default")

getBorderType

public WidgetBorder.BorderType getBorderType()

getLineSizeBottom

public int getLineSizeBottom()

getLineSizeLeft

public int getLineSizeLeft()

getLineSizeRight

public int getLineSizeRight()

getLineSizeTop

public int getLineSizeTop()

getAsText

public String getAsText()
Return descriptive string of this border in human readable form.


toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

com.im.ijc.widgets/1 5.9.1