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

    Fields
    Modifier and Type Field Description
    private Ellipse ellipse  
  • Constructor Summary

    Constructors
    Constructor Description
    Circle​(double radius, Color color)
    Instantiate an Image Sprite with a color and a radius
    Circle​(Color color)
    Second constructor used if Circle is an Entity
  • Method Summary

    Modifier and Type Method Description
    javafx.scene.shape.Shape getFXShape()
    more often than not, Javafx is used for shapes
    double getRadius()  
    void resize​(double width, double height)
    resize the sprite to the following width and height
    void setLayout​(double x, double y)
    Set the component's position
    void setRadius​(double radius)  

    Methods inherited from class fr.r1r0r0.deltaengine.model.sprites.shapes.Shape

    getNode

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface fr.r1r0r0.deltaengine.model.sprites.Sprite

    getLayout, getRotate, getScale, getSize, getZOrder, setLayout, setRotate, setScale, setZOrder
  • Field Details

    • ellipse

      private Ellipse ellipse
  • Constructor Details

    • Circle

      public Circle​(double radius, Color color)
      Instantiate an Image Sprite with a color and a radius
      Parameters:
      radius - of the circle
      color - of the circle
    • Circle

      public Circle​(Color color)
      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 class Shape
      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 - position
      y - position