Class ComponentBorderedPanel.OffsetEtchedBorder

  • All Implemented Interfaces:
    java.io.Serializable, javax.swing.border.Border
    Enclosing class:
    ComponentBorderedPanel

    protected class ComponentBorderedPanel.OffsetEtchedBorder
    extends javax.swing.border.EtchedBorder
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class javax.swing.border.EtchedBorder

        etchType, highlight, LOWERED, RAISED, shadow
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected OffsetEtchedBorder()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.awt.Insets getBorderInsets​(java.awt.Component c)
      Returns the insets of the border.
      java.awt.Insets getBorderInsets​(java.awt.Component c, java.awt.Insets insets)
      Reinitialize the insets parameter with this Border's current Insets.
      void paintBorder​(java.awt.Component c, java.awt.Graphics g, int x, int y, int width, int height)  
      • Methods inherited from class javax.swing.border.EtchedBorder

        getEtchType, getHighlightColor, getHighlightColor, getShadowColor, getShadowColor, isBorderOpaque
      • Methods inherited from class javax.swing.border.AbstractBorder

        getBaseline, getBaselineResizeBehavior, getInteriorRectangle, getInteriorRectangle
      • Methods inherited from class java.lang.Object

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

      • OffsetEtchedBorder

        protected OffsetEtchedBorder()
    • Method Detail

      • getBorderInsets

        public java.awt.Insets getBorderInsets​(java.awt.Component c)
        Returns the insets of the border.
        Specified by:
        getBorderInsets in interface javax.swing.border.Border
        Overrides:
        getBorderInsets in class javax.swing.border.AbstractBorder
        Parameters:
        c - the component for which this border insets value applies
      • getBorderInsets

        public java.awt.Insets getBorderInsets​(java.awt.Component c,
                                               java.awt.Insets insets)
        Reinitialize the insets parameter with this Border's current Insets.
        Overrides:
        getBorderInsets in class javax.swing.border.EtchedBorder
        Parameters:
        c - the component for which this border insets value applies
        insets - the object to be reinitialized
      • 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.EtchedBorder
        See Also:
        Border.paintBorder(java.awt.Component, java.awt.Graphics, int, int, int, int)