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.ShapegetFXShape()more often than not, Javafx is used for shapesdoublegetRadius()voidresize(double width, double height)resize the sprite to the following width and heightvoidsetLayout(double x, double y)Set the component's positionvoidsetRadius(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:Spriteresize the sprite to the following width and height -
getFXShape
public javafx.scene.shape.Shape getFXShape()Description copied from class:Shapemore often than not, Javafx is used for shapes- Specified by:
getFXShapein classShape- Returns:
- the javafx shape used if any
-
setLayout
public void setLayout(double x, double y)Description copied from interface:SpriteSet the component's position- Parameters:
x- positiony- position
-