|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object y.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 Drawable
public void paint(java.awt.Graphics2D gfx)
paint
in interface Drawable
protected void paintViewCoordinateDrawable(java.awt.Graphics2D gfx)
protected java.awt.Rectangle getViewCoordinateDrawableBounds()
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |