y.view
Interface Drawable


public interface Drawable

An interface for classes that can draw themselves.

A Drawable can either be added to a Graph2D or a Graph2DView.


Method Summary
 Rectangle getBounds()
          returns the bounds of this drawable.
 void paint(Graphics2D g)
          Paints itself on the given graphics context.
 

Method Detail

paint

public void paint(Graphics2D g)
Paints itself on the given graphics context.


getBounds

public Rectangle getBounds()
returns the bounds of this drawable.


© Copyright 2000-2003,
yWorks GmbH.
All rights reserved.

2003