Ontimize 5.2072EN

com.ontimize.gui.container
Class MattedDeployableBorder

java.lang.Object
  extended byjavax.swing.border.AbstractBorder
      extended byjavax.swing.border.EmptyBorder
          extended byjavax.swing.border.MatteBorder
              extended bycom.ontimize.gui.container.MattedDeployableBorder
All Implemented Interfaces:
javax.swing.border.Border, IDeployBorder, java.io.Serializable

public class MattedDeployableBorder
extends javax.swing.border.MatteBorder
implements IDeployBorder

An extension of MatteBorder border that uses parameters like insets, title, color, upicon, downicon, recttitlecolor, fontcolor, fontshadowcolor and font to create a configurable border.

Author:
Imatia Innovation
See Also:
Serialized Form

Field Summary
protected  javax.swing.ImageIcon downIcon
           
protected  java.awt.Font font
           
protected  java.awt.Color fontColor
           
protected  java.awt.Color fontShadowColor
           
protected  boolean highlight
           
protected  java.awt.Color highlightColor
           
static int ICON_TO_TEXT_MARGIN
           
protected  java.awt.Rectangle imageBound
           
static java.lang.String INSETS
           
static int LEFT_TO_ICON_MARGIN
           
 javax.swing.ImageIcon leftIcon
           
protected  java.awt.Insets margin
           
 int orientation
           
protected  java.awt.Color rectTitleColor
           
 javax.swing.ImageIcon rightIcon
           
protected  java.lang.String title
           
static int UP_TO_ICON_MARGIN
           
protected  javax.swing.ImageIcon upIcon
           
 
Fields inherited from class javax.swing.border.MatteBorder
color, tileIcon
 
Fields inherited from class javax.swing.border.EmptyBorder
bottom, left, right, top
 
Constructor Summary
MattedDeployableBorder(java.util.Hashtable parameters)
           
 
Method Summary
protected  void drawTitle(java.awt.Graphics g, int x, int y, int width, int height)
           
protected  void drawTitleBackground(java.awt.Graphics g, int x, int y, int width, int height)
           
 java.awt.Rectangle getImageBound()
           
protected  void init(java.util.Hashtable parameters)
           
 void paintBorder(java.awt.Component c, java.awt.Graphics g, int x, int y, int width, int height)
           
protected  void paintHorizontalOrientation(java.awt.Component c, java.awt.Graphics g, int x, int y, int width, int height)
           
protected  void paintVerticalOrientation(java.awt.Component c, java.awt.Graphics g, int x, int y, int width, int height)
           
 void setHighlight(boolean highlight)
           
 void setMargin(java.awt.Insets insets)
           
 void setTitle(java.lang.String title)
           
 
Methods inherited from class javax.swing.border.MatteBorder
getBorderInsets, getBorderInsets, getBorderInsets, getMatteColor, getTileIcon, isBorderOpaque
 
Methods inherited from class javax.swing.border.AbstractBorder
getInteriorRectangle, getInteriorRectangle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSETS

public static final java.lang.String INSETS
See Also:
Constant Field Values

LEFT_TO_ICON_MARGIN

public static int LEFT_TO_ICON_MARGIN

UP_TO_ICON_MARGIN

public static int UP_TO_ICON_MARGIN

ICON_TO_TEXT_MARGIN

public static int ICON_TO_TEXT_MARGIN

downIcon

protected javax.swing.ImageIcon downIcon

upIcon

protected javax.swing.ImageIcon upIcon

rightIcon

public javax.swing.ImageIcon rightIcon

leftIcon

public javax.swing.ImageIcon leftIcon

imageBound

protected java.awt.Rectangle imageBound

highlight

protected boolean highlight

title

protected java.lang.String title

rectTitleColor

protected java.awt.Color rectTitleColor

highlightColor

protected java.awt.Color highlightColor

fontColor

protected java.awt.Color fontColor

fontShadowColor

protected java.awt.Color fontShadowColor

font

protected java.awt.Font font

orientation

public int orientation

margin

protected java.awt.Insets margin
Constructor Detail

MattedDeployableBorder

public MattedDeployableBorder(java.util.Hashtable parameters)
                       throws java.lang.Exception
Method Detail

init

protected void init(java.util.Hashtable parameters)
             throws java.lang.Exception
Throws:
java.lang.Exception

getImageBound

public java.awt.Rectangle getImageBound()
Specified by:
getImageBound in interface IDeployBorder

setHighlight

public void setHighlight(boolean highlight)
Specified by:
setHighlight in interface IDeployBorder

setTitle

public void setTitle(java.lang.String title)
Specified by:
setTitle in interface IDeployBorder

paintBorder

public void paintBorder(java.awt.Component c,
                        java.awt.Graphics g,
                        int x,
                        int y,
                        int width,
                        int height)
Specified by:
paintBorder in interface javax.swing.border.Border

paintHorizontalOrientation

protected void paintHorizontalOrientation(java.awt.Component c,
                                          java.awt.Graphics g,
                                          int x,
                                          int y,
                                          int width,
                                          int height)

paintVerticalOrientation

protected void paintVerticalOrientation(java.awt.Component c,
                                        java.awt.Graphics g,
                                        int x,
                                        int y,
                                        int width,
                                        int height)

drawTitleBackground

protected void drawTitleBackground(java.awt.Graphics g,
                                   int x,
                                   int y,
                                   int width,
                                   int height)

drawTitle

protected void drawTitle(java.awt.Graphics g,
                         int x,
                         int y,
                         int width,
                         int height)

setMargin

public void setMargin(java.awt.Insets insets)
Specified by:
setMargin in interface IDeployBorder

Ontimize