Class TranslatablePanelTitledBorder
java.lang.Object
javax.swing.border.AbstractBorder
javax.swing.border.TitledBorder
com.inductiveautomation.factorypmi.application.components.border.TranslatableTitledBorder
com.inductiveautomation.factorypmi.application.components.border.TranslatablePanelTitledBorder
- All Implemented Interfaces:
- LocaleListener,- Serializable,- Border
Filename: TranslatablePanelTitledBorder.java
 Created on Sep 26, 2014
 Author: Kathy Applebaum
 Copyright Inductive Automation 2014
 Project: Vision
 
Note: code mostly copied from PanelTitledBorder, but brought into Vision.
- 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, TRAILINGFields inherited from interface com.inductiveautomation.ignition.client.model.LocaleListenerLOCAL_CHANGE_EVENT
- 
Constructor SummaryConstructorsConstructorDescriptionFor serialization onlyTranslatablePanelTitledBorder(PanelTitledBorder panelTitledBorder) TranslatablePanelTitledBorder(Color mainColor, Color background, String text) 
- 
Method SummaryModifier and TypeMethodDescriptiongetBorderInsets(Component c, Insets insets) intgetHGap()intintgetStyle()Returns the title-font of the titled border.intgetVGap()booleanvoidlocaleChanged(Locale newLocale) voidpaintBorder(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 com.inductiveautomation.factorypmi.application.components.border.TranslatableTitledBordergetBorderText, getUntranslatedTitleText, isTitledBorder, setBorder, setUntranslatedTitleText, updateTitleMethods inherited from class javax.swing.border.TitledBordergetBaseline, getBaselineResizeBehavior, getBorder, getFont, getMinimumSize, getTitle, getTitleColor, getTitleJustification, getTitlePosition, 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- 
TranslatablePanelTitledBorderpublic TranslatablePanelTitledBorder()For serialization only
- 
TranslatablePanelTitledBorder
- 
TranslatablePanelTitledBorder
 
- 
- 
Method Details- 
isBorderOpaquepublic boolean isBorderOpaque()- Specified by:
- isBorderOpaquein interface- Border
- Overrides:
- isBorderOpaquein class- TitledBorder
 
- 
toString
- 
localeChanged- Specified by:
- localeChangedin interface- LocaleListener
- Overrides:
- localeChangedin class- TranslatableTitledBorder
 
- 
setTitle- Overrides:
- setTitlein class- TranslatableTitledBorder
 
- 
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
- 
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
 
-