com.ontimize.gui.container
Class MattedDeployableBorder
java.lang.Object
javax.swing.border.AbstractBorder
javax.swing.border.EmptyBorder
javax.swing.border.MatteBorder
com.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
| Fields inherited from class javax.swing.border.MatteBorder |
color, tileIcon |
| Fields inherited from class javax.swing.border.EmptyBorder |
bottom, left, right, top |
|
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 |
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
MattedDeployableBorder
public MattedDeployableBorder(java.util.Hashtable parameters)
throws java.lang.Exception
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