public class Arc extends Shape
Arc
クラスは、中心点、開始角(度)、角の大きさ(円弧の長さ(度))および円弧タイプ(ArcType.OPEN
、ArcType.CHORD
またはArcType.ROUND
)で定義される2D円弧オブジェクトを表します。
使用例: 次のコードは、50,50を中心とし、半径が25で、45度から315度まで(270度)広がる円弧を作成します。
import javafx.scene.shape.*; Arc arc = new Arc(); arc.setCenterX(50.0f); arc.setCenterY(50.0f); arc.setRadiusX(25.0f); arc.setRadiusY(25.0f); arc.setStartAngle(45.0f); arc.setLength(270.0f); arc.setType(ArcType.ROUND);
Type | プロパティと説明 |
---|---|
DoubleProperty |
centerX
円弧の中心点のX座標を定義します。
|
DoubleProperty |
centerY
円弧の中心点のY座標を定義します。
|
DoubleProperty |
length
弧の角の大きさを定義します(度単位)。
|
DoubleProperty |
radiusX
この弧が一部を構成する楕円の全体の幅(水平方向の直径)を定義します。
|
DoubleProperty |
radiusY
この弧が一部を構成する楕円の全体の高さ(垂直方向の直径)を定義します。
|
DoubleProperty |
startAngle
弧の始角を定義します(度単位)。
|
ObjectProperty<ArcType> |
type
|
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
コンストラクタと説明 |
---|
Arc()
Arcの空インスタンスを作成します。
|
Arc(double centerX, double centerY, double radiusX, double radiusY, double startAngle, double length)
Arcの新しいインスタンスを作成します。
|
修飾子と型 | メソッドと説明 |
---|---|
DoubleProperty |
centerXProperty()
円弧の中心点のX座標を定義します。
|
DoubleProperty |
centerYProperty()
円弧の中心点のY座標を定義します。
|
double |
getCenterX()
プロパティcenterXの値を取得します。
|
double |
getCenterY()
プロパティcenterYの値を取得します。
|
double |
getLength()
プロパティlengthの値を取得します。
|
double |
getRadiusX()
プロパティradiusXの値を取得します。
|
double |
getRadiusY()
プロパティradiusYの値を取得します。
|
double |
getStartAngle()
プロパティstartAngleの値を取得します。
|
ArcType |
getType()
プロパティtypeの値を取得します。
|
DoubleProperty |
lengthProperty()
弧の角の大きさを定義します(度単位)。
|
DoubleProperty |
radiusXProperty()
この弧が一部を構成する楕円の全体の幅(水平方向の直径)を定義します。
|
DoubleProperty |
radiusYProperty()
この弧が一部を構成する楕円の全体の高さ(垂直方向の直径)を定義します。
|
void |
setCenterX(double value)
プロパティcenterXの値を設定します。
|
void |
setCenterY(double value)
プロパティcenterYの値を設定します。
|
void |
setLength(double value)
プロパティlengthの値を設定します。
|
void |
setRadiusX(double value)
プロパティradiusXの値を設定します。
|
void |
setRadiusY(double value)
プロパティradiusYの値を設定します。
|
void |
setStartAngle(double value)
プロパティstartAngleの値を設定します。
|
void |
setType(ArcType value)
プロパティtypeの値を設定します。
|
DoubleProperty |
startAngleProperty()
弧の始角を定義します(度単位)。
|
String |
toString()
この
Arc オブジェクトの文字列表現を返します。 |
ObjectProperty<ArcType> |
typeProperty()
|
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 radiusXProperty
getRadiusX()
、setRadiusX(double)
public final DoubleProperty radiusYProperty
getRadiusY()
、setRadiusY(double)
public final DoubleProperty startAngleProperty
getStartAngle()
、setStartAngle(double)
public final DoubleProperty lengthProperty
getLength()
、setLength(double)
public final ObjectProperty<ArcType> typeProperty
getType()
、setType(ArcType)
public Arc()
public Arc(double centerX, double centerY, double radiusX, double radiusY, double startAngle, double length)
centerX
- 円弧の中心点のX座標centerY
- 円弧の中心点のY座標radiusX
- この円弧が一部を構成する楕円の全体の幅(水平方向の半径)radiusY
- この円弧が一部を構成する楕円の全体の高さ(垂直方向の半径)startAngle
- 円弧の始角(度単位)length
- 円弧の角の大きさ(度単位)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 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)
public final void setStartAngle(double value)
public final double getStartAngle()
public final DoubleProperty startAngleProperty()
getStartAngle()
、setStartAngle(double)
public final void setLength(double value)
public final double getLength()
public final DoubleProperty lengthProperty()
getLength()
、setLength(double)
public final void setType(ArcType value)
ArcType.OPEN
、ArcType.CHORD
またはArcType.ROUND
。public final ArcType getType()
ArcType.OPEN
、ArcType.CHORD
またはArcType.ROUND
。public final ObjectProperty<ArcType> typeProperty()
getType()
、setType(ArcType)
Copyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved.