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

Interface Outline

  • All Superinterfaces:
    java.io.Externalizable, java.io.Serializable
    All Known Implementing Classes:
    DashedOutline, DottedOutline, RoundSolidOutline, SolidOutline, SquareDottedOutline


    public interface Outline
    extends java.io.Externalizable
    Interface Outline specifies the interface for an object that gives the stroke and paint with which to outline an area in a DrawingItem.

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

    • Field Summary

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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      float getStrokeWidth()
      Returns the stroke width of this outline.
      void setGraphicsContext(java.awt.Graphics2D g2d)
      Set the given graphics context's stroke and paint attributes as specified by this outline object.
      • Methods inherited from interface java.io.Externalizable

        readExternal, writeExternal
    • Field Detail

      • NONE

        static final Outline NONE
        Specify Outline.NONE to omit drawing a drawing item's outline.
    • Method Detail

      • getStrokeWidth

        float getStrokeWidth()
        Returns the stroke width of this outline.
        Returns:
        Stroke width.
      • setGraphicsContext

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

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.