public class MattedDeployableBorder extends MatteBorder implements IDeployBorder
MatteBorder border that uses parameters like insets,
title, color, upicon, downicon, recttitlecolor, fontcolor, fontshadowcolor
and font to create a configurable border.| Modifier and Type | Field and Description |
|---|---|
protected ImageIcon |
downIcon |
protected Font |
font |
protected Color |
fontColor |
protected Color |
fontShadowColor |
protected boolean |
highlight |
protected Color |
highlightColor |
static int |
ICON_TO_TEXT_MARGIN |
protected Rectangle |
imageBound |
static String |
INSETS |
static int |
LEFT_TO_ICON_MARGIN |
ImageIcon |
leftIcon |
protected Insets |
margin |
int |
orientation |
protected Color |
rectTitleColor |
ImageIcon |
rightIcon |
protected String |
title |
static int |
UP_TO_ICON_MARGIN |
protected ImageIcon |
upIcon |
color, tileIconbottom, left, right, top| Constructor and Description |
|---|
MattedDeployableBorder(Hashtable parameters) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
drawTitle(Graphics g,
int x,
int y,
int width,
int height) |
protected void |
drawTitleBackground(Graphics g,
int x,
int y,
int width,
int height) |
Rectangle |
getImageBound() |
protected void |
init(Hashtable parameters) |
void |
paintBorder(Component c,
Graphics g,
int x,
int y,
int width,
int height) |
protected void |
paintHorizontalOrientation(Component c,
Graphics g,
int x,
int y,
int width,
int height) |
protected void |
paintVerticalOrientation(Component c,
Graphics g,
int x,
int y,
int width,
int height) |
void |
setHighlight(boolean highlight) |
void |
setMargin(Insets insets) |
void |
setTitle(String title) |
getBorderInsets, getBorderInsets, getMatteColor, getTileIcon, isBorderOpaquegetBaseline, getBaselineResizeBehavior, getBorderInsets, getInteriorRectangle, getInteriorRectanglepublic static final String INSETS
public static int LEFT_TO_ICON_MARGIN
public static int UP_TO_ICON_MARGIN
public static int ICON_TO_TEXT_MARGIN
protected ImageIcon downIcon
protected ImageIcon upIcon
public ImageIcon rightIcon
public ImageIcon leftIcon
protected Rectangle imageBound
protected boolean highlight
protected String title
protected Color rectTitleColor
protected Color highlightColor
protected Color fontColor
protected Color fontShadowColor
protected Font font
public int orientation
protected Insets margin
public Rectangle getImageBound()
getImageBound in interface IDeployBorderpublic void setHighlight(boolean highlight)
setHighlight in interface IDeployBorderpublic void setTitle(String title)
setTitle in interface IDeployBorderpublic void paintBorder(Component c, Graphics g, int x, int y, int width, int height)
paintBorder in interface BorderpaintBorder in class MatteBorderprotected void paintHorizontalOrientation(Component c, Graphics g, int x, int y, int width, int height)
protected void paintVerticalOrientation(Component c, Graphics g, int x, int y, int width, int height)
protected void drawTitleBackground(Graphics g, int x, int y, int width, int height)
protected void drawTitle(Graphics g, int x, int y, int width, int height)
public void setMargin(Insets insets)
setMargin in interface IDeployBorderCopyright © 2016 Imatia Innovation S.L.. All rights reserved.