|
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 | |
|---|---|
Rectangle |
getBounds()
Translates the bounds returned by the Drawable delegate from view coordinate space to world coordinate space. |
protected Rectangle |
getViewCoordinateDrawableBounds()
Returns the bounds of the view coordinate Drawable |
void |
paint(Graphics2D gfx)
Puts the given graphics context into view coordinate space and invokes the paint method of the Drawable delegate. |
protected void |
paintViewCoordinateDrawable(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 Rectangle getBounds()
getBounds in interface Drawablepublic void paint(Graphics2D gfx)
paint in interface Drawableprotected void paintViewCoordinateDrawable(Graphics2D gfx)
protected Rectangle getViewCoordinateDrawableBounds()
|
© Copyright 2000-2013, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||