Class EditorBorder

  • All Implemented Interfaces:
    java.io.Serializable, java.util.EventListener, javax.swing.border.Border, javax.swing.event.ChangeListener

    public class EditorBorder
    extends javax.swing.border.TitledBorder
    implements javax.swing.event.ChangeListener
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.awt.Font FIELD_BORDER_FONT  
      static java.awt.Font FIELD_BORDER_FONT_CHANGED  
      static java.awt.Color FIELD_BORDER_FONT_COLOR  
      • Fields 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void paintBorder​(java.awt.Component c, java.awt.Graphics g, int x, int y, int width, int height)  
      protected void repaint()  
      void stateChanged​(javax.swing.event.ChangeEvent e)  
      • Methods inherited from class javax.swing.border.TitledBorder

        getBaseline, getBaselineResizeBehavior, getBorder, getBorderInsets, getFont, getMinimumSize, getTitle, getTitleColor, getTitleFont, getTitleJustification, getTitlePosition, isBorderOpaque, setBorder, setTitle, setTitleColor, setTitleFont, setTitleJustification, setTitlePosition
      • Methods inherited from class javax.swing.border.AbstractBorder

        getBorderInsets, getInteriorRectangle, getInteriorRectangle
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • FIELD_BORDER_FONT

        public static final java.awt.Font FIELD_BORDER_FONT
      • FIELD_BORDER_FONT_COLOR

        public static final java.awt.Color FIELD_BORDER_FONT_COLOR
      • FIELD_BORDER_FONT_CHANGED

        public static final java.awt.Font FIELD_BORDER_FONT_CHANGED
    • Constructor Detail

      • EditorBorder

        public EditorBorder​(java.lang.String title)
    • Method Detail

      • stateChanged

        public void stateChanged​(javax.swing.event.ChangeEvent e)
        Specified by:
        stateChanged in interface javax.swing.event.ChangeListener
      • paintBorder

        public void paintBorder​(java.awt.Component c,
                                java.awt.Graphics g,
                                int x,
                                int y,
                                int width,
                                int height)
        Specified by:
        paintBorder in interface javax.swing.border.Border
        Overrides:
        paintBorder in class javax.swing.border.TitledBorder
      • repaint

        protected void repaint()