Class Circle
java.lang.Object
fr.r1r0r0.deltaengine.model.sprites.shapes.Shape
fr.r1r0r0.deltaengine.model.sprites.shapes.Circle
- All Implemented Interfaces:
Sprite
public class Circle extends Shape
TODO implementé shape et manipuler une ellipse de javafx
Circle Sprite
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description javafx.scene.shape.Shape
getFXShape()
more often than not, Javafx is used for shapesdouble
getRadius()
void
resize(double width, double height)
resize the sprite to the following width and heightvoid
setLayout(double x, double y)
Set the component's positionvoid
setRadius(double radius)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
ellipse
-
-
Constructor Details
-
Circle
Instantiate an Image Sprite with a color and a radius- Parameters:
radius
- of the circlecolor
- of the circle
-
Circle
Second constructor used if Circle is an Entity- Parameters:
color
- of the circle
-
-
Method Details
-
setRadius
public void setRadius(double radius) -
getRadius
public double getRadius() -
resize
public void resize(double width, double height)Description copied from interface:Sprite
resize the sprite to the following width and height -
getFXShape
public javafx.scene.shape.Shape getFXShape()Description copied from class:Shape
more often than not, Javafx is used for shapes- Specified by:
getFXShape
in classShape
- Returns:
- the javafx shape used if any
-
setLayout
public void setLayout(double x, double y)Description copied from interface:Sprite
Set the component's position- Parameters:
x
- positiony
- position
-