java.lang.Object
de.grogra.imp.awt.ViewComponentAdapter
de.grogra.imp.awt.CanvasAdapter
de.grogra.imp2d.AWTCanvas2D
- All Implemented Interfaces:
ViewComponent
,ComponentWrapper
,Selectable
,Disposable
,ImageObserver
,Runnable
-
Nested Class Summary
Nested classes/interfaces inherited from class de.grogra.imp.awt.CanvasAdapter
CanvasAdapter.CanvasComponent
-
Field Summary
FieldsFields inherited from class de.grogra.imp.awt.CanvasAdapter
antialiasing, IDENTITY, sceneBuffer
Fields inherited from class de.grogra.imp.awt.ViewComponentAdapter
DISPOSED, DISPOSING, RENDER_OVERLAY, RENDER_OVERLAY_FINISHED, RENDERED_IMAGE, RENDERING, RENDERING_OVERLAY, REPAINT_MASK
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Fields inherited from interface de.grogra.imp.ViewComponent
ALL, CHANGED, MIN_USER_FLAG, SCENE, SELECTION, TOOLS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
protected void
int
int
int
int
int
getWidth()
protected void
initPaint
(int flags, int width, int height) boolean
isCurrentLayer
(int layer) protected void
paintHighlight
(int flags, Graphics2D g) protected void
paintScene
(int flags, Graphics2D g) void
void
Methods inherited from class de.grogra.imp.awt.CanvasAdapter
checkBuffers, getComponent, getGraphics, getObserverForRenderer, imageUpdate, initCanvas, initRender, initView, invokeRender, makeSnapshot, optionValueChanged, render, resetGraphicsTransform, setColor, setColor, setColor, setColor, setColor, writeEPS
Methods inherited from class de.grogra.imp.awt.ViewComponentAdapter
checkRepaint, checkRepaintWrapException, dispose, disposeRenderer, disposeView, getColor, getColor, getDisplayResolution, getFactory, getFontMetrics, getGlobalLOD, getIntColor, getInterruptedException, getOption, getRenderGraphState, getView, initFactory, installListeners, invokeRenderSync, isRenderingOverlay, render, render, renderUninterruptibly, repaint, run, toSelection, uninstallListeners, updateResolution
-
Field Details
-
STROKE_1
-
STROKE_3
-
pool
-
-
Constructor Details
-
AWTCanvas2D
public AWTCanvas2D()
-
-
Method Details
-
getView2D
-
initPaint
protected void initPaint(int flags, int width, int height) - Specified by:
initPaint
in classCanvasAdapter
-
paintScene
- Specified by:
paintScene
in classCanvasAdapter
-
paintHighlight
- Specified by:
paintHighlight
in classCanvasAdapter
-
finalizePaint
protected void finalizePaint() -
getWidth
public int getWidth() -
getHeight
public int getHeight() -
getCurrentLayer
public int getCurrentLayer() -
getMinLayer
public int getMinLayer() -
getMaxLayer
public int getMaxLayer() -
isCurrentLayer
public boolean isCurrentLayer(int layer) -
setGraphicsTransform
-
draw
-
setColor
- Specified by:
setColor
in classCanvasAdapter
-