public class CurveMattedDeployableBorder 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.color, tileIconbottom, left, right, top| Constructor and Description |
|---|
CurveMattedDeployableBorder(Hashtable parameters) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
drawBaseTitleBackground(Graphics g,
int x,
int y,
int width,
int height) |
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) |
protected void |
drawTitleBackgroundCurve(Graphics g,
int x,
int y,
int width,
int height) |
Rectangle |
getImageBound() |
protected int |
getMeasureForPosition(int position) |
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
public static int TEXT_TO_END_MARGIN
public static int CURVE_WIDTH
public static String ARROW_UP_ICON_PATH
public static String ARROW_DOWN_ICON_PATH
public static String ARROW_LEFT_ICON_PATH
public static String ARROW_RIGHT_ICON_PATH
protected ImageIcon downIcon
protected ImageIcon upIcon
protected ImageIcon rightIcon
protected ImageIcon leftIcon
protected Rectangle imageBound
protected boolean highlight
protected String title
protected Color rectTitleColor
public static Color defaultRectTitleColor
protected Color highlightColor
public static Color defaultHighLightColor
public static Color defaultSolidBandColor
protected Color solidBandColor
public static Color defaultGradientBandInitColor
protected Color gradientBandInitColor
public static Color defaultGradientBandEndColor
protected Color gradientBandEndColor
protected Color fontColor
public static Color defaultFontColor
protected Color fontShadowColor
public static Color defaultFontShadowColor
protected Font font
public static Font defaultFont
public int orientation
public static int defaultVerticalBorderPosition
public static int defaultHorizontalBorderPosition
public int borderPosition
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 int getMeasureForPosition(int position)
protected void paintVerticalOrientation(Component c, Graphics g, int x, int y, int width, int height)
protected void drawBaseTitleBackground(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 drawTitleBackgroundCurve(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.