Class ImageBorder

  • All Implemented Interfaces:
    java.io.Serializable, javax.swing.border.Border
    Direct Known Subclasses:
    PaperBorder

    public class ImageBorder
    extends javax.swing.border.AbstractBorder
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      ImageBorder()  
      ImageBorder​(java.awt.Image top, java.awt.Image topLeft, java.awt.Image topRight, java.awt.Image left, java.awt.Image right, java.awt.Image bottomLeft, java.awt.Image bottom, java.awt.Image bottomRight)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.awt.Insets getBorderInsets​(java.awt.Component c)  
      java.awt.Insets getBorderInsets​(java.awt.Component c, java.awt.Insets aInset)  
      boolean isBorderOpaque()  
      void paintBorder​(java.awt.Component c, java.awt.Graphics g, int x, int y, int width, int height)  
      void setImages​(java.awt.Image top, java.awt.Image topLeft, java.awt.Image topRight, java.awt.Image left, java.awt.Image right, java.awt.Image bottomLeft, java.awt.Image bottom, java.awt.Image bottomRight)  
      • 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

      • ImageBorder

        public ImageBorder()
      • ImageBorder

        public ImageBorder​(java.awt.Image top,
                           java.awt.Image topLeft,
                           java.awt.Image topRight,
                           java.awt.Image left,
                           java.awt.Image right,
                           java.awt.Image bottomLeft,
                           java.awt.Image bottom,
                           java.awt.Image bottomRight)
    • Method Detail

      • setImages

        public void setImages​(java.awt.Image top,
                              java.awt.Image topLeft,
                              java.awt.Image topRight,
                              java.awt.Image left,
                              java.awt.Image right,
                              java.awt.Image bottomLeft,
                              java.awt.Image bottom,
                              java.awt.Image bottomRight)
      • getBorderInsets

        public java.awt.Insets getBorderInsets​(java.awt.Component c)
        Specified by:
        getBorderInsets in interface javax.swing.border.Border
        Overrides:
        getBorderInsets in class javax.swing.border.AbstractBorder
      • getBorderInsets

        public java.awt.Insets getBorderInsets​(java.awt.Component c,
                                               java.awt.Insets aInset)
        Overrides:
        getBorderInsets in class javax.swing.border.AbstractBorder
      • isBorderOpaque

        public boolean isBorderOpaque()
        Specified by:
        isBorderOpaque in interface javax.swing.border.Border
        Overrides:
        isBorderOpaque in class javax.swing.border.AbstractBorder
      • 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.AbstractBorder