Search this API

y.view
Interface Drawable

All Known Subinterfaces:
Graph2DPrinter.FooterDrawable, Graph2DPrinter.TitleDrawable
All Known Implementing Classes:
CompositeDrawable, Graph2DPrinter.AbstractFooterDrawable, Graph2DPrinter.AbstractTextBarDrawable, Graph2DPrinter.AbstractTitleDrawable, Graph2DPrinter.DefaultFooterDrawable, Graph2DPrinter.DefaultTitleDrawable, Graph2DPrinter.RepeatingFooterDrawable, Graph2DPrinter.RepeatingTitleDrawable, ShapeDrawable, SnapLine, ViewCoordDrawableAdapter

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
 java.awt.Rectangle getBounds()
          returns the bounds of this drawable.
 void paint(java.awt.Graphics2D g)
          Paints itself on the given graphics context.
 

Method Detail

paint

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


getBounds

java.awt.Rectangle getBounds()
returns the bounds of this drawable.


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