net.yura.mobile.gui.border
Class TitledBorder
java.lang.Object
net.yura.mobile.gui.border.TitledBorder
- All Implemented Interfaces:
- Border
public class TitledBorder
- extends Object
- implements Border
- Author:
- Yura Mamyrin
- See Also:
TitledBorder
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
border
protected Border border
title
protected String title
titleColor
protected int titleColor
titleFont
protected Font titleFont
TitledBorder
public TitledBorder(Border border,
String title,
Font f)
- See Also:
TitledBorder.TitledBorder
getBottom
public int getBottom()
- Specified by:
getBottom
in interface Border
- See Also:
Border.getBorderInsets
getLeft
public int getLeft()
- Specified by:
getLeft
in interface Border
- See Also:
Border.getBorderInsets
getRight
public int getRight()
- Specified by:
getRight
in interface Border
- See Also:
Border.getBorderInsets
getTop
public int getTop()
- Specified by:
getTop
in interface Border
- See Also:
Border.getBorderInsets
isBorderOpaque
public boolean isBorderOpaque()
- Specified by:
isBorderOpaque
in interface Border
- Returns:
- Returns whether or not the border is opaque. If the border is opaque, it is responsible for filling in it's own background when painting.
- See Also:
Border.isBorderOpaque
paintBorder
public void paintBorder(Component c,
Graphics2D g,
int width,
int height)
- Specified by:
paintBorder
in interface Border
- Parameters:
c
- the component for which this border is being paintedg
- the paint graphicswidth
- the width of the painted borderheight
- the height of the painted border- See Also:
TitledBorder.paintBorder