Ontimize 5.2072EN

com.ontimize.gui.container
Class DeployBorder

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

public class DeployBorder
extends javax.swing.border.TitledBorder
implements IDeployBorder

See Also:
Serialized Form

Field Summary
 javax.swing.ImageIcon currentIcon
           
static java.lang.String DOWN_ICON
           
 javax.swing.ImageIcon downIcon
           
 boolean highlight
           
protected  java.awt.Rectangle imageBound
           
 javax.swing.ImageIcon leftIcon
           
protected  java.awt.Insets margin
           
 int orientation
           
protected  java.lang.String previous
           
 javax.swing.ImageIcon rightIcon
           
protected  java.awt.Point textLoc
           
static java.lang.String UP_ICON
           
 javax.swing.ImageIcon upIcon
           
 
Fields inherited from class javax.swing.border.TitledBorder
ABOVE_BOTTOM, ABOVE_TOP, BELOW_BOTTOM, BELOW_TOP, border, BOTTOM, CENTER, DEFAULT_JUSTIFICATION, DEFAULT_POSITION, EDGE_SPACING, LEADING, LEFT, RIGHT, TEXT_INSET_H, TEXT_SPACING, title, titleColor, titleFont, titleJustification, titlePosition, TOP, TRAILING
 
Constructor Summary
DeployBorder(javax.swing.border.Border border, int orientation)
           
DeployBorder(javax.swing.border.Border border, java.lang.String title)
           
DeployBorder(javax.swing.border.Border border, java.lang.String title, int orientation, boolean reverse)
           
DeployBorder(java.lang.String title)
           
 
Method Summary
protected  java.lang.String calculateTitle(java.awt.FontMetrics fm, java.lang.String title, java.awt.Rectangle grooveRect)
           
 java.awt.Insets getBorderInsets(java.awt.Component c, java.awt.Insets insets)
           
 java.awt.Rectangle getImageBound()
           
 java.lang.String getTitle()
           
protected  void init(boolean reverse)
           
 boolean isHighlight()
           
protected  boolean isVerticalOrientation()
           
 void paintBorder(java.awt.Component c, java.awt.Graphics g, int x, int y, int width, int height)
          Paints the border for the specified component with the specified position and size.
protected  void paintHorizontalOrientation(java.awt.Component c, java.awt.Graphics g, int x, int y, int width, int height)
           
 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)
           
 
Methods inherited from class javax.swing.border.TitledBorder
getBorder, getBorderInsets, getFont, getMinimumSize, getTitleColor, getTitleFont, getTitleJustification, getTitlePosition, isBorderOpaque, setBorder, setTitle, setTitleColor, setTitleFont, setTitleJustification, setTitlePosition
 
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
 
Methods inherited from interface com.ontimize.gui.container.IDeployBorder
setTitle
 

Field Detail

previous

protected java.lang.String previous

textLoc

protected java.awt.Point textLoc

imageBound

protected java.awt.Rectangle imageBound

DOWN_ICON

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

UP_ICON

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

downIcon

public javax.swing.ImageIcon downIcon

upIcon

public javax.swing.ImageIcon upIcon

currentIcon

public javax.swing.ImageIcon currentIcon

highlight

public boolean highlight

orientation

public int orientation

rightIcon

public javax.swing.ImageIcon rightIcon

leftIcon

public javax.swing.ImageIcon leftIcon

margin

protected java.awt.Insets margin
Constructor Detail

DeployBorder

public DeployBorder(javax.swing.border.Border border,
                    int orientation)

DeployBorder

public DeployBorder(java.lang.String title)

DeployBorder

public DeployBorder(javax.swing.border.Border border,
                    java.lang.String title)

DeployBorder

public DeployBorder(javax.swing.border.Border border,
                    java.lang.String title,
                    int orientation,
                    boolean reverse)
Method Detail

init

protected void init(boolean reverse)

isVerticalOrientation

protected boolean isVerticalOrientation()

getTitle

public java.lang.String getTitle()

isHighlight

public boolean isHighlight()
Returns:
the highlight

setHighlight

public void setHighlight(boolean highlight)
Specified by:
setHighlight in interface IDeployBorder
Parameters:
highlight - the highlight to set

paintBorder

public void paintBorder(java.awt.Component c,
                        java.awt.Graphics g,
                        int x,
                        int y,
                        int width,
                        int height)
Paints the border for the specified component with the specified position and size.

Specified by:
paintBorder in interface javax.swing.border.Border
Parameters:
c - the component for which this border is being painted
g - the paint graphics
x - the x position of the painted border
y - the y position of the painted border
width - the width of the painted border
height - the height of the painted border

paintVerticalOrientation

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

calculateTitle

protected java.lang.String calculateTitle(java.awt.FontMetrics fm,
                                          java.lang.String title,
                                          java.awt.Rectangle grooveRect)

paintHorizontalOrientation

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

getImageBound

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

getBorderInsets

public java.awt.Insets getBorderInsets(java.awt.Component c,
                                       java.awt.Insets insets)

setMargin

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

Ontimize