public class Circle extends Shape
Circle
クラスは、指定された半径と中心位置(ピクセル単位で測定)に基づいて新しい円を作成します。次のコードは、半径50px、中心(100,100)pxの円を作成します。
import javafx.scene.shape.*; Circle circle = new Circle(); circle.setCenterX(100.0f); circle.setCenterY(100.0f); circle.setRadius(50.0f); }
Type | プロパティと説明 |
---|---|
DoubleProperty |
centerX
円の中心の水平位置をピクセル単位で定義します。
|
DoubleProperty |
centerY
円の中心の垂直位置をピクセル単位で定義します。
|
DoubleProperty |
radius
円の直径(ピクセル)を定義します。
|
fill、smooth、strokeDashOffset、strokeLineCap、strokeLineJoin、strokeMiterLimit、stroke、strokeType、strokeWidth
accessibleHelp、accessibleRoleDescription、accessibleRole、accessibleText、blendMode、boundsInLocal、boundsInParent、cacheHint、cache、clip、cursor、depthTest、disabled、disable、effectiveNodeOrientation、effect、eventDispatcher、focused、focusTraversable、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、visible
BASELINE_OFFSET_SAME_AS_HEIGHT
コンストラクタと説明 |
---|
Circle()
Circleの空インスタンスを作成します。
|
Circle(double radius)
指定された半径でCircleの新しいインスタンスを作成します。
|
Circle(double centerX, double centerY, double radius)
指定された位置と半径でCircleの新しいインスタンスを作成します。
|
Circle(double centerX, double centerY, double radius, Paint fill)
指定された位置、半径および塗りつぶしでCircleの新しいインスタンスを作成します。
|
Circle(double radius, Paint fill)
指定された半径と塗りつぶしでCircleの新しいインスタンスを作成します。
|
修飾子と型 | メソッドと説明 |
---|---|
DoubleProperty |
centerXProperty()
円の中心の水平位置をピクセル単位で定義します。
|
DoubleProperty |
centerYProperty()
円の中心の垂直位置をピクセル単位で定義します。
|
double |
getCenterX()
プロパティcenterXの値を取得します。
|
double |
getCenterY()
プロパティcenterYの値を取得します。
|
double |
getRadius()
プロパティradiusの値を取得します。
|
DoubleProperty |
radiusProperty()
円の直径(ピクセル)を定義します。
|
void |
setCenterX(double value)
プロパティcenterXの値を設定します。
|
void |
setCenterY(double value)
プロパティcenterYの値を設定します。
|
void |
setRadius(double value)
プロパティradiusの値を設定します。
|
String |
toString()
この
Circle オブジェクトの文字列表現を返します。 |
fillProperty、getClassCssMetaData、getCssMetaData、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
accessibleHelpProperty、accessibleRoleDescriptionProperty、accessibleRoleProperty、accessibleTextProperty、addEventFilter、addEventHandler、applyCss、autosize、blendModeProperty、boundsInLocalProperty、boundsInParentProperty、buildEventDispatchChain、cacheHintProperty、cacheProperty、clipProperty、computeAreaInScreen、contains、contains、cursorProperty、depthTestProperty、disabledProperty、disableProperty、effectiveNodeOrientationProperty、effectProperty、eventDispatcherProperty、executeAccessibleAction、fireEvent、focusedProperty、focusTraversableProperty、getAccessibleHelp、getAccessibleRole、getAccessibleRoleDescription、getAccessibleText、getBaselineOffset、getBlendMode、getBoundsInLocal、getBoundsInParent、getCacheHint、getClip、getContentBias、getCursor、getDepthTest、getEffect、getEffectiveNodeOrientation、getEventDispatcher、getId、getInputMethodRequests、getLayoutBounds、getLayoutX、getLayoutY、getLocalToParentTransform、getLocalToSceneTransform、getNodeOrientation、getOnContextMenuRequested、getOnDragDetected、getOnDragDone、getOnDragDropped、getOnDragEntered、getOnDragExited、getOnDragOver、getOnInputMethodTextChanged、getOnKeyPressed、getOnKeyReleased、getOnKeyTyped、getOnMouseClicked、getOnMouseDragEntered、getOnMouseDragExited、getOnMouseDragged、getOnMouseDragOver、getOnMouseDragReleased、getOnMouseEntered、getOnMouseExited、getOnMouseMoved、getOnMousePressed、getOnMouseReleased、getOnRotate、getOnRotationFinished、getOnRotationStarted、getOnScroll、getOnScrollFinished、getOnScrollStarted、getOnSwipeDown、getOnSwipeLeft、getOnSwipeRight、getOnSwipeUp、getOnTouchMoved、getOnTouchPressed、getOnTouchReleased、getOnTouchStationary、getOnZoom、getOnZoomFinished、getOnZoomStarted、getOpacity、getParent、getProperties、getPseudoClassStates、getRotate、getRotationAxis、getScaleX、getScaleY、getScaleZ、getScene、getStyle、getStyleableParent、getStyleClass、getTransforms、getTranslateX、getTranslateY、getTranslateZ、getTypeSelector、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、localToParent、localToParent、localToParentTransformProperty、localToScene、localToScene、localToScene、localToScene、localToScene、localToScene、localToScene、localToScene、localToScene、localToScene、localToSceneTransformProperty、localToScreen、localToScreen、localToScreen、localToScreen、localToScreen、lookup、lookupAll、managedProperty、maxHeight、maxWidth、minHeight、minWidth、mouseTransparentProperty、nodeOrientationProperty、notifyAccessibleAttributeChanged、onContextMenuRequestedProperty、onDragDetectedProperty、onDragDoneProperty、onDragDroppedProperty、onDragEnteredProperty、onDragExitedProperty、onDragOverProperty、onInputMethodTextChangedProperty、onKeyPressedProperty、onKeyReleasedProperty、onKeyTypedProperty、onMouseClickedProperty、onMouseDragEnteredProperty、onMouseDragExitedProperty、onMouseDraggedProperty、onMouseDragOverProperty、onMouseDragReleasedProperty、onMouseEnteredProperty、onMouseExitedProperty、onMouseMovedProperty、onMousePressedProperty、onMouseReleasedProperty、onRotateProperty、onRotationFinishedProperty、onRotationStartedProperty、onScrollFinishedProperty、onScrollProperty、onScrollStartedProperty、onSwipeDownProperty、onSwipeLeftProperty、onSwipeRightProperty、onSwipeUpProperty、onTouchMovedProperty、onTouchPressedProperty、onTouchReleasedProperty、onTouchStationaryProperty、onZoomFinishedProperty、onZoomProperty、onZoomStartedProperty、opacityProperty、parentProperty、parentToLocal、parentToLocal、parentToLocal、parentToLocal、parentToLocal、pickOnBoundsProperty、prefHeight、prefWidth、pressedProperty、pseudoClassStateChanged、queryAccessibleAttribute、relocate、removeEventFilter、removeEventHandler、requestFocus、resize、resizeRelocate、rotateProperty、rotationAxisProperty、scaleXProperty、scaleYProperty、scaleZProperty、sceneProperty、sceneToLocal、sceneToLocal、sceneToLocal、sceneToLocal、sceneToLocal、sceneToLocal、sceneToLocal、sceneToLocal、screenToLocal、screenToLocal、screenToLocal、setAccessibleHelp、setAccessibleRole、setAccessibleRoleDescription、setAccessibleText、setBlendMode、setCache、setCacheHint、setClip、setCursor、setDepthTest、setDisable、setDisabled、setEffect、setEventDispatcher、setEventHandler、setFocused、setFocusTraversable、setHover、setId、setInputMethodRequests、setLayoutX、setLayoutY、setManaged、setMouseTransparent、setNodeOrientation、setOnContextMenuRequested、setOnDragDetected、setOnDragDone、setOnDragDropped、setOnDragEntered、setOnDragExited、setOnDragOver、setOnInputMethodTextChanged、setOnKeyPressed、setOnKeyReleased、setOnKeyTyped、setOnMouseClicked、setOnMouseDragEntered、setOnMouseDragExited、setOnMouseDragged、setOnMouseDragOver、setOnMouseDragReleased、setOnMouseEntered、setOnMouseExited、setOnMouseMoved、setOnMousePressed、setOnMouseReleased、setOnRotate、setOnRotationFinished、setOnRotationStarted、setOnScroll、setOnScrollFinished、setOnScrollStarted、setOnSwipeDown、setOnSwipeLeft、setOnSwipeRight、setOnSwipeUp、setOnTouchMoved、setOnTouchPressed、setOnTouchReleased、setOnTouchStationary、setOnZoom、setOnZoomFinished、setOnZoomStarted、setOpacity、setPickOnBounds、setPressed、setRotate、setRotationAxis、setScaleX、setScaleY、setScaleZ、setStyle、setTranslateX、setTranslateY、setTranslateZ、setUserData、setVisible、snapshot、snapshot、startDragAndDrop、startFullDrag、styleProperty、toBack、toFront、translateXProperty、translateYProperty、translateZProperty、usesMirroring、visibleProperty
public final DoubleProperty centerXProperty
getCenterX()
、setCenterX(double)
public final DoubleProperty centerYProperty
getCenterY()
、setCenterY(double)
public final DoubleProperty radiusProperty
getRadius()
、setRadius(double)
public Circle(double radius)
radius
- 円の半径(ピクセル)を定義します。public Circle(double radius, Paint fill)
radius
- 円の半径fill
- Circle内部の塗りつぶし方法を決定します。public Circle()
public Circle(double centerX, double centerY, double radius)
centerX
- 円の中心の水平位置(ピクセル単位)centerY
- 円の中心の垂直位置(ピクセル単位)radius
- 円の半径(ピクセル)を定義します。public Circle(double centerX, double centerY, double radius, Paint fill)
centerX
- 円の中心の水平位置(ピクセル単位)centerY
- 円の中心の垂直位置(ピクセル単位)radius
- 円の半径(ピクセル)を定義します。fill
- Circle内部の塗りつぶし方法を決定します。public 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 setRadius(double value)
public final double getRadius()
public final DoubleProperty radiusProperty()
getRadius()
、setRadius(double)
Copyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved.