Package jltk.shape
Class Rectangle
- java.lang.Object
-
- jltk.Component
-
- jltk.shape.Shape
-
- jltk.shape.Rectangle
-
public class Rectangle extends Shape
Beschreiben Sie hier die Klasse Rectangle.- Version:
- (eine Versionsnummer oder ein Datum)
- Author:
- (Ihr Name)
-
-
Field Summary
Fields Modifier and Type Field Description protected javafx.scene.shape.Rectangle
fxRect
-
Fields inherited from class jltk.shape.Shape
fillColor, fxShape, lineColor, rotate, scale, transparancy, x, xOffset, y, yOffset
-
Fields inherited from class jltk.Component
fxNode, hasFocus, myWindow, onFocusGained, onFocusLost
-
-
Constructor Summary
Constructors Constructor Description Rectangle(double pX, double pY, double pWidth, double pHeight)
Creates a new rectangle width the specified width and height.Rectangle(double pX, double pY, double pWidth, double pHeight, Window pWindow)
Creates a new rectangle width the specified width and height.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setHeight(double pHeight)
Set the new Height for this rectanglevoid
setWidth(double pWidth)
Set the new width for this rectangle-
Methods inherited from class jltk.shape.Shape
contains, contains, contains, delay, flipHorizontal, flipVertical, getHeight, getLineWidth, getRotation, getTransparancy, getWidth, getX, getY, init, intersects, intersects, move, move, scale, scaleTo, setCenterPosition, setFillColor, setFillColor, setFillColor, setLineColor, setLineColor, setLineColor, setLineWidth, setPosition, setRotation, setTransparancy, turn, turn
-
Methods inherited from class jltk.Component
activate, deactivate, focus, hasFocus, hide, init, istActive, isVisible, runMethodByName, setOnFocusGained, setOnFocusLost, show, toBack, toFront
-
-
-
-
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 cornerpY
- The y-coordinate of the left upper cornerpWidth
- The width of this rectanglepHeight
- 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 cornerpY
- The y-coordinate of the left upper cornerpWidth
- The width of this rectanglepHeight
- The height of tis rectanglepWindow
- The windows, the rectangle should place
-
-