Klasse javax.swing.border.TitledBorder | 1.2 |
java.lang.Object | +--javax.swing.border.AbstractBorder | +--javax.swing.border.TitledBorder
Über den UIManager werden folgende Werte zum Zeichnen des Rahmen ausgelesen:
- "TitledBorder.border"
- "TitledBorder.font"
- "TitledBorder.titleColor"
Es wird empfohlen, die Klasse javax.swing.BorderFactory zum Erzeugen von Rahmen zu benutzen.
Datenelemente | |
---|---|
protected String | title |
protected Border | border |
protected int | titlePosition |
protected int | titleJustification |
protected Font | titleFont |
protected Color | titleColor |
public final static int | DEFAULT_POSITION |
public final static int | ABOVE_TOP |
public final static int | TOP |
public final static int | BELOW_TOP |
public final static int | ABOVE_BOTTOM |
public final static int | BOTTOM |
public final static int | BELOW_BOTTOM |
public final static int | DEFAULT_JUSTIFICATION |
public final static int | LEFT |
public final static int | CENTER |
public final static int | RIGHT |
public final static int | LEADING |
public final static int | TRAILING |
protected final static int | EDGE_SPACING |
protected final static int | TEXT_SPACING |
protected final static int | TEXT_INSET_H |
Konstruktoren | |
---|---|
public | TitledBorder(String title) |
public | TitledBorder(Border border) |
public | TitledBorder(Border border, String title) |
public | TitledBorder(Border border, String title, int titleJustification, int titlePosition) |
public | TitledBorder(Border border, String title, int titleJustification, int titlePosition, Font titleFont) |
public | TitledBorder(Border border, String title, int titleJustification, int titlePosition, Font titleFont, Color titleColor) |
Methoden | |
---|---|
public void | paintBorder(Component c, Graphics g, int x, int y, int width, int height) |
public Insets | getBorderInsets(Component c) |
public Insets | getBorderInsets(Component c, Insets insets) |
public boolean | isBorderOpaque() |
public String | getTitle() |
public Border | getBorder() |
public int | getTitlePosition() |
public int | getTitleJustification() |
public Font | getTitleFont() |
public Color | getTitleColor() |
public void | setTitle(String title) |
public void | setBorder(Border border) |
public void | setTitlePosition(int titlePosition) |
public void | setTitleJustification(int titleJustification) |
public void | setTitleFont(Font titleFont) |
public void | setTitleColor(Color titleColor) |
public Dimension | getMinimumSize(Component c) |
protected Font | getFont(Component c) |