Java javafx.scene.shape Rectangle fields, constructors, methods, implement or subclass

Example usage for Java javafx.scene.shape Rectangle fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javafx.scene.shape Rectangle.

The text is from its open source code.

Subclass

javafx.scene.shape.Rectangle has subclasses.
Click this link to see all its subclasses.

Constructor

Rectangle(double width, double height)
Creates a new instance of Rectangle with the given size.
Rectangle(double x, double y, double width, double height)
Creates a new instance of Rectangle with the given position and size.
Rectangle(double width, double height, Paint fill)
Creates a new instance of Rectangle with the given size and fill.
Rectangle()
Creates an empty instance of Rectangle.

Method

voidaddEventHandler(final EventType eventType, final EventHandler eventHandler)
Registers an event handler to this node.
DoublePropertyarcWidthProperty()
booleancontains(double localX, double localY)
Returns true if the given point (specified in the local coordinate space of this Node ) is contained within the shape of this Node .
ObjectPropertyfillProperty()
doublegetHeight()
doublegetRotate()
doublegetScaleX()
doublegetScaleY()
ObservableListgetStrokeDashArray()
Defines the array representing the lengths of the dash segments.
ObservableListgetTransforms()
Defines the ObservableList of javafx.scene.transform.Transform objects to be applied to this Node .
doublegetTranslateX()
doublegetTranslateY()
doublegetWidth()
doublegetX()
doublegetY()
DoublePropertyheightProperty()
booleanisResizable()
Indicates whether this node is a type which can be resized by its parent.
DoublePropertylayoutXProperty()
DoublePropertyopacityProperty()
doubleprefHeight(double width)
Returns the node's preferred height for use in layout calculations.
voidrelocate(double x, double y)
Sets the node's layoutX and layoutY translation properties in order to relocate this node to the x,y location in the parent.
voidsetArcHeight(double value)
voidsetArcWidth(double value)
voidsetBlendMode(BlendMode value)
voidsetCursor(Cursor value)
voidsetEffect(Effect value)
voidsetFill(Paint value)
voidsetHeight(double value)
voidsetId(String value)
voidsetLayoutX(double value)
voidsetLayoutY(double value)
voidsetOnMouseClicked(EventHandler value)
voidsetOnMousePressed(EventHandler value)
voidsetOnMouseReleased(EventHandler value)
voidsetOnRotate(EventHandler value)
voidsetOnRotationFinished(EventHandler value)
voidsetOnRotationStarted(EventHandler value)
voidsetOnScroll(EventHandler value)
voidsetOnScrollFinished(EventHandler value)
voidsetOnScrollStarted(EventHandler value)
voidsetOnSwipeLeft(EventHandler value)
voidsetOnSwipeRight(EventHandler value)
voidsetOnTouchMoved(EventHandler value)
voidsetOnTouchPressed(EventHandler value)
voidsetOnTouchReleased(EventHandler value)
voidsetOnZoom(EventHandler value)
voidsetOnZoomFinished(EventHandler value)
voidsetOnZoomStarted(EventHandler value)
voidsetOpacity(double value)
voidsetRotate(double value)
voidsetScaleX(double value)
voidsetScaleY(double value)
voidsetStroke(Paint value)
voidsetStrokeLineCap(StrokeLineCap value)
voidsetStrokeWidth(double value)
voidsetStyle(String value)
A string representation of the CSS style associated with this specific Node .
voidsetTranslateX(double value)
voidsetTranslateY(double value)
voidsetVisible(boolean value)
voidsetWidth(double value)
voidsetX(double value)
voidsetY(double value)
ObjectPropertystrokeProperty()
DoublePropertytranslateXProperty()
Defines the x coordinate of the translation that is added to this Node 's transform.
DoublePropertywidthProperty()
DoublePropertyxProperty()
DoublePropertyyProperty()