Documentation of 'edu.rit.swing.Drawable' Java class
Drawable
edu.rit.swing

Interface Drawable

  • All Known Subinterfaces:
    Displayable, Viewable
    All Known Implementing Classes:
    DisplayableList, Dots, Drawing, Label, Plot, XYPlot


    public interface Drawable
    Interface Drawable specifies the interface for an object that can be drawn. The drawable object generally draws itself at the origin of the graphics context, coordinates (0, 0). It is up to the caller to set the graphics context's transformation to place the drawable object at the desired location.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      void draw(java.awt.Graphics2D g2d)
      Draw this drawable object in the given graphics context.
    • Method Detail

      • draw

        void draw(java.awt.Graphics2D g2d)
        Draw this drawable object in the given graphics context. Upon return from this method, the given graphics context's state (color, font, transform, clip, and so on) is the same as it was upon entry to this method.
        Parameters:
        g2d - 2-D graphics context.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.