java.lang.Object
org.tbee.javafx.scene.layout.MigPane.FXComponentWrapper
org.tbee.javafx.scene.layout.MigPane.FXContainerWrapper
- All Implemented Interfaces:
ComponentWrapper,ContainerWrapper
- Enclosing class:
MigPane
-
Field Summary
Fields inherited from class org.tbee.javafx.scene.layout.MigPane.FXComponentWrapper
nodeFields inherited from interface net.miginfocom.layout.ComponentWrapper
TYPE_BUTTON, TYPE_CHECK_BOX, TYPE_COMBO_BOX, TYPE_CONTAINER, TYPE_IMAGE, TYPE_LABEL, TYPE_LIST, TYPE_PANEL, TYPE_PROGRESS_BAR, TYPE_SCROLL_BAR, TYPE_SCROLL_PANE, TYPE_SEPARATOR, TYPE_SLIDER, TYPE_SPINNER, TYPE_TABBED_PANE, TYPE_TABLE, TYPE_TEXT_AREA, TYPE_TEXT_FIELD, TYPE_TREE, TYPE_UNKNOWN, TYPE_UNSET -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the number of components that this parent has.Returns the components of the container that wrapper is wrapping.Returns theLayoutHandler(in Swing terms) that is handling the layout of this container.booleanReturns if this container is using left-to-right component ordering.voidpaintDebugCell(int x, int y, int w, int h) Paints a cell to indicate where it is.voidpaintDebugOutline(boolean useVisualPadding) Paints component outline to indicate where it is.Methods inherited from class org.tbee.javafx.scene.layout.MigPane.FXComponentWrapper
equals, getBaseline, getComponent, getComponentType, getContentBias, getHeight, getHorizontalScreenDPI, getLayoutHashCode, getLinkId, getMaximumHeight, getMaximumWidth, getMinimumHeight, getMinimumWidth, getParent, getPixelUnitFactor, getPreferredHeight, getPreferredWidth, getScreenHeight, getScreenLocationX, getScreenLocationY, getScreenWidth, getVerticalScreenDPI, getVisualPadding, getWidth, getX, getY, hasBaseline, hashCode, isVisible, setBoundsMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.miginfocom.layout.ComponentWrapper
getBaseline, getComponent, getComponentType, getContentBias, getHeight, getHorizontalScreenDPI, getLayoutHashCode, getLinkId, getMaximumHeight, getMaximumWidth, getMinimumHeight, getMinimumWidth, getParent, getPixelUnitFactor, getPreferredHeight, getPreferredWidth, getScreenHeight, getScreenLocationX, getScreenLocationY, getScreenWidth, getVerticalScreenDPI, getVisualPadding, getWidth, getX, getY, hasBaseline, isVisible, setBounds
-
Constructor Details
-
FXContainerWrapper
public FXContainerWrapper(javafx.scene.Parent node)
-
-
Method Details
-
getComponents
Description copied from interface:ContainerWrapperReturns the components of the container that wrapper is wrapping.- Specified by:
getComponentsin interfaceContainerWrapper- Returns:
- The components of the container that wrapper is wrapping. Never
null.
-
getComponentCount
public int getComponentCount()Description copied from interface:ContainerWrapperReturns the number of components that this parent has.- Specified by:
getComponentCountin interfaceContainerWrapper- Returns:
- The number of components that this parent has.
-
getLayout
Description copied from interface:ContainerWrapperReturns theLayoutHandler(in Swing terms) that is handling the layout of this container. If there exist no such class the method should return the same asComponentWrapper.getComponent(), which is the container itself.- Specified by:
getLayoutin interfaceContainerWrapper- Returns:
- The layout handler instance. Never
null.
-
isLeftToRight
public boolean isLeftToRight()Description copied from interface:ContainerWrapperReturns if this container is using left-to-right component ordering.- Specified by:
isLeftToRightin interfaceContainerWrapper- Returns:
- If this container is using left-to-right component ordering.
-
paintDebugCell
public void paintDebugCell(int x, int y, int w, int h) Description copied from interface:ContainerWrapperPaints a cell to indicate where it is.- Specified by:
paintDebugCellin interfaceContainerWrapper- Parameters:
x- The x coordinate to start the drawing.y- The x coordinate to start the drawing.w- The width to draw/fillh- The height to draw/fill
-
paintDebugOutline
public void paintDebugOutline(boolean useVisualPadding) Description copied from interface:ComponentWrapperPaints component outline to indicate where it is.- Specified by:
paintDebugOutlinein interfaceComponentWrapper- Overrides:
paintDebugOutlinein classMigPane.FXComponentWrapper- Parameters:
useVisualPadding- If the visual padding should be shown in the debug drawing.
-