Search this API

y.view
Class CompositeDrawable

java.lang.Object
  extended by y.view.CompositeDrawable
All Implemented Interfaces:
Drawable

public class CompositeDrawable
extends java.lang.Object
implements Drawable

A composite Drawable instance that merges multiple Drawables into one

 

Constructor Summary
CompositeDrawable()
          Creates a new instance of CompositeDrawable
 
Method Summary
 void addDrawable(Drawable d)
          Adds another one to the internal list.
 java.awt.Rectangle getBounds()
          Lazily calculates the bounds of the drawables.
 void paint(java.awt.Graphics2D g)
          Calls paint on all drawables.
 boolean removeDrawable(Drawable d)
          Removes one from the internal list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompositeDrawable

public CompositeDrawable()
Creates a new instance of CompositeDrawable

Method Detail

addDrawable

public void addDrawable(Drawable d)
Adds another one to the internal list.


removeDrawable

public boolean removeDrawable(Drawable d)
Removes one from the internal list.


getBounds

public java.awt.Rectangle getBounds()
Lazily calculates the bounds of the drawables.

Specified by:
getBounds in interface Drawable

paint

public void paint(java.awt.Graphics2D g)
Calls paint on all drawables.

Specified by:
paint in interface Drawable

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