public class TilePane extends Pane
水平方向のタイルペイン(デフォルト)では、ノードは行としてタイル表示され、タイルペインの幅で折り返されます。垂直方向のタイルペインでは、ノードは列としてタイル表示され、タイルペインの高さで折り返されます。
各タイルのサイズのデフォルト値は、タイルペインの子の優先幅および優先高の最大値を取り囲むために必要なサイズになるため、子の優先サイズの最大値が変化すると、そのサイズを取り囲むために、タイルペインでタイルのサイズが再計算されます。prefTileWidth/prefTileHeightプロパティをUSE_COMPUTED_SIZE (デフォルト)以外の値に設定することによって、タイルのサイズをアプリケーションで直接制御することもできます。
アプリケーションでは、prefColumns
(水平方向の場合)またはprefRows
(垂直方向の場合)のいずれかを初期化して、タイルペインの優先サイズを設定する必要があります(デフォルト値は5で、これには大きい理由はありません)。prefColumns/prefRowsは優先サイズを計算する目的でのみ使用され、行や列の実際の数(タイルペインがサイズ変更され、タイルが実際の境界で折り返されると、変化する場合がある)が反映されない可能性があることに注意してください。
タイルペインの境界内で行や列を位置合せする方法は、alignmentプロパティ(デフォルト値はPos.TOP_LEFT)を使用して制御します。tileAlignment
(デフォルト値はPos.CENTER)を設定することによって、個々のタイル内のノードの位置合せを制御することもできます。
水平方向のタイルペインの例:
TilePane tile = new TilePane();
tile.setHgap(8);
tile.setPrefColumns(4);
for (int i = 0; i < 20; i++) {
tile.getChildren().add(new ImageView(...));
}
垂直方向のタイルペインの例:
TilePane tile = new TilePane(Orientation.VERTICAL);
tile.setTileAlignment(Pos.CENTER_LEFT);
tile.setPrefRows(10);
for (int i = 0; i < 50; i++) {
tile.getChildren().add(new ImageView(...));
}
TilePaneは、各子をサイズ変更してそのタイル全体に表示するように試みます。子をタイル全体に表示できない(子がサイズ変更可能でないか、サイズ制限によってサイズ変更が妨げられるため)場合、子はtileAlignmentに基づいてタイル内で位置合せされます。
水平方向:
width | height | |
---|---|---|
最小 | 左/右の枠+タイルの幅 | 上/下の枠+すべてのタイルを表示するために必要な高さ(各行間にvgapを設けて指定の幅で折り返した場合) |
優先 | 左/右の枠+ prefColumnsにタイルの幅を乗算した値 | 上/下の枠+すべてのタイルを表示するために必要な高さ(各行間にvgapを設けて指定の幅で折り返した場合) |
最大 | Double.MAX_VALUE | Double.MAX_VALUE |
垂直方向:
width | height | |
---|---|---|
最小 | 左/右の枠+すべてのタイルを表示するために必要な幅(各列間にhgapを設けて指定の高さで折り返した場合) | 上/下の枠+タイルの高さ |
優先 | 左/右の枠+すべてのタイルを表示するために必要な幅(各列間にhgapを設けて指定の高さで折り返した場合) | 上/下の枠+ prefRowsにタイルの高さを乗算した値 |
最大 | Double.MAX_VALUE | Double.MAX_VALUE |
タイルペインの最大幅および最大高には制限がないため、親に割り当てられているスペースすべてを満たすために、親がその優先サイズより大きいサイズに変更される可能性があります。
TilePaneには、サイズ範囲を直接設定するためのプロパティが用意されています。これらのプロパティのデフォルトはセンチネル値Region.USE_COMPUTED_SIZEになりますが、アプリケーションで、必要に応じて、次のような他の値に設定できます。
tilepane.setMaxWidth(500);
アプリケーションでは、これらのプロパティをRegion.USE_COMPUTED_SIZEに戻すことによって、計算値をリストアできます。
TilePaneはデフォルトではそのコンテンツをクリップしないため、子の優先サイズが原因でタイル内に子を収めることができない場合は、子の境界がタイル(および場合によってはタイルペインの境界)の外側まで拡大することがあります。また、タイルペインが優先サイズよりも小さくなるようにサイズ変更された場合は、境界内にすべてのタイルが収まらず、コンテンツが外側まで拡大することがあります。
制約 | Type | 説明 |
---|---|---|
位置合せ | javafx.geometry.Pos | タイル内での子の位置合せ。 |
マージン | javafx.geometry.Insets | 子の外側のマージン領域。 |
例:
TilePane tilepane = new TilePane();
for (int i = 0; i < 20; i++) {
Label title = new Label(imageTitle[i]):
Imageview imageview = new ImageView(new Image(imageName[i]));
TilePane.setAlignment(label, Pos.BOTTOM_RIGHT);
tilepane.getChildren().addAll(title, imageview);
}
Type | プロパティと説明 |
---|---|
ObjectProperty<Pos> |
alignment
タイルペインのコンテンツの幅と高さの範囲内での全体的な位置合せ。
|
DoubleProperty |
hgap
行の各タイル間の水平方向の総スペース。
|
ObjectProperty<Orientation> |
orientation
このタイルペインの向き。
|
IntegerProperty |
prefColumns
水平方向のタイルペインの列の優先数。
|
IntegerProperty |
prefRows
垂直方向のタイルペインの行の優先数。
|
DoubleProperty |
prefTileHeight
各タイルの優先高。
|
DoubleProperty |
prefTileWidth
各タイルの優先幅。
|
ObjectProperty<Pos> |
tileAlignment
タイル内の子のデフォルトの位置合せ。
|
ReadOnlyDoubleProperty |
tileHeight
各タイルの実際の高さ。
|
ReadOnlyDoubleProperty |
tileWidth
各タイルの実際の幅。
|
DoubleProperty |
vgap
列の各タイル間の垂直方向の総スペース。
|
background、border、cacheShape、centerShape、height、insets、maxHeight、maxWidth、minHeight、minWidth、opaqueInsets、padding、prefHeight、prefWidth、scaleShape、shape、snapToPixel、width
needsLayout
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
USE_COMPUTED_SIZE、USE_PREF_SIZE
BASELINE_OFFSET_SAME_AS_HEIGHT
コンストラクタと説明 |
---|
TilePane()
prefColumn = 5およびhgap/vgap = 0で、水平方向のタイルペインのレイアウトを作成します。
|
TilePane(double hgap, double vgap)
prefColumn = 5および指定されたhgap/vgapで、水平方向のタイルペインのレイアウトを作成します。
|
TilePane(double hgap, double vgap, Node... children)
prefColumn = 5および指定されたhgap/vgapで、水平方向のタイルペインのレイアウトを作成します。
|
TilePane(Node... children)
prefColumn = 5およびhgap/vgap = 0で、水平方向のタイルペインのレイアウトを作成します。
|
TilePane(Orientation orientation)
向き、prefColumn/prefRows = 5およびhgap/vgap = 0が指定されたTilePaneレイアウトを作成します。
|
TilePane(Orientation orientation, double hgap, double vgap)
向き、hgap/vgapおよびprefRows/prefColumns = 5が指定されたTilePaneレイアウトを作成します。
|
TilePane(Orientation orientation, double hgap, double vgap, Node... children)
向き、hgap/vgapおよびprefRows/prefColumns = 5が指定されたTilePaneレイアウトを作成します。
|
TilePane(Orientation orientation, Node... children)
向き、prefColumn/prefRows = 5およびhgap/vgap = 0が指定されたTilePaneレイアウトを作成します。
|
修飾子と型 | メソッドと説明 |
---|---|
ObjectProperty<Pos> |
alignmentProperty()
タイルペインのコンテンツの幅と高さの範囲内での全体的な位置合せ。
|
static void |
clearConstraints(Node child)
子ノードからすべてのタイルペイン制約を削除します。
|
protected double |
computeMinHeight(double width)
このリージョンの最小高を計算します。
|
protected double |
computeMinWidth(double height)
このリージョンの最小幅を計算します。
|
protected double |
computePrefHeight(double forWidth)
指定された幅に対するこのリージョンの優先高を計算します。Regionのサブクラスでは、このメソッドをオーバーライドして、そのコンテンツおよびレイアウト手法に基づいて適切な値を返す必要があります。
|
protected double |
computePrefWidth(double forHeight)
指定された高さに対するこのリージョンの優先幅を計算します。
|
Pos |
getAlignment()
プロパティalignmentの値を取得します。
|
static Pos |
getAlignment(Node node)
子の位置合せ制約を返します(設定されている場合)。
|
static List<CssMetaData<? extends Styleable,?>> |
getClassCssMetaData() |
Orientation |
getContentBias()
レイアウト用にノードのサイズ変更バイアスの向きを返します。
|
List<CssMetaData<? extends Styleable,?>> |
getCssMetaData()
NodeのCssMetaDataがリフレクションなしでアクセス可能になるように、このメソッドは
Node.getClassCssMetaData() に委任する必要があります。 |
double |
getHgap()
プロパティhgapの値を取得します。
|
static Insets |
getMargin(Node node)
子のマージン制約を返します(設定されている場合)。
|
Orientation |
getOrientation()
プロパティorientationの値を取得します。
|
int |
getPrefColumns()
プロパティprefColumnsの値を取得します。
|
int |
getPrefRows()
プロパティprefRowsの値を取得します。
|
double |
getPrefTileHeight()
プロパティprefTileHeightの値を取得します。
|
double |
getPrefTileWidth()
プロパティprefTileWidthの値を取得します。
|
Pos |
getTileAlignment()
プロパティtileAlignmentの値を取得します。
|
double |
getTileHeight()
プロパティtileHeightの値を取得します。
|
double |
getTileWidth()
プロパティtileWidthの値を取得します。
|
double |
getVgap()
プロパティvgapの値を取得します。
|
DoubleProperty |
hgapProperty()
行の各タイル間の水平方向の総スペース。
|
protected void |
layoutChildren()
この
Parent の子をレイアウトするレイアウト・パス中に起動されます。 |
ObjectProperty<Orientation> |
orientationProperty()
このタイルペインの向き。
|
IntegerProperty |
prefColumnsProperty()
水平方向のタイルペインの列の優先数。
|
IntegerProperty |
prefRowsProperty()
垂直方向のタイルペインの行の優先数。
|
DoubleProperty |
prefTileHeightProperty()
各タイルの優先高。
|
DoubleProperty |
prefTileWidthProperty()
各タイルの優先幅。
|
void |
requestLayout()
次のシーンがレンダリングされる前に実行するレイアウト・パスを要求します。
|
static void |
setAlignment(Node node, Pos value)
タイルペインに含まれている場合に、子の位置合せを設定します。
|
void |
setAlignment(Pos value)
プロパティalignmentの値を設定します。
|
void |
setHgap(double value)
プロパティhgapの値を設定します。
|
static void |
setMargin(Node node, Insets value)
タイルペインに含まれている場合に、子のマージンを設定します。
|
void |
setOrientation(Orientation value)
プロパティorientationの値を設定します。
|
void |
setPrefColumns(int value)
プロパティprefColumnsの値を設定します。
|
void |
setPrefRows(int value)
プロパティprefRowsの値を設定します。
|
void |
setPrefTileHeight(double value)
プロパティprefTileHeightの値を設定します。
|
void |
setPrefTileWidth(double value)
プロパティprefTileWidthの値を設定します。
|
void |
setTileAlignment(Pos value)
プロパティtileAlignmentの値を設定します。
|
void |
setVgap(double value)
プロパティvgapの値を設定します。
|
ObjectProperty<Pos> |
tileAlignmentProperty()
タイル内の子のデフォルトの位置合せ。
|
ReadOnlyDoubleProperty |
tileHeightProperty()
各タイルの実際の高さ。
|
ReadOnlyDoubleProperty |
tileWidthProperty()
各タイルの実際の幅。
|
DoubleProperty |
vgapProperty()
列の各タイル間の垂直方向の総スペース。
|
getChildren
backgroundProperty、borderProperty、cacheShapeProperty、centerShapeProperty、computeMaxHeight、computeMaxWidth、getBackground、getBorder、getHeight、getInsets、getMaxHeight、getMaxWidth、getMinHeight、getMinWidth、getOpaqueInsets、getPadding、getPrefHeight、getPrefWidth、getShape、getUserAgentStylesheet、getWidth、heightProperty、insetsProperty、isCacheShape、isCenterShape、isResizable、isScaleShape、isSnapToPixel、layoutInArea、layoutInArea、layoutInArea、layoutInArea、maxHeight、maxHeightProperty、maxWidth、maxWidthProperty、minHeight、minHeightProperty、minWidth、minWidthProperty、opaqueInsetsProperty、paddingProperty、positionInArea、positionInArea、prefHeight、prefHeightProperty、prefWidth、prefWidthProperty、resize、scaleShapeProperty、setBackground、setBorder、setCacheShape、setCenterShape、setHeight、setMaxHeight、setMaxSize、setMaxWidth、setMinHeight、setMinSize、setMinWidth、setOpaqueInsets、setPadding、setPrefHeight、setPrefSize、setPrefWidth、setScaleShape、setShape、setSnapToPixel、setWidth、shapeProperty、snappedBottomInset、snappedLeftInset、snappedRightInset、snappedTopInset、snapPosition、snapSize、snapSpace、snapToPixelProperty、widthProperty
getBaselineOffset、getChildrenUnmodifiable、getManagedChildren、getStylesheets、isNeedsLayout、layout、lookup、needsLayoutProperty、queryAccessibleAttribute、requestParentLayout、setNeedsLayout、updateBounds
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、getBlendMode、getBoundsInLocal、getBoundsInParent、getCacheHint、getClip、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、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、lookupAll、managedProperty、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、pressedProperty、pseudoClassStateChanged、relocate、removeEventFilter、removeEventHandler、requestFocus、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、toString、translateXProperty、translateYProperty、translateZProperty、usesMirroring、visibleProperty
public final ObjectProperty<Orientation> orientationProperty
public final IntegerProperty prefRowsProperty
垂直方向のタイルペインでは、アプリケーションでこの値を初期化することをお薦めします。
public final IntegerProperty prefColumnsProperty
水平方向のタイルペインでは、アプリケーションでこの値を初期化することをお薦めします。
public final DoubleProperty prefTileWidthProperty
public final DoubleProperty prefTileHeightProperty
public final ReadOnlyDoubleProperty tileWidthProperty
getTileWidth()
public final ReadOnlyDoubleProperty tileHeightProperty
getTileHeight()
public final DoubleProperty hgapProperty
getHgap()
、setHgap(double)
public final DoubleProperty vgapProperty
getVgap()
、setVgap(double)
public final ObjectProperty<Pos> alignmentProperty
水平方向のタイルペインの場合、各行は、alignmentのhpos値に従ってタイルペインの幅内で位置合せされ、alignmentのvpos値に従ってタイルペインの高さ内で位置合せされます。
垂直方向のタイルペインの場合、各列は、alignmentのvpos値に従ってタイルペインの高さ内で位置合せされ、alignmentのhpos値に従ってタイルペインの幅内で位置合せされます。
public final ObjectProperty<Pos> tileAlignmentProperty
public TilePane()
public TilePane(Orientation orientation)
orientation
- タイルのフローおよび折返しの方向public TilePane(double hgap, double vgap)
hgap
- 各タイル間の水平方向のスペースの量vgap
- 各タイル間の垂直方向のスペースの量public TilePane(Orientation orientation, double hgap, double vgap)
orientation
- タイルのフローおよび折返しの方向hgap
- 各タイル間の水平方向のスペースの量vgap
- 各タイル間の垂直方向のスペースの量public TilePane(Node... children)
children
- このペインの子の初期設定。public TilePane(Orientation orientation, Node... children)
orientation
- タイルのフローおよび折返しの方向children
- このペインの子の初期設定。public TilePane(double hgap, double vgap, Node... children)
hgap
- 各タイル間の水平方向のスペースの量vgap
- 各タイル間の垂直方向のスペースの量children
- このペインの子の初期設定。public TilePane(Orientation orientation, double hgap, double vgap, Node... children)
orientation
- タイルのフローおよび折返しの方向hgap
- 各タイル間の水平方向のスペースの量vgap
- 各タイル間の垂直方向のスペースの量children
- このペインの子の初期設定。public static void setAlignment(Node node, Pos value)
node
- タイルペインの子ノードvalue
- 子の配置位置public static Pos getAlignment(Node node)
node
- タイルペインの子ノードpublic static void setMargin(Node node, Insets value)
node
- タイルペインの子ノードvalue
- 子の周囲の空白のマージンpublic static Insets getMargin(Node node)
node
- タイルペインの子ノードpublic static void clearConstraints(Node child)
child
- 子ノードpublic final ObjectProperty<Orientation> orientationProperty()
public final void setOrientation(Orientation value)
public final Orientation getOrientation()
public final IntegerProperty prefRowsProperty()
垂直方向のタイルペインでは、アプリケーションでこの値を初期化することをお薦めします。
public final void setPrefRows(int value)
垂直方向のタイルペインでは、アプリケーションでこの値を初期化することをお薦めします。
public final int getPrefRows()
垂直方向のタイルペインでは、アプリケーションでこの値を初期化することをお薦めします。
public final IntegerProperty prefColumnsProperty()
水平方向のタイルペインでは、アプリケーションでこの値を初期化することをお薦めします。
public final void setPrefColumns(int value)
水平方向のタイルペインでは、アプリケーションでこの値を初期化することをお薦めします。
public final int getPrefColumns()
水平方向のタイルペインでは、アプリケーションでこの値を初期化することをお薦めします。
public final DoubleProperty prefTileWidthProperty()
public final void setPrefTileWidth(double value)
public final double getPrefTileWidth()
public final DoubleProperty prefTileHeightProperty()
public final void setPrefTileHeight(double value)
public final double getPrefTileHeight()
public final ReadOnlyDoubleProperty tileWidthProperty()
getTileWidth()
public final double getTileWidth()
public final ReadOnlyDoubleProperty tileHeightProperty()
getTileHeight()
public final double getTileHeight()
public final DoubleProperty hgapProperty()
getHgap()
、setHgap(double)
public final void setHgap(double value)
public final double getHgap()
public final DoubleProperty vgapProperty()
getVgap()
、setVgap(double)
public final void setVgap(double value)
public final double getVgap()
public final ObjectProperty<Pos> alignmentProperty()
水平方向のタイルペインの場合、各行は、alignmentのhpos値に従ってタイルペインの幅内で位置合せされ、alignmentのvpos値に従ってタイルペインの高さ内で位置合せされます。
垂直方向のタイルペインの場合、各列は、alignmentのvpos値に従ってタイルペインの高さ内で位置合せされ、alignmentのhpos値に従ってタイルペインの幅内で位置合せされます。
public final void setAlignment(Pos value)
水平方向のタイルペインの場合、各行は、alignmentのhpos値に従ってタイルペインの幅内で位置合せされ、alignmentのvpos値に従ってタイルペインの高さ内で位置合せされます。
垂直方向のタイルペインの場合、各列は、alignmentのvpos値に従ってタイルペインの高さ内で位置合せされ、alignmentのhpos値に従ってタイルペインの幅内で位置合せされます。
public final Pos getAlignment()
水平方向のタイルペインの場合、各行は、alignmentのhpos値に従ってタイルペインの幅内で位置合せされ、alignmentのvpos値に従ってタイルペインの高さ内で位置合せされます。
垂直方向のタイルペインの場合、各列は、alignmentのvpos値に従ってタイルペインの高さ内で位置合せされ、alignmentのhpos値に従ってタイルペインの幅内で位置合せされます。
public final ObjectProperty<Pos> tileAlignmentProperty()
public final void setTileAlignment(Pos value)
public final Pos getTileAlignment()
public Orientation getContentBias()
Node
Resizableのサブクラスはこのメソッドをオーバーライドし、適切な値を返す必要があります。
getContentBias
、クラス: Node
Node.isResizable()
、Node.minWidth(double)
、Node.minHeight(double)
、Node.prefWidth(double)
、Node.prefHeight(double)
、Node.maxWidth(double)
、Node.maxHeight(double)
public void requestLayout()
Parent
この親がレイアウト・ルートまたは管理対象外のいずれかである場合は、シーンのダーティ・レイアウト・リストに直接追加されます。そうでない場合は、requestParentLayoutが起動されます。
requestLayout
、クラス: Parent
protected double computeMinWidth(double height)
Region
computeMinWidth
、クラス: Region
height
- 最小幅が高さに依存する場合に使用する必要がある高さprotected double computeMinHeight(double width)
Region
computeMinHeight
、クラス: Region
width
- 最小高が幅に依存する場合に使用する必要がある幅protected double computePrefWidth(double forHeight)
Region
computePrefWidth
、クラス: Region
forHeight
- 優先幅がそれに依存する場合に使用する必要がある高さprotected double computePrefHeight(double forWidth)
Region
computePrefHeight
、クラス: Region
forWidth
- 優先高がそれに依存する場合に使用する必要がある幅protected void layoutChildren()
Parent
Parent
の子をレイアウトするレイアウト・パス中に起動されます。デフォルトでは、管理対象のサイズ変更可能なコンテンツのサイズをその優先サイズに合せて設定するのみで、ノードの配置は行われません。
サブクラスは必要に応じてこの関数をオーバーライドし、コンテンツをレイアウトする必要があります。
layoutChildren
、クラス: Parent
public static List<CssMetaData<? extends Styleable,?>> getClassCssMetaData()
public List<CssMetaData<? extends Styleable,?>> getCssMetaData()
Node.getClassCssMetaData()
に委任する必要があります。getCssMetaData
、インタフェース: Styleable
getCssMetaData
、クラス: Region
Copyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved.