org.tbee.javafx.scene.layout
Class MigPane

java.lang.Object
  extended by javafx.scene.Node
      extended by javafx.scene.Parent
          extended by javafx.scene.layout.Region
              extended by javafx.scene.layout.Pane
                  extended by org.tbee.javafx.scene.layout.MigPane
All Implemented Interfaces:
javafx.event.EventTarget
Direct Known Subclasses:
MigPane

public class MigPane
extends javafx.scene.layout.Pane

Manages nodes with MigLayout added via add(node, CC)

Author:
Tom Eugelink

Field Summary
protected static Map<javafx.scene.Node,CC> cNodeToCC
           
static String COLUMNCONSTRAINTS_PROPERTY_ID
           
static String LAYOUTCONSTRAINTS_PROPERTY_ID
           
static String ROWCONSTRAINTS_PROPERTY_ID
           
 
Fields inherited from class javafx.scene.layout.Region
USE_COMPUTED_SIZE, USE_PREF_SIZE
 
Constructor Summary
MigPane()
           
MigPane(LC layoutConstraints)
          use the class layout constraints
MigPane(LC layoutConstraints, AC colConstraints)
          use the class layout constraints
MigPane(LC layoutConstraints, AC colConstraints, AC rowConstraints)
          use the class layout constraints
MigPane(String layoutConstraints)
          usee the string layout constraints
MigPane(String layoutConstraints, String colConstraints)
          usee the string layout constraints
MigPane(String layoutConstraints, String colConstraints, String rowConstraints)
          usee the string layout constraints
 
Method Summary
 void add(javafx.scene.Node node)
           
 void add(javafx.scene.Node node, CC cc)
           
 void add(javafx.scene.Node node, String cc)
           
 void clearDebug()
           
protected  double computeMaxHeight(double width)
           
protected  double computeMaxWidth(double height)
           
protected  double computeMinHeight(double width)
           
protected  double computeMinWidth(double height)
           
protected  double computePrefHeight(double width)
           
protected  double computePrefWidth(double height)
           
 AC getColumnConstraints()
          ColumnConstraints:
 LC getLayoutConstraints()
          LayoutConstraints:
 AC getRowConstraints()
          RowConstraints:
protected  void layoutChildren()
          This is where the actual layout happens
 void setColumnConstraints(AC value)
           
 void setLayoutConstraints(LC value)
           
 void setRowConstraints(AC value)
           
 MigPane withColumnConstraints(AC value)
           
 MigPane withLayoutConstraints(LC value)
           
 MigPane withRowConstraints(AC value)
           
 
Methods inherited from class javafx.scene.layout.Pane
getChildren
 
Methods inherited from class javafx.scene.layout.Region
getHeight, getInsets, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getPadding, getPrefHeight, getPrefWidth, getWidth, heightProperty, impl_computeContains, impl_computeGeomBounds, impl_computeLayoutBounds, impl_createPGNode, impl_CSS_STYLEABLES, impl_cssSet, impl_cssSettable, impl_cssStyleablePropertyBitIndices, impl_getBackgroundFills, impl_getPositionShape, impl_getScaleShape, impl_getShape, impl_notifyLayoutBoundsChanged, impl_pickNodeLocal, impl_pickNodeLocal, impl_setBackgroundFills, impl_setPositionShape, impl_setScaleShape, impl_setShape, impl_updatePG, insets, isResizable, isSnapToPixel, layoutInArea, layoutInArea, layoutInArea, maxHeight, maxHeightProperty, maxWidth, maxWidthProperty, minHeight, minHeightProperty, minWidth, minWidthProperty, paddingProperty, positionInArea, positionInArea, prefHeight, prefHeightProperty, prefWidth, prefWidthProperty, resize, setHeight, setMaxHeight, setMaxSize, setMaxWidth, setMinHeight, setMinSize, setMinWidth, setPadding, setPrefHeight, setPrefSize, setPrefWidth, setSnapToPixel, setWidth, snapPosition, snapSize, snapSpace, snapToPixelProperty, widthProperty
 
Methods inherited from class javafx.scene.Parent
getBaselineOffset, getChildrenUnmodifiable, getImpl_traversalEngine, getManagedChildren, impl_geomChanged, impl_printBranch, impl_processCSS, impl_processMXNode, impl_resizeChildren, impl_traversalEngineProperty, isNeedsLayout, layout, lookup, needsLayoutProperty, requestLayout, setImpl_traversalEngine, setNeedsLayout
 
Methods inherited from class javafx.scene.Node
addEventFilter, addEventHandler, autosize, blendModeProperty, boundsInLocalProperty, boundsInParentProperty, buildEventDispatchChain, cacheHintProperty, cacheProperty, clipProperty, contains, contains, containsBounds, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectProperty, eventDispatcherProperty, fireEvent, focusedProperty, focusTraversableProperty, getBlendMode, getBoundsInLocal, getBoundsInParent, getCacheHint, getClip, getContentBias, getCursor, getDepthTest, getEffect, getEventDispatcher, getId, getInputMethodRequests, getLayoutBounds, getLayoutX, getLayoutY, getOnContextMenuRequested, getOnDragDetected, getOnDragDone, getOnDragDropped, getOnDragEntered, getOnDragExited, getOnDragOver, getOnInputMethodTextChanged, getOnKeyPressed, getOnKeyReleased, getOnKeyTyped, getOnMouseClicked, getOnMouseDragEntered, getOnMouseDragExited, getOnMouseDragged, getOnMouseDragOver, getOnMouseDragReleased, 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, impl_clearDirty, impl_createStyleHelper, impl_cssClearUserSetProperties, impl_cssPropertyInvalidated, impl_cssSet, impl_cssSettable, impl_cssUserSetProperty, impl_getClassToStyle, impl_getLeafTransform, impl_getPGNode, impl_getPivotX, impl_getPivotY, impl_getPivotZ, impl_getPseudoClassState, impl_getStyleCacheKey, impl_getStyleHelper, impl_intersects, impl_isDirty, impl_isDirtyEmpty, impl_isShowMnemonics, impl_isTreeVisible, impl_layoutBoundsChanged, impl_markDirty, impl_pickNode, impl_pickNode, impl_pseudoClassStateChanged, impl_reapplyCSS, impl_requestFocusImpl, impl_setShowMnemonics, impl_showMnemonicsProperty, impl_syncPGNode, impl_syncPGNodeDirect, impl_transformsChanged, impl_traverse, inputMethodRequestsProperty, intersects, intersects, isCache, isDisable, isDisabled, isFocused, isFocusTraversable, isHover, isManaged, isMouseTransparent, isPickOnBounds, isPressed, isVisible, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParent, localToParent, localToParent, localToScene, localToScene, localToScene, lookupAll, managedProperty, mouseTransparentProperty, onContextMenuRequestedProperty, onDragDetectedProperty, onDragDoneProperty, onDragDroppedProperty, onDragEnteredProperty, onDragExitedProperty, onDragOverProperty, onInputMethodTextChangedProperty, onKeyPressedProperty, onKeyReleasedProperty, onKeyTypedProperty, onMouseClickedProperty, onMouseDragEnteredProperty, onMouseDragExitedProperty, onMouseDraggedProperty, onMouseDragOverProperty, onMouseDragReleasedProperty, onMouseEnteredProperty, onMouseExitedProperty, onMouseMovedProperty, onMousePressedProperty, onMouseReleasedProperty, onScrollProperty, opacityProperty, parentProperty, parentToLocal, parentToLocal, parentToLocal, pickOnBoundsProperty, pressedProperty, relocate, removeEventFilter, removeEventHandler, requestFocus, 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, setOnContextMenuRequested, setOnDragDetected, setOnDragDone, setOnDragDropped, setOnDragEntered, setOnDragExited, setOnDragOver, setOnInputMethodTextChanged, setOnKeyPressed, setOnKeyReleased, setOnKeyTyped, setOnMouseClicked, setOnMouseDragEntered, setOnMouseDragExited, setOnMouseDragged, setOnMouseDragOver, setOnMouseDragReleased, setOnMouseEntered, setOnMouseExited, setOnMouseMoved, setOnMousePressed, setOnMouseReleased, setOnScroll, setOpacity, setPickOnBounds, setPressed, setRotate, setRotationAxis, setScaleX, setScaleY, setScaleZ, setStyle, setTranslateX, setTranslateY, setTranslateZ, setUserData, setVisible, startDragAndDrop, startFullDrag, styleProperty, toBack, toFront, toString, translateXProperty, translateYProperty, translateZProperty, visibleProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

cNodeToCC

protected static final Map<javafx.scene.Node,CC> cNodeToCC

LAYOUTCONSTRAINTS_PROPERTY_ID

public static final String LAYOUTCONSTRAINTS_PROPERTY_ID
See Also:
Constant Field Values

COLUMNCONSTRAINTS_PROPERTY_ID

public static final String COLUMNCONSTRAINTS_PROPERTY_ID
See Also:
Constant Field Values

ROWCONSTRAINTS_PROPERTY_ID

public static final String ROWCONSTRAINTS_PROPERTY_ID
See Also:
Constant Field Values
Constructor Detail

MigPane

public MigPane()

MigPane

public MigPane(LC layoutConstraints)
use the class layout constraints


MigPane

public MigPane(LC layoutConstraints,
               AC colConstraints)
use the class layout constraints


MigPane

public MigPane(LC layoutConstraints,
               AC colConstraints,
               AC rowConstraints)
use the class layout constraints


MigPane

public MigPane(String layoutConstraints)
usee the string layout constraints


MigPane

public MigPane(String layoutConstraints,
               String colConstraints)
usee the string layout constraints


MigPane

public MigPane(String layoutConstraints,
               String colConstraints,
               String rowConstraints)
usee the string layout constraints

Method Detail

getLayoutConstraints

public LC getLayoutConstraints()
LayoutConstraints:


setLayoutConstraints

public void setLayoutConstraints(LC value)

withLayoutConstraints

public MigPane withLayoutConstraints(LC value)

getColumnConstraints

public AC getColumnConstraints()
ColumnConstraints:


setColumnConstraints

public void setColumnConstraints(AC value)

withColumnConstraints

public MigPane withColumnConstraints(AC value)

getRowConstraints

public AC getRowConstraints()
RowConstraints:


setRowConstraints

public void setRowConstraints(AC value)

withRowConstraints

public MigPane withRowConstraints(AC value)

add

public void add(javafx.scene.Node node,
                CC cc)
Parameters:
node -
cc -

add

public void add(javafx.scene.Node node)
Parameters:
node -

add

public void add(javafx.scene.Node node,
                String cc)
Parameters:
node -
cc -

layoutChildren

protected void layoutChildren()
This is where the actual layout happens

Overrides:
layoutChildren in class javafx.scene.layout.Region

clearDebug

public void clearDebug()

computeMaxHeight

protected double computeMaxHeight(double width)
Overrides:
computeMaxHeight in class javafx.scene.layout.Region

computeMaxWidth

protected double computeMaxWidth(double height)
Overrides:
computeMaxWidth in class javafx.scene.layout.Region

computeMinHeight

protected double computeMinHeight(double width)
Overrides:
computeMinHeight in class javafx.scene.layout.Region

computeMinWidth

protected double computeMinWidth(double height)
Overrides:
computeMinWidth in class javafx.scene.layout.Region

computePrefHeight

protected double computePrefHeight(double width)
Overrides:
computePrefHeight in class javafx.scene.layout.Region

computePrefWidth

protected double computePrefWidth(double height)
Overrides:
computePrefWidth in class javafx.scene.layout.Region


Copyright © 2007-2011. All Rights Reserved.