Documentation of 'org.jdesktop.swingx.painter.RectanglePainter' Java class
RectanglePainter
org.jdesktop.swingx.painter

Class RectanglePainter

  • All Implemented Interfaces:
    Painter<java.lang.Object>


    @JavaBean
    public class RectanglePainter
    extends AbstractAreaPainter<java.lang.Object>
    A painter which paints square and rounded rectangles
    • Constructor Detail

      • RectanglePainter

        public RectanglePainter()
        Creates a new instance of RectanglePainter
      • RectanglePainter

        public RectanglePainter(int top,
                                int left,
                                int bottom,
                                int right)
      • RectanglePainter

        public RectanglePainter(int top,
                                int left,
                                int bottom,
                                int right,
                                int roundWidth,
                                int roundHeight)
      • RectanglePainter

        public RectanglePainter(int top,
                                int left,
                                int bottom,
                                int right,
                                int roundWidth,
                                int roundHeight,
                                boolean rounded,
                                java.awt.Paint fillPaint,
                                float strokeWidth,
                                java.awt.Paint borderPaint)
      • RectanglePainter

        public RectanglePainter(java.awt.Color fillPaint,
                                java.awt.Color borderPaint)
      • RectanglePainter

        public RectanglePainter(java.awt.Paint fillPaint,
                                java.awt.Paint borderPaint,
                                float borderWidth,
                                AbstractAreaPainter.Style style)
      • RectanglePainter

        public RectanglePainter(int width,
                                int height,
                                int cornerRadius,
                                java.awt.Paint fillPaint)
      • RectanglePainter

        public RectanglePainter(java.awt.Insets insets,
                                int width,
                                int height,
                                int roundWidth,
                                int roundHeight,
                                boolean rounded,
                                java.awt.Paint fillPaint,
                                float strokeWidth,
                                java.awt.Paint borderPaint)
    • Method Detail

      • isRounded

        public boolean isRounded()
        Indicates if the rectangle is rounded
        Returns:
        if the rectangle is rounded
      • setRounded

        public void setRounded(boolean rounded)
        sets if the rectangle should be rounded
        Parameters:
        rounded - if the rectangle should be rounded
      • getRoundWidth

        public int getRoundWidth()
        gets the round width of the rectangle
        Returns:
        the current round width
      • setRoundWidth

        public void setRoundWidth(int roundWidth)
        sets the round width of the rectangle
        Parameters:
        roundWidth - a new round width
      • getRoundHeight

        public int getRoundHeight()
        gets the round height of the rectangle
        Returns:
        the current round height
      • setRoundHeight

        public void setRoundHeight(int roundHeight)
        sets the round height of the rectangle
        Parameters:
        roundHeight - a new round height

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.