Package pi.dsa.turtle
Class PaintingSurfaceScene
java.lang.Object
pi.Scene
pi.dsa.turtle.PaintingSurfaceScene
- All Implemented Interfaces:
FrameUpdateListenerRegistration,KeyStrokeListenerRegistration,MouseClickListenerRegistration,MouseScrollListenerRegistration,RenderSource
- Direct Known Subclasses:
PaintingSurfaceDemo,TurtleScene
Eine Szene mit einer Malfläche als Hintergrund.
- Since:
- 0.40.0
- Author:
- Josef Friedrich
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected PaintingSurfaceEine Malfläche, in die gemalt werden kann und die als Hintergrundbild angezeigt wird. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidrender(Graphics2D g, int width, int height) Zeichnet in eine Fläche.Methods inherited from class pi.Scene
actors, add, addedActors, addLayer, backgroundColor, backgroundColor, backgroundColor, camera, center, clear, focus, focusCenter, frameUpdateListeners, gravity, gravity, gravity, gravityOfEarth, info, info, info, info, info, isPhysicsPaused, keyStrokeListeners, layer, meter, mouseClickListeners, mousePosition, mouseScrollListeners, physicsPaused, remove, removeLayer, renderOverlay, scene, visibleArea, visibleAreaMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface pi.event.FrameUpdateListenerRegistration
addFrameUpdateListener, defer, delay, removeFrameUpdateListener, repeat, repeat, repeat, repeat, repeatMethods inherited from interface pi.event.KeyStrokeListenerRegistration
addKeyStrokeListener, removeKeyStrokeListenerMethods inherited from interface pi.event.MouseClickListenerRegistration
addMouseClickListener, removeMouseClickListenerMethods inherited from interface pi.event.MouseScrollListenerRegistration
addMouseScrollListener, removeMouseScrollListener
-
Field Details
-
paintingSurface
Eine Malfläche, in die gemalt werden kann und die als Hintergrundbild angezeigt wird. Diese Fläche kann zum Beispiel für Turtle-Grafiken verwendet werden oder zur Simulation eines Malprogramms.- Since:
- 0.40.0
-
-
Constructor Details
-
PaintingSurfaceScene
public PaintingSurfaceScene()
-
-
Method Details
-
getPaintingSurface
- Since:
- 0.40.0
-
render
Description copied from interface:RenderSourceZeichnet in eine Fläche.- Specified by:
renderin interfaceRenderSource- Overrides:
renderin classScene- Parameters:
g- DasGraphics2D-Objekt, in das gezeichnet werden soll.width- Die Breite der Zeichenfläche in Pixel.height- Die Höhe der Zeichenfläche in Pixel.- Since:
- 0.40.0
-