public class SequentHideWarningBorder
extends javax.swing.border.TitledBorder
SequentView.isHiding()
,
Serialized FormModifier and Type | Field and Description |
---|---|
private static java.awt.Color |
ALERT_COLOR
The constant color is used as background for the window.
|
private int |
borderHeight
The height of the original border text
|
private static int |
DELTAX
The margin left to the box, horizontally.
|
private static java.awt.Font |
FONT
The constant is used to write the warning.
|
private SequentView |
sequentView
The component being shown
|
private static java.lang.String |
WARNING
The warning message which is printed.
|
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 |
---|
SequentHideWarningBorder(java.lang.String title,
SequentView sequentView)
Instantiates a new sequent border.
|
Modifier and Type | Method and Description |
---|---|
void |
paintBorder(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int width,
int height) |
getBaseline, getBaselineResizeBehavior, getBorder, getBorderInsets, getFont, getMinimumSize, getTitle, getTitleColor, getTitleFont, getTitleJustification, getTitlePosition, isBorderOpaque, setBorder, setTitle, setTitleColor, setTitleFont, setTitleJustification, setTitlePosition
private static final java.awt.Color ALERT_COLOR
private static final java.awt.Font FONT
private static final java.lang.String WARNING
private static final int DELTAX
private SequentView sequentView
private int borderHeight
public SequentHideWarningBorder(java.lang.String title, SequentView sequentView)
title
- the title to displaysequentView
- the sequent view which will be wrapped by the component