Class Ellipse
java.lang.Object
javafx.scene.Node
javafx.scene.shape.Shape
javafx.scene.shape.Ellipse
- All Implemented Interfaces:
Styleable
,EventTarget
The
Ellipse
class creates a new ellipse
with the specified size and location in pixels
import javafx.scene.shape.*; Ellipse ellipse = new Ellipse(); { ellipse.setCenterX(50.0f); ellipse.setCenterY(50.0f); ellipse.setRadiusX(50.0f); ellipse.setRadiusY(25.0f);
- Since:
- JavaFX 2.0
-
Property Summary
PropertiesTypePropertyDescriptionfinal DoubleProperty
Defines the horizontal position of the center of the ellipse in pixels.final DoubleProperty
Defines the vertical position of the center of the ellipse in pixels.final DoubleProperty
Defines the width of the ellipse in pixels.final DoubleProperty
Defines the height of the ellipse in pixels.Properties declared in class javafx.scene.shape.Shape
fill, smooth, strokeDashOffset, strokeLineCap, strokeLineJoin, strokeMiterLimit, stroke, strokeType, strokeWidth
Properties declared in class javafx.scene.Node
accessibleHelp, accessibleRoleDescription, accessibleRole, accessibleText, blendMode, boundsInLocal, boundsInParent, cacheHint, cache, clip, cursor, depthTest, disabled, disable, effectiveNodeOrientation, effect, eventDispatcher, focused, focusTraversable, focusVisible, focusWithin, hover, id, inputMethodRequests, layoutBounds, layoutX, layoutY, localToParentTransform, localToSceneTransform, managed, mouseTransparent, nodeOrientation, onContextMenuRequested, onDragDetected, onDragDone, onDragDropped, onDragEntered, onDragExited, onDragOver, onInputMethodTextChanged, onKeyPressed, onKeyReleased, onKeyTyped, onMouseClicked, onMouseDragEntered, onMouseDragExited, onMouseDragged, onMouseDragOver, onMouseDragReleased, onMouseEntered, onMouseExited, onMouseMoved, onMousePressed, onMouseReleased, onRotate, onRotationFinished, onRotationStarted, onScrollFinished, onScroll, onScrollStarted, onSwipeDown, onSwipeLeft, onSwipeRight, onSwipeUp, onTouchMoved, onTouchPressed, onTouchReleased, onTouchStationary, onZoomFinished, onZoom, onZoomStarted, opacity, parent, pickOnBounds, pressed, rotate, rotationAxis, scaleX, scaleY, scaleZ, scene, style, translateX, translateY, translateZ, viewOrder, visible
-
Field Summary
Fields declared in class javafx.scene.Node
BASELINE_OFFSET_SAME_AS_HEIGHT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal DoubleProperty
Defines the horizontal position of the center of the ellipse in pixels.final DoubleProperty
Defines the vertical position of the center of the ellipse in pixels.final double
Gets the value of thecenterX
property.final double
Gets the value of thecenterY
property.final double
Gets the value of theradiusX
property.final double
Gets the value of theradiusY
property.final DoubleProperty
Defines the width of the ellipse in pixels.final DoubleProperty
Defines the height of the ellipse in pixels.final void
setCenterX
(double value) Sets the value of thecenterX
property.final void
setCenterY
(double value) Sets the value of thecenterY
property.final void
setRadiusX
(double value) Sets the value of theradiusX
property.final void
setRadiusY
(double value) Sets the value of theradiusY
property.toString()
Returns a string representation of thisEllipse
object.Methods declared in class javafx.scene.shape.Shape
fillProperty, getClassCssMetaData, getCssMetaData, getFill, getStroke, getStrokeDashArray, getStrokeDashOffset, getStrokeLineCap, getStrokeLineJoin, getStrokeMiterLimit, getStrokeType, getStrokeWidth, intersect, isSmooth, setFill, setSmooth,