| 
 | Search this API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecty.view.ViewCoordDrawableAdapter
public class ViewCoordDrawableAdapter
A Drawable that serves as an adapter for another Drawable that uses the view coordinate space to render itself.
| Field Summary | |
|---|---|
| protected  Graph2DView | view | 
| protected  Drawable | viewCoordDrawable | 
| Constructor Summary | |
|---|---|
| ViewCoordDrawableAdapter(Graph2DView view,
                         Drawable viewCoordDrawable) | |
| Method Summary | |
|---|---|
|  java.awt.Rectangle | getBounds()Translates the bounds returned by the Drawable delegate from view coordinate space to world coordinate space. | 
| protected  java.awt.Rectangle | getViewCoordinateDrawableBounds()Returns the bounds of the view coordinate Drawable | 
|  void | paint(java.awt.Graphics2D gfx)Puts the given graphics context into view coordinate space and invokes the paint method of the Drawable delegate. | 
| protected  void | paintViewCoordinateDrawable(java.awt.Graphics2D gfx)Paints the view coordinate Drawable | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
protected Graph2DView view
protected Drawable viewCoordDrawable
| Constructor Detail | 
|---|
public ViewCoordDrawableAdapter(Graph2DView view,
                                Drawable viewCoordDrawable)
| Method Detail | 
|---|
public java.awt.Rectangle getBounds()
getBounds in interface Drawablepublic void paint(java.awt.Graphics2D gfx)
paint in interface Drawableprotected void paintViewCoordinateDrawable(java.awt.Graphics2D gfx)
protected java.awt.Rectangle getViewCoordinateDrawableBounds()
| 
 | © Copyright 2000-2025, yWorks GmbH. All rights reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||