Ontimize 5.2072EN

com.ontimize.gui.container
Class CurveMattedDeployableBorder

java.lang.Object
  extended byjavax.swing.border.AbstractBorder
      extended byjavax.swing.border.EmptyBorder
          extended byjavax.swing.border.MatteBorder
              extended bycom.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

Field Summary
static java.lang.String ARROW_DOWN_ICON_PATH
           
static java.lang.String ARROW_LEFT_ICON_PATH
           
static java.lang.String ARROW_RIGHT_ICON_PATH
           
static java.lang.String ARROW_UP_ICON_PATH
           
 int borderPosition
           
static int CURVE_WIDTH
           
static java.awt.Font defaultFont
           
static java.awt.Color defaultFontColor
           
static java.awt.Color defaultFontShadowColor
           
static java.awt.Color defaultGradientBandEndColor
           
static java.awt.Color defaultGradientBandInitColor
           
static java.awt.Color defaultHighLightColor
           
static int defaultHorizontalBorderPosition
           
static java.awt.Color defaultRectTitleColor
           
static java.awt.Color defaultSolidBandColor
           
static int defaultVerticalBorderPosition
           
protected  javax.swing.ImageIcon downIcon
           
protected  java.awt.Font font
           
protected  java.awt.Color fontColor
           
protected  java.awt.Color fontShadowColor
           
protected  java.awt.Color gradientBandEndColor
           
protected  java.awt.Color gradientBandInitColor
           
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
           
protected  javax.swing.ImageIcon leftIcon
           
protected  java.awt.Insets margin
           
 int orientation
           
protected  java.awt.Color rectTitleColor
           
protected  javax.swing.ImageIcon rightIcon
           
protected  java.awt.Color solidBandColor
           
static int TEXT_TO_END_MARGIN
           
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
CurveMattedDeployableBorder(java.util.Hashtable parameters)
           
 
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
 

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

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
Constructor Detail

CurveMattedDeployableBorder

public CurveMattedDeployableBorder(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)

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

Ontimize