Documentation of 'edu.rit.draw.item.Fill' Java class
Fill
edu.rit.draw.item

Interface Fill

  • All Superinterfaces:
    java.io.Externalizable, java.io.Serializable
    All Known Implementing Classes:
    ColorFill


    public interface Fill
    extends java.io.Externalizable
    Interface Fill specifies the interface for an object that gives the paint with which to fill an area in a DrawingItem.

    All fill objects must be externalizable so they can be stored in a drawing file.

    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static Fill NONE
      Specify Fill.NONE to omit filling a drawing item's interior.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      void setGraphicsContext(java.awt.Graphics2D g2d)
      Set the given graphics context's paint attribute as specified by this fill object.
      • Methods inherited from interface java.io.Externalizable

        readExternal, writeExternal
    • Field Detail

      • NONE

        static final Fill NONE
        Specify Fill.NONE to omit filling a drawing item's interior.
    • Method Detail

      • setGraphicsContext

        void setGraphicsContext(java.awt.Graphics2D g2d)
        Set the given graphics context's paint attribute as specified by this fill object.
        Parameters:
        g2d - 2-D graphics context.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.