Class GFillableE

    • Constructor Detail

      • GFillableE

        protected GFillableE​(GFillableE e)
        Copy constructor
        Parameters:
        e - GFillableE to copy
        Throws:
        java.lang.IllegalArgumentException - if e is null
      • GFillableE

        protected GFillableE()
        Creates a new instance
    • Method Detail

      • getFillPaint

        public java.awt.Paint getFillPaint()
        Retrieves the Paint used to render this component
        Returns:
        the Paint
      • setFillPaint

        public void setFillPaint​(java.awt.Paint paint)
        Sets the Paint that's used to fill this component
        Parameters:
        paint - The new Paint used to render this component
        Throws:
        java.lang.IllegalArgumentException - if paint is null
      • fill

        public boolean fill()
        Tells if the component must be filled
        Returns:
        true if the component must be filled and false otherwise
      • setFill

        public void setFill​(boolean fill)
        Tells if the component needs to be filled
        Parameters:
        fill - true if the component must be filled and false otherwise
      • getShape

        public abstract java.awt.geom.Area getShape()
        This method should return a Area that represents the GFillableE. Since this is not always possible, and the implementation of Area isn't always easy, it should return null otherwise.
        In jDrawingLibs implementation we use the default shapes for this. Note that this method is only called to create clips for Graphic objects
        Returns:
        Shape
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class GraphicE