Class ArcBorder

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

    public class ArcBorder
    extends javax.swing.border.AbstractBorder
    A border that creates an arc along two sides of the component.
    Author:
    Chris Jennings
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      ArcBorder()  
      ArcBorder​(int arcEdges, int thickness)  
      ArcBorder​(int arcEdges, int arcSize, int thickness, float hardening)  
      ArcBorder​(int arcEdges, java.awt.Color color, int thickness)  
      ArcBorder​(int arcEdges, java.awt.Color color, int arcSize, int thickness, float hardening)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getArcEdges()  
      int getArcSize()  
      java.awt.Insets getBorderInsets​(java.awt.Component c)  
      java.awt.Insets getBorderInsets​(java.awt.Component c, java.awt.Insets insets)  
      java.awt.Color getColor()  
      float getHardening()  
      int getThickness()  
      void paintBorder​(java.awt.Component c, java.awt.Graphics g1, int x, int y, int width, int height)  
      void setArcEdges​(int arcEdges)  
      void setArcSize​(int arcSize)  
      void setColor​(java.awt.Color color)  
      void setHardening​(float hardening)  
      void setThickness​(int thickness)  
      • Methods inherited from class javax.swing.border.AbstractBorder

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

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

      • ArcBorder

        public ArcBorder()
      • ArcBorder

        public ArcBorder​(int arcEdges,
                         int thickness)
      • ArcBorder

        public ArcBorder​(int arcEdges,
                         java.awt.Color color,
                         int thickness)
      • ArcBorder

        public ArcBorder​(int arcEdges,
                         int arcSize,
                         int thickness,
                         float hardening)
      • ArcBorder

        public ArcBorder​(int arcEdges,
                         java.awt.Color color,
                         int arcSize,
                         int thickness,
                         float hardening)
    • Method Detail

      • getArcEdges

        public int getArcEdges()
      • setArcEdges

        public void setArcEdges​(int arcEdges)
      • getArcSize

        public int getArcSize()
      • setArcSize

        public void setArcSize​(int arcSize)
      • getHardening

        public float getHardening()
      • setHardening

        public void setHardening​(float hardening)
      • getThickness

        public int getThickness()
      • setThickness

        public void setThickness​(int thickness)
      • getColor

        public java.awt.Color getColor()
      • setColor

        public void setColor​(java.awt.Color color)
      • 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 insets)
        Overrides:
        getBorderInsets in class javax.swing.border.AbstractBorder
      • paintBorder

        public void paintBorder​(java.awt.Component c,
                                java.awt.Graphics g1,
                                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