Package jltk.shape

Class Rectangle


  • public class Rectangle
    extends Shape
    Beschreiben Sie hier die Klasse Rectangle.
    Version:
    (eine Versionsnummer oder ein Datum)
    Author:
    (Ihr Name)
    • Field Detail

      • fxRect

        protected javafx.scene.shape.Rectangle fxRect
    • Constructor Detail

      • Rectangle

        public Rectangle​(double pX,
                         double pY,
                         double pWidth,
                         double pHeight)
        Creates a new rectangle width the specified width and height. The specified position describes the left upper corner of this rectangle.
        Parameters:
        pX - The x-coordinate of the left upper corner
        pY - The y-coordinate of the left upper corner
        pWidth - The width of this rectangle
        pHeight - The height of tis rectangle
      • Rectangle

        public Rectangle​(double pX,
                         double pY,
                         double pWidth,
                         double pHeight,
                         Window pWindow)
        Creates a new rectangle width the specified width and height. It is placed on the specified window The specified position describes the left upper corner of this rectangle.
        Parameters:
        pX - The x-coordinate of the left upper corner
        pY - The y-coordinate of the left upper corner
        pWidth - The width of this rectangle
        pHeight - The height of tis rectangle
        pWindow - The windows, the rectangle should place
    • Method Detail

      • setWidth

        public void setWidth​(double pWidth)
        Set the new width for this rectangle
        Parameters:
        pWidth - The new width
      • setHeight

        public void setHeight​(double pHeight)
        Set the new Height for this rectangle
        Parameters:
        pWidth - The new height