com.ontimize.gui.container
Class CurveMattedDeployableBorder
java.lang.Object
javax.swing.border.AbstractBorder
javax.swing.border.EmptyBorder
javax.swing.border.MatteBorder
com.ontimize.gui.container.CurveMattedDeployableBorder
- All Implemented Interfaces:
- javax.swing.border.Border, IDeployBorder, java.io.Serializable
- public class CurveMattedDeployableBorder
- 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 |
drawBaseTitleBackground(java.awt.Graphics g,
int x,
int y,
int width,
int height)
|
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)
|
protected void |
drawTitleBackgroundCurve(java.awt.Graphics g,
int x,
int y,
int width,
int height)
|
java.awt.Rectangle |
getImageBound()
|
protected int |
getMeasureForPosition(int position)
|
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
TEXT_TO_END_MARGIN
public static int TEXT_TO_END_MARGIN
CURVE_WIDTH
public static int CURVE_WIDTH
ARROW_UP_ICON_PATH
public static java.lang.String ARROW_UP_ICON_PATH
ARROW_DOWN_ICON_PATH
public static java.lang.String ARROW_DOWN_ICON_PATH
ARROW_LEFT_ICON_PATH
public static java.lang.String ARROW_LEFT_ICON_PATH
ARROW_RIGHT_ICON_PATH
public static java.lang.String ARROW_RIGHT_ICON_PATH
downIcon
protected javax.swing.ImageIcon downIcon
upIcon
protected javax.swing.ImageIcon upIcon
rightIcon
protected javax.swing.ImageIcon rightIcon
leftIcon
protected 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
defaultRectTitleColor
public static java.awt.Color defaultRectTitleColor
highlightColor
protected java.awt.Color highlightColor
defaultHighLightColor
public static java.awt.Color defaultHighLightColor
defaultSolidBandColor
public static java.awt.Color defaultSolidBandColor
solidBandColor
protected java.awt.Color solidBandColor
defaultGradientBandInitColor
public static java.awt.Color defaultGradientBandInitColor
gradientBandInitColor
protected java.awt.Color gradientBandInitColor
defaultGradientBandEndColor
public static java.awt.Color defaultGradientBandEndColor
gradientBandEndColor
protected java.awt.Color gradientBandEndColor
fontColor
protected java.awt.Color fontColor
defaultFontColor
public static java.awt.Color defaultFontColor
fontShadowColor
protected java.awt.Color fontShadowColor
defaultFontShadowColor
public static java.awt.Color defaultFontShadowColor
font
protected java.awt.Font font
defaultFont
public static java.awt.Font defaultFont
orientation
public int orientation
defaultVerticalBorderPosition
public static int defaultVerticalBorderPosition
defaultHorizontalBorderPosition
public static int defaultHorizontalBorderPosition
borderPosition
public int borderPosition
margin
protected java.awt.Insets margin
CurveMattedDeployableBorder
public CurveMattedDeployableBorder(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)
getMeasureForPosition
protected int getMeasureForPosition(int position)
paintVerticalOrientation
protected void paintVerticalOrientation(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int width,
int height)
drawBaseTitleBackground
protected void drawBaseTitleBackground(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)
drawTitleBackgroundCurve
protected void drawTitleBackgroundCurve(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