Uses of Class
javafx.geometry.Rectangle2D
Packages that use 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
Fields in javafx.geometry declared as Rectangle2DModifier and TypeFieldDescriptionstatic final Rectangle2D
Rectangle2D.EMPTY
An emptyRectangle2D
instance (with all coordinates equal to zero).Methods in javafx.geometry with parameters of type Rectangle2DModifier 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
Methods in javafx.scene that return Rectangle2DMethods in javafx.scene with parameters of type Rectangle2DModifier and TypeMethodDescriptionvoid
SnapshotParameters.setViewport
(Rectangle2D viewport) Sets the viewport used for rendering. -
Uses of Rectangle2D in javafx.scene.control.skin
Methods in javafx.scene.control.skin that return Rectangle2DModifier and TypeMethodDescriptionTextInputControlSkin.getCharacterBounds
(int index) Returns the bounds of the character at a given index. -
Uses of Rectangle2D in javafx.scene.image
Methods in javafx.scene.image that return Rectangle2DModifier and TypeMethodDescriptionfinal Rectangle2D
ImageView.getViewport()
Gets the value of the property viewport.Methods in javafx.scene.image that return types with arguments of type Rectangle2DModifier and TypeMethodDescriptionfinal ObjectProperty<Rectangle2D>
ImageView.viewportProperty()
The rectangular viewport into the image.Methods in javafx.scene.image with parameters of type Rectangle2DModifier and TypeMethodDescriptionfinal void
ImageView.setViewport
(Rectangle2D value) Sets the value of the property viewport.Method parameters in javafx.scene.image with type arguments of type Rectangle2DModifier 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
Methods in javafx.scene.media that return Rectangle2DModifier and TypeMethodDescriptionfinal Rectangle2D
MediaView.getViewport()
Retrieves the rectangular viewport into the media frame.Methods in javafx.scene.media that return types with arguments of type Rectangle2DModifier and TypeMethodDescriptionfinal ObjectProperty<Rectangle2D>
MediaView.viewportProperty()
Specifies a rectangular viewport into the media frame.Methods in javafx.scene.media with parameters of type Rectangle2DModifier and TypeMethodDescriptionfinal void
MediaView.setViewport
(Rectangle2D value) Sets the rectangular viewport into the media frame. -
Uses of Rectangle2D in javafx.scene.robot
Methods in javafx.scene.robot with parameters of type Rectangle2DModifier 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
Methods in javafx.scene.web that return types with arguments of type Rectangle2DModifier and TypeMethodDescriptionfinal EventHandler<WebEvent<Rectangle2D>>
WebEngine.getOnResized()
Gets the value of the property onResized.final ObjectProperty<EventHandler<WebEvent<Rectangle2D>>>
WebEngine.onResizedProperty()
JavaScript window resize handler property.Method parameters in javafx.scene.web with type arguments of type Rectangle2DModifier and TypeMethodDescriptionfinal void
WebEngine.setOnResized
(EventHandler<WebEvent<Rectangle2D>> handler) Sets the value of the property onResized. -
Uses of Rectangle2D in javafx.stage
Methods in javafx.stage that return Rectangle2DModifier and TypeMethodDescriptionfinal Rectangle2D
Screen.getBounds()
Gets the bounds of thisScreen
.final Rectangle2D
Screen.getVisualBounds()
Gets the visual bounds of thisScreen
.Methods in javafx.stage with parameters of type Rectangle2DModifier and TypeMethodDescriptionstatic ObservableList<Screen>
Screen.getScreensForRectangle
(Rectangle2D r) Returns a ObservableList ofScreens
that intersects the provided rectangle.