|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object sk.uniba.euromath.gene.RendererContext
public final class RendererContext
The context object for renderers and editors. Processes requests for rendering with child renderers, etc. Intended to be used by renderers and editors.
Field Summary | |
---|---|
XMLAccess |
xmlAccess
XMLAccess instance. |
Method Summary | |
---|---|
org.eclipse.draw2d.geometry.Dimension |
getCanvasSize(String id)
Returns canvas size of a renderer. |
void |
render(String id,
org.eclipse.draw2d.Graphics g,
org.eclipse.draw2d.geometry.Rectangle rect)
Deprecated. renderers should not attempt to render child nametrees. They should leave enough free space instead and leave the rendering to the editor framework. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final XMLAccess xmlAccess
Method Detail |
---|
public org.eclipse.draw2d.geometry.Dimension getCanvasSize(String id) throws EditorException
id
- the identifier from appropriate emp:mark
element.
EditorException
- if error occurs.@Deprecated public void render(String id, org.eclipse.draw2d.Graphics g, org.eclipse.draw2d.geometry.Rectangle rect) throws EditorException
Asks renderer to paint its contents on given graphics into given rectangle.
The function automatically adjusts the graphics coordinate system: rect's upper-left corner becomes the starting (0, 0) point, and a clipping area is set to the rectangle. When the renderer finishes, graphics coordinate system and clip rectangle is returned to its previous state.
id
- calls renderer with this ID.g
- graphics where to paint.rect
- here the renderer shall paint.
EditorException
- if error happens.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |