Uses of Class
javafx.geometry.Rectangle2D
Package
Description
Provides the set of 2D classes for defining and performing operations on
objects related to two-dimensional geometry.
Provides the core set of base
classes for the JavaFX Scene Graph API.
The javafx.scene.control.skin package is where the skin classes, typically
one for each UI control, are located
Provides the set of classes for loading and displaying images.
Provides the set of classes for integrating audio and video into Java FX
Applications.
Provides API for simulating user interaction such as typing keys on the keyboard and using the mouse.
This package provides means for loading and displaying Web content.
Provides the top-level container classes for JavaFX content.
-
Uses of Rectangle2D in javafx.geometry
Modifier and TypeFieldDescriptionstatic final Rectangle2D
Rectangle2D.EMPTY
An emptyRectangle2D
instance (with all coordinates equal to zero).Modifier and TypeMethodDescriptionboolean
Rectangle2D.contains
(Rectangle2D r) Tests if the interior of thisRectangle2D
entirely contains the specified Rectangle2D,r
.boolean
Rectangle2D.intersects
(Rectangle2D r) Tests if the interior of thisRectangle2D
intersects the interior of a specified Rectangle2D,r
. -
Uses of Rectangle2D in javafx.scene
Modifier and TypeMethodDescriptionvoid
SnapshotParameters.setViewport
(Rectangle2D viewport) Sets the viewport used for rendering. -
Uses of Rectangle2D in javafx.scene.control.skin
Modifier and TypeMethodDescriptionTextInputControlSkin.getCharacterBounds
(int index) Returns the bounds of the character at a given index. -
Uses of Rectangle2D in javafx.scene.image
Modifier and TypeMethodDescriptionfinal Rectangle2D
ImageView.getViewport()
Gets the value of theviewport
property.Modifier and TypeMethodDescriptionfinal ObjectProperty
<Rectangle2D> ImageView.viewportProperty()
The rectangular viewport into the image.Modifier and TypeMethodDescriptionfinal void
ImageView.setViewport
(Rectangle2D value) Sets the value of theviewport
property.Modifier and TypeMethodDescriptionvoid
PixelBuffer.updateBuffer
(Callback<PixelBuffer<T>, Rectangle2D> callback) Invokes the specifiedCallback
method and updates the dirty region of allWritableImage
s that were created using thisPixelBuffer
. -
Uses of Rectangle2D in javafx.scene.media
Modifier and TypeMethodDescriptionfinal Rectangle2D
MediaView.getViewport()
Retrieves the rectangular viewport into the media frame.Modifier and TypeMethodDescriptionfinal ObjectProperty
<Rectangle2D> MediaView.viewportProperty()
Specifies a rectangular viewport into the media frame.Modifier and TypeMethodDescriptionfinal void
MediaView.setViewport
(Rectangle2D value) Sets the rectangular viewport into the media frame. -
Uses of Rectangle2D in javafx.scene.robot
Modifier and TypeMethodDescriptionRobot.getScreenCapture
(WritableImage image, Rectangle2D region) Returns aWritableImage
containing the specified rectangular area relative to the primary screen.Robot.getScreenCapture
(WritableImage image, Rectangle2D region, boolean scaleToFit) Returns aWritableImage
containing the specified rectangular area relative to the primary screen. -
Uses of Rectangle2D in javafx.scene.web
Modifier and TypeMethodDescriptionfinal EventHandler
<WebEvent<Rectangle2D>> WebEngine.getOnResized()
Gets the value of theonResized
property.final ObjectProperty
<EventHandler<WebEvent<Rectangle2D>>> WebEngine.onResizedProperty()
JavaScript window resize handler property.Modifier and TypeMethodDescriptionfinal void
WebEngine.setOnResized
(EventHandler<WebEvent<Rectangle2D>> handler) Sets the value of theonResized
property. -
Uses of Rectangle2D in javafx.stage
Modifier and TypeMethodDescriptionfinal Rectangle2D
Screen.getBounds()
Gets the bounds of thisScreen
.final Rectangle2D
Screen.getVisualBounds()
Gets the visual bounds of thisScreen
.Modifier and TypeMethodDescriptionstatic ObservableList
<Screen> Screen.getScreensForRectangle
(Rectangle2D r) Returns a ObservableList ofScreens
that intersects the provided rectangle.