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 SummaryFieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class javax.swing.border.TitledBorderABOVE_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 SummaryConstructorsConstructorDescriptionFor serialization onlyPanelTitledBorder(Color mainColor, Color background, String text) 
- 
Method SummaryModifier 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.TitledBordergetBaseline, getBaselineResizeBehavior, getBorder, getFont, getMinimumSize, getTitle, getTitleColor, getTitleJustification, getTitlePosition, setBorder, setTitlePositionMethods inherited from class javax.swing.border.AbstractBordergetInteriorRectangle, getInteriorRectangle
- 
Field Details- 
STYLE_SNpublic static final int STYLE_SN- See Also:
 
- 
STYLE_WEpublic static final int STYLE_WE- See Also:
 
- 
STYLE_NSpublic static final int STYLE_NS- See Also:
 
- 
STYLE_EWpublic static final int STYLE_EW- See Also:
 
- 
STYLE_PLAINpublic static final int STYLE_PLAIN- See Also:
 
 
- 
- 
Constructor Details- 
PanelTitledBorderpublic PanelTitledBorder()For serialization only
- 
PanelTitledBorder
 
- 
- 
Method Details- 
isBorderOpaquepublic boolean isBorderOpaque()- Specified by:
- isBorderOpaquein interface- Border
- Overrides:
- isBorderOpaquein class- TitledBorder
 
- 
toString
- 
setTitle- Overrides:
- setTitlein class- TitledBorder
 
- 
setTitleColor- Overrides:
- setTitleColorin class- TitledBorder
 
- 
setTitleFont- Overrides:
- setTitleFontin class- TitledBorder
 
- 
setTitleJustificationpublic void setTitleJustification(int titleJustification) - Overrides:
- setTitleJustificationin class- TitledBorder
 
- 
getBorderInsets- Specified by:
- getBorderInsetsin interface- Border
- Overrides:
- getBorderInsetsin class- AbstractBorder
 
- 
getBorderInsets- Overrides:
- getBorderInsetsin class- TitledBorder
 
- 
paintBorder- Specified by:
- paintBorderin interface- Border
- Overrides:
- paintBorderin class- TitledBorder
 
- 
getTitleFontReturns 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 class- TitledBorder
 
- 
getHGappublic int getHGap()
- 
setHGappublic void setHGap(int gap) 
- 
getMainColor
- 
setMainColor
- 
getGradientColor
- 
getShadowSizepublic int getShadowSize()
- 
setShadowSizepublic void setShadowSize(int shadowSize) 
- 
getVGappublic int getVGap()
- 
setVGappublic void setVGap(int gap) 
- 
getStylepublic int getStyle()
- 
setStylepublic void setStyle(int style) 
- 
getBackground
- 
setBackground
- 
getLabel
- 
getInsets
- 
getShadowColors
 
-