: Interface Paintable

Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## Interface Paintable

All Known Subinterfaces:
  GeometricObject, NonTerminal, SequenceTerminal, Terminal

public interface Paintable

All the objects who want to be Paintable must implement this interface.

Method Summary
`java.lang.String` | `getType()` Returns the type of this NonTerminal
`void` | `paint()` Draw the objects
`void` | `paint(java.awt.Graphics g)` Draw the objects using the given graphics context.
`void` | `paintOriginal(java.awt.Graphics g)` This method is used to paint the original data points that forms this GeometricObject
`void` | `setGraphicsContext(java.awt.Graphics g)` Set graphics context for this Paintable object.

Method Detail

### setGraphicsContext

    public void setGraphicsContext(java.awt.Graphics g)

  Set graphics context for this Paintable object. Must be set at least once before doing any drawing.

### paint

    public void paint()

  Draw the objects

### paint

    public void paint(java.awt.Graphics g)

  Draw the objects using the given graphics context.

### getType

    public java.lang.String getType()

  Returns the type of this NonTerminal

### paintOriginal

    public void paintOriginal(java.awt.Graphics g)

  This method is used to paint the original data points that forms this GeometricObject

Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD