ITI0011:praktikum 9 N8
Mine navigeerimisribale
Mine otsikasti
Tagasi ITI0011 lehele.
Üldine
Praktikum: 30.10.2014 kell 8:00
Teemad:
- JavaFX
- JavaFX klassi arvutites
- Layout, Pane
- Shapes
- mouse event
Koodinäite
Exercise
Create an application which allows the user to draw a circle. There are several options how to achieve this:
- using mouse dragging: the center point is fixed when the dragging starts (mouse press), the radius is changed while dragging. if the dragging ends, the radius is fixed. during the dragging, the circle could be visible.
- using clicking: when clicking first time, the center point is fixed, when clicking another time, the radius is fixed (and circle is drawn).
- some other way
Optional requirements:
- more than one circles can be drawn