Spec-Zone .ru
спецификации, руководства, описания, API
|
public class Ellipse extends Shape
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);
Type | Property and Description |
---|---|
DoubleProperty |
centerX
Defines the horizontal position of the center of the ellipse in pixels.
|
DoubleProperty |
centerY
Defines the vertical position of the center of the ellipse in pixels.
|
DoubleProperty |
radiusX
Defines the width of the ellipse in pixels.
|
DoubleProperty |
radiusY
Defines the height of the ellipse in pixels.
|
fillProperty, smoothProperty, strokeDashOffsetProperty, strokeLineCapProperty, strokeLineJoinProperty, strokeMiterLimitProperty, strokeProperty, strokeTypeProperty, strokeWidthProperty
blendModeProperty, boundsInLocalProperty, boundsInParentProperty, cacheHintProperty, cacheProperty, clipProperty, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectProperty, eventDispatcherProperty, focusedProperty, focusTraversableProperty, hoverProperty, idProperty, inputMethodRequestsProperty, layoutBoundsProperty, layoutXProperty, layoutYProperty, managedProperty, mouseTransparentProperty, onDragDetectedProperty, onDragDoneProperty, onDragDroppedProperty, onDragEnteredProperty, onDragExitedProperty, onDragOverProperty, onInputMethodTextChangedProperty, onKeyPressedProperty, onKeyReleasedProperty, onKeyTypedProperty, onMouseClickedProperty, onMouseDraggedProperty, onMouseEnteredProperty, onMouseExitedProperty, onMouseMovedProperty, onMousePressedProperty, onMouseReleasedProperty, onScrollProperty, opacityProperty, parentProperty, pickOnBoundsProperty, pressedProperty, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, styleProperty, translateXProperty, translateYProperty, translateZProperty, visibleProperty
Constructor and Description |
---|
Ellipse()
Creates an empty instance of Ellipse.
|
Ellipse(double radiusX,
double radiusY)
Creates an instance of Ellipse of the given size.
|
Ellipse(double centerX,
double centerY,
double radiusX,
double radiusY)
Creates an instance of Ellipse of the given position and size.
|
Modifier and Type | Method and Description |
---|---|
DoubleProperty |
centerXProperty()
Defines the horizontal position of the center of the ellipse in pixels.
|
DoubleProperty |
centerYProperty()
Defines the vertical position of the center of the ellipse in pixels.
|
double |
getCenterX()
Defines the horizontal position of the center of the ellipse in pixels.
|
double |
getCenterY()
Defines the vertical position of the center of the ellipse in pixels.
|
double |
getRadiusX()
Defines the width of the ellipse in pixels.
|
double |
getRadiusY()
Defines the height of the ellipse in pixels.
|
DoubleProperty |
radiusXProperty()
Defines the width of the ellipse in pixels.
|
DoubleProperty |
radiusYProperty()
Defines the height of the ellipse in pixels.
|
void |
setCenterX(double value)
Defines the horizontal position of the center of the ellipse in pixels.
|
void |
setCenterY(double value)
Defines the vertical position of the center of the ellipse in pixels.
|
void |
setRadiusX(double value)
Defines the width of the ellipse in pixels.
|
void |
setRadiusY(double value)
Defines the height of the ellipse in pixels.
|
fillProperty, getFill, getStroke, getStrokeDashArray, getStrokeDashOffset, getStrokeLineCap, getStrokeLineJoin, getStrokeMiterLimit, getStrokeType, getStrokeWidth, intersect, isSmooth, setFill, setSmooth, setStroke, setStrokeDashOffset, setStrokeLineCap, setStrokeLineJoin, setStrokeMiterLimit, setStrokeType, setStrokeWidth, smoothProperty, strokeDashOffsetProperty, strokeLineCapProperty, strokeLineJoinProperty, strokeMiterLimitProperty, strokeProperty, strokeTypeProperty, strokeWidthProperty, subtract, union
addEventFilter, addEventHandler, autosize, blendModeProperty, boundsInLocalProperty, boundsInParentProperty, buildEventDispatchChain, cacheHintProperty, cacheProperty, clipProperty, contains, contains, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectProperty, eventDispatcherProperty, fireEvent, focusedProperty, focusTraversableProperty, getBaselineOffset, getBlendMode, getBoundsInLocal, getBoundsInParent, getCacheHint, getClip, getContentBias, getCursor, getDepthTest, getEffect, getEventDispatcher, getId, getInputMethodRequests, getLayoutBounds, getLayoutX, getLayoutY, getOnDragDetected, getOnDragDone, getOnDragDropped, getOnDragEntered, getOnDragExited, getOnDragOver, getOnInputMethodTextChanged, getOnKeyPressed, getOnKeyReleased, getOnKeyTyped, getOnMouseClicked, getOnMouseDragged, getOnMouseEntered, getOnMouseExited, getOnMouseMoved, getOnMousePressed, getOnMouseReleased, getOnScroll, getOpacity, getParent, getProperties, getRotate, getRotationAxis, getScaleX, getScaleY, getScaleZ, getScene, getStyle, getStyleClass, getTransforms, getTranslateX, getTranslateY, getTranslateZ, getUserData, hasProperties, hoverProperty, idProperty, inputMethodRequestsProperty, intersects, intersects, isCache, isDisable, isDisabled, isFocused, isFocusTraversable, isHover, isManaged, isMouseTransparent, isPickOnBounds, isPressed, isResizable, isVisible, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParent, localToParent, localToParent, localToScene, localToScene, localToScene, lookup, lookupAll, managedProperty, maxHeight, maxWidth, minHeight, minWidth, mouseTransparentProperty, onDragDetectedProperty, onDragDoneProperty, onDragDroppedProperty, onDragEnteredProperty, onDragExitedProperty, onDragOverProperty, onInputMethodTextChangedProperty, onKeyPressedProperty, onKeyReleasedProperty, onKeyTypedProperty, onMouseClickedProperty, onMouseDraggedProperty, onMouseEnteredProperty, onMouseExitedProperty, onMouseMovedProperty, onMousePressedProperty, onMouseReleasedProperty, onScrollProperty, opacityProperty, parentProperty, parentToLocal, parentToLocal, parentToLocal, pickOnBoundsProperty, prefHeight, prefWidth, pressedProperty, relocate, removeEventFilter, removeEventHandler, requestFocus, resize, resizeRelocate, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, sceneToLocal, sceneToLocal, sceneToLocal, setBlendMode, setCache, setCacheHint, setClip, setCursor, setDepthTest, setDisable, setDisabled, setEffect, setEventDispatcher, setEventHandler, setFocused, setFocusTraversable, setHover, setId, setInputMethodRequests, setLayoutX, setLayoutY, setManaged, setMouseTransparent, setOnDragDetected, setOnDragDone, setOnDragDropped, setOnDragEntered, setOnDragExited, setOnDragOver, setOnInputMethodTextChanged, setOnKeyPressed, setOnKeyReleased, setOnKeyTyped, setOnMouseClicked, setOnMouseDragged, setOnMouseEntered, setOnMouseExited, setOnMouseMoved, setOnMousePressed, setOnMouseReleased, setOnScroll, setOpacity, setPickOnBounds, setPressed, setRotate, setRotationAxis, setScaleX, setScaleY, setScaleZ, setStyle, setTranslateX, setTranslateY, setTranslateZ, setUserData, setVisible, startDragAndDrop, styleProperty, toBack, toFront, toString, translateXProperty, translateYProperty, translateZProperty, visibleProperty
getCenterX()
,
setCenterX(double)
getCenterY()
,
setCenterY(double)
getRadiusX()
,
setRadiusX(double)
getRadiusY()
,
setRadiusY(double)
public Ellipse()
public Ellipse(double radiusX, double radiusY)
radiusX
- the horizontal radius of the ellipse in pixelsradiusY
- the vertical radius of the ellipse in pixelspublic Ellipse(double centerX, double centerY, double radiusX, double radiusY)
centerX
- the horizontal position of the center of the ellipse in pixelscenterY
- the vertical position of the center of the ellipse in pixelsradiusX
- the horizontal radius of the ellipse in pixelsradiusY
- the vertical radius of the ellipse in pixelspublic final void setCenterX(double value)
public final double getCenterX()
public final DoubleProperty centerXProperty()
getCenterX()
,
setCenterX(double)
public final void setCenterY(double value)
public final double getCenterY()
public final DoubleProperty centerYProperty()
getCenterY()
,
setCenterY(double)
public final void setRadiusX(double value)
public final double getRadiusX()
public final DoubleProperty radiusXProperty()
getRadiusX()
,
setRadiusX(double)
public final void setRadiusY(double value)
public final double getRadiusY()
public final DoubleProperty radiusYProperty()
getRadiusY()
,
setRadiusY(double)
Copyright (c) 2008, 2011, Oracle and/or its affiliates. All rights reserved. Use is subject to