Class PanelTitledBorder
java.lang.Object
javax.swing.border.AbstractBorder
javax.swing.border.TitledBorder
com.inductiveautomation.ignition.common.gui.border.PanelTitledBorder
- All Implemented Interfaces:
Serializable,Border
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class javax.swing.border.TitledBorder
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 Summary
ConstructorsConstructorDescriptionFor serialization onlyPanelTitledBorder(Color mainColor, Color background, String text) -
Method Summary
Modifier and TypeMethodDescriptiongetBorderInsets(Component c, Insets insets) intgetHGap()getLabel()Color[]intintgetStyle()Returns the title-font of the titled border.intgetVGap()booleanvoidpaintBorder(Component c, Graphics graphics, int x, int y, int width, int height) voidsetBackground(Color background) voidsetHGap(int gap) voidsetMainColor(Color mainColor) voidsetShadowSize(int shadowSize) voidsetStyle(int style) voidvoidsetTitleColor(Color titleColor) voidsetTitleFont(Font titleFont) voidsetTitleJustification(int titleJustification) voidsetVGap(int gap) toString()Methods inherited from class javax.swing.border.TitledBorder
getBaseline, getBaselineResizeBehavior, getBorder, getFont, getMinimumSize, getTitle, getTitleColor, getTitleJustification, getTitlePosition, setBorder, setTitlePositionMethods inherited from class javax.swing.border.AbstractBorder
getInteriorRectangle, getInteriorRectangle
-
Field Details
-
STYLE_SN
public static final int STYLE_SN- See Also:
-
STYLE_WE
public static final int STYLE_WE- See Also:
-
STYLE_NS
public static final int STYLE_NS- See Also:
-
STYLE_EW
public static final int STYLE_EW- See Also:
-
STYLE_PLAIN
public static final int STYLE_PLAIN- See Also:
-
-
Constructor Details
-
PanelTitledBorder
public PanelTitledBorder()For serialization only -
PanelTitledBorder
-
-
Method Details
-
isBorderOpaque
public boolean isBorderOpaque()- Specified by:
isBorderOpaquein interfaceBorder- Overrides:
isBorderOpaquein classTitledBorder
-
toString
-
setTitle
- Overrides:
setTitlein classTitledBorder
-
setTitleColor
- Overrides:
setTitleColorin classTitledBorder
-
setTitleFont
- Overrides:
setTitleFontin classTitledBorder
-
setTitleJustification
public void setTitleJustification(int titleJustification) - Overrides:
setTitleJustificationin classTitledBorder
-
getBorderInsets
- Specified by:
getBorderInsetsin interfaceBorder- Overrides:
getBorderInsetsin classAbstractBorder
-
getBorderInsets
- Overrides:
getBorderInsetsin classTitledBorder
-
paintBorder
- Specified by:
paintBorderin interfaceBorder- Overrides:
paintBorderin classTitledBorder
-
getTitleFont
Returns the title-font of the titled border.This is the implementation from Java 6. Java 7 doesn't check the UIManager when null.
- Overrides:
getTitleFontin classTitledBorder
-
getHGap
public int getHGap() -
setHGap
public void setHGap(int gap) -
getMainColor
-
setMainColor
-
getGradientColor
-
getShadowSize
public int getShadowSize() -
setShadowSize
public void setShadowSize(int shadowSize) -
getVGap
public int getVGap() -
setVGap
public void setVGap(int gap) -
getStyle
public int getStyle() -
setStyle
public void setStyle(int style) -
getBackground
-
setBackground
-
getLabel
-
getInsets
-
getShadowColors
-