public class DeployBorder extends TitledBorder implements IDeployBorder
| Modifier and Type | Field and Description |
|---|---|
ImageIcon |
currentIcon |
static String |
DOWN_ICON |
ImageIcon |
downIcon |
boolean |
highlight |
protected Rectangle |
imageBound |
ImageIcon |
leftIcon |
protected Insets |
margin |
int |
orientation |
protected String |
previous |
ImageIcon |
rightIcon |
protected Point |
textLoc |
static String |
UP_ICON |
ImageIcon |
upIcon |
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 and Description |
|---|
DeployBorder(Border border,
int orientation) |
DeployBorder(Border border,
String title) |
DeployBorder(Border border,
String title,
int orientation,
boolean reverse) |
DeployBorder(String title) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
calculateTitle(FontMetrics fm,
String title,
Rectangle grooveRect) |
Insets |
getBorderInsets(Component c,
Insets insets) |
Rectangle |
getImageBound() |
String |
getTitle() |
Color |
getTitleColor()
Override to force the java6 version of this method due to changes in
java7 that not retrieves property from UIManager when null.
|
Font |
getTitleFont()
Override to force the use of java6 version of this method due to changes
in java7 that not retrieves property from UIManager when null.
|
protected void |
init(boolean reverse) |
boolean |
isHighlight() |
protected boolean |
isVerticalOrientation() |
void |
paintBorder(Component c,
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(Component c,
Graphics g,
int x,
int y,
int width,
int height) |
void |
paintVerticalOrientation(Component c,
Graphics g,
int x,
int y,
int width,
int height) |
void |
setHighlight(boolean highlight) |
void |
setMargin(Insets insets) |
getBaseline, getBaselineResizeBehavior, getBorder, getFont, getMinimumSize, getTitleJustification, getTitlePosition, isBorderOpaque, setBorder, setTitle, setTitleColor, setTitleFont, setTitleJustification, setTitlePositiongetBorderInsets, getInteriorRectangle, getInteriorRectangleclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetTitleprotected String previous
protected Point textLoc
protected Rectangle imageBound
public static final String DOWN_ICON
public static final String UP_ICON
public ImageIcon downIcon
public ImageIcon upIcon
public ImageIcon currentIcon
public boolean highlight
public int orientation
public ImageIcon rightIcon
public ImageIcon leftIcon
protected Insets margin
public DeployBorder(Border border, int orientation)
public DeployBorder(String title)
protected void init(boolean reverse)
protected boolean isVerticalOrientation()
public String getTitle()
getTitle in class TitledBorderpublic boolean isHighlight()
public void setHighlight(boolean highlight)
setHighlight in interface IDeployBorderhighlight - the highlight to setpublic void paintBorder(Component c, Graphics g, int x, int y, int width, int height)
paintBorder in interface BorderpaintBorder in class TitledBorderc - the component for which this border is being paintedg - the paint graphicsx - the x position of the painted bordery - the y position of the painted borderwidth - the width of the painted borderheight - the height of the painted borderpublic void paintVerticalOrientation(Component c, Graphics g, int x, int y, int width, int height)
public Color getTitleColor()
getTitleColor in class TitledBorderpublic Font getTitleFont()
getTitleFont in class TitledBorderprotected String calculateTitle(FontMetrics fm, String title, Rectangle grooveRect)
protected void paintHorizontalOrientation(Component c, Graphics g, int x, int y, int width, int height)
public Rectangle getImageBound()
getImageBound in interface IDeployBorderpublic Insets getBorderInsets(Component c, Insets insets)
getBorderInsets in class TitledBorderpublic void setMargin(Insets insets)
setMargin in interface IDeployBorderCopyright © 2016 Imatia Innovation S.L.. All rights reserved.