public class DefaultGridLayer extends com.ait.lienzo.client.core.shape.Layer implements GridLayer, GridWidgetRegistry
com.ait.lienzo.client.core.shape.Layer.LayerFactory, com.ait.lienzo.client.core.shape.Layer.SelectionLayer
com.ait.lienzo.client.core.shape.ContainerNode.ContainerNodeFactory<C extends com.ait.lienzo.client.core.shape.json.IJSONSerializable<C> & com.ait.lienzo.client.core.shape.IContainer<C,?>>
com.ait.lienzo.client.core.shape.Node.NodeFactory<N extends com.ait.lienzo.client.core.shape.json.IJSONSerializable<N>>
GridPinnedModeManager.PinnedContext
Constructor and Description |
---|
DefaultGridLayer() |
Modifier and Type | Method and Description |
---|---|
com.ait.lienzo.client.core.shape.Layer |
add(com.ait.lienzo.client.core.shape.IPrimitive<?> child)
Add a child to this Layer.
|
com.ait.lienzo.client.core.shape.Layer |
add(com.ait.lienzo.client.core.shape.IPrimitive<?> child,
com.ait.lienzo.client.core.shape.IPrimitive<?>... children)
Add a child and other children to this Layer.
|
void |
addOnEnterPinnedModeCommand(com.google.gwt.user.client.Command command) |
void |
addOnExitPinnedModeCommand(com.google.gwt.user.client.Command command) |
com.ait.lienzo.client.core.shape.Layer |
batch() |
com.ait.lienzo.client.core.shape.Layer |
batch(GridLayerRedrawManager.PrioritizedCommand command)
Redraw the Grid.
|
void |
deregister(GridWidget gridWidget)
Deregisters a
GridWidget |
com.ait.lienzo.client.core.shape.Layer |
draw() |
void |
enterPinnedMode(GridWidget gridWidget,
com.google.gwt.user.client.Command onStartCommand)
Enters "pinned" mode.
|
void |
exitPinnedMode(com.google.gwt.user.client.Command onCompleteCommand)
Exits "pinned" mode.
|
void |
flipToGridWidget(GridWidget gridWidget)
Moves the specified GridWidget into view without scrolling the Canvas.
|
TransformMediator |
getDefaultTransformMediator()
Returns the default restriction when in "unpinned" mode.
|
com.google.gwt.user.client.ui.AbsolutePanel |
getDomElementContainer()
Get the overlay panel.
|
Set<com.ait.lienzo.client.core.shape.IPrimitive<?>> |
getGridWidgetConnectors()
Gets a collection of all connectors used to connect all
GridWidget together. |
protected GridWidgetDnDMouseDownHandler |
getGridWidgetDnDMouseDownHandler() |
protected GridWidgetDnDMouseMoveHandler |
getGridWidgetDnDMouseMoveHandler() |
protected GridWidgetDnDMouseUpHandler |
getGridWidgetDnDMouseUpHandler() |
GridWidgetDnDHandlersState |
getGridWidgetHandlersState()
Get the state of any Handlers registered to the Grid
|
Set<GridWidget> |
getGridWidgets() |
GridPinnedModeManager.PinnedContext |
getPinnedContext()
Returns the pinned Context, or null if no GridWidget is pinned.
|
Bounds |
getVisibleBounds()
Get the visible bounds of the Layer in the Viewport
|
boolean |
isGridPinned()
Returns the current state of the View; whether a GridWidget is already "pinned".
|
void |
onNodeMouseDown(com.ait.lienzo.client.core.event.NodeMouseDownEvent event) |
void |
onNodeMouseMove(com.ait.lienzo.client.core.event.NodeMouseMoveEvent event) |
void |
onNodeMouseUp(com.ait.lienzo.client.core.event.NodeMouseUpEvent event) |
void |
refreshGridWidgetConnectors()
Refreshes all connectors used to connect all
GridWidget together. |
void |
register(GridWidget gridWidget)
Registers a
GridWidget |
com.ait.lienzo.client.core.shape.Layer |
remove(com.ait.lienzo.client.core.shape.IPrimitive<?> child)
Remove a child from this Layer. if the child is a GridWidget also remove
any Connectors that have been added between the GridWidget being removed
and any of GridWidgets.
|
com.ait.lienzo.client.core.shape.Layer |
removeAll() |
void |
scrollToGridWidget(GridWidget gridWidget)
Scrolls the specified GridWidget into view.
|
void |
select(GridWidget selectedGridWidget) |
void |
selectLinkedColumn(GridColumn<?> selectedGridColumn) |
void |
setDomElementContainer(com.google.gwt.user.client.ui.AbsolutePanel domElementContainer)
Set a reference to an AbsolutePanel that overlays the Canvas.
|
void |
updatePinnedContext(GridWidget gridWidget)
Updates the context to a different GridWidget and related translation.
|
asLayer, clear, doBatchScheduled, draw, find, findShapeAtPoint, getCanvasElement, getContext, getDefaultStorageEngine, getElement, getHeight, getLayer, getSelectionLayer, getTransformingAttributes, getWidth, isBatchScheduled, isClearLayerBeforeDraw, isSelection, isShowSelectionLayer, isTransformable, moveDown, moveToBottom, moveToTop, moveUp, removeFromParent, setClearLayerBeforeDraw, setListening, setOnLayerAfterDraw, setOnLayerBeforeDraw, setShowSelectionLayer, setTransformable, setVisible, toDataURL, toDataURL, toJSONObject, unBatchScheduled
asContainer, asContainerNode, copy, drawWithoutTransforms, find, findByID, getBoundingBox, getBoundingBoxAttributes, getChildNodes, getChildNodes, getPathClipper, getStorageBounds, getStorageEngine, length, moveDown, moveToBottom, moveToTop, moveUp, setPathClipper, setStorageBounds, setStorageEngine
addAttributesChangedHandler, addEnsureHandler, addNodeDragEndHandler, addNodeDragMoveHandler, addNodeDragStartHandler, addNodeGestureChangeHandler, addNodeGestureEndHandler, addNodeGestureStartHandler, addNodeMouseClickHandler, addNodeMouseDoubleClickHandler, addNodeMouseDownHandler, addNodeMouseEnterHandler, addNodeMouseExitHandler, addNodeMouseMoveHandler, addNodeMouseOutHandler, addNodeMouseOverHandler, addNodeMouseUpHandler, addNodeMouseWheelHandler, addNodeTouchCancelHandler, addNodeTouchEndHandler, addNodeTouchMoveHandler, addNodeTouchStartHandler, addParentsLocations, animate, animate, asAttributes, asAttributes, asGroup, asGroupOf, asGuide, asList, asMultiPointShape, asNode, asPrimitive, asScene, asShape, asViewport, cancelAttributesChangedBatcher, cast, copyUnchecked, doAnimating, drawWithTransforms, drawWithTransforms, equals, fireEvent, getAbsoluteLocation, getAbsoluteTransform, getAttributes, getAttributeSheet, getBoundingPoints, getBoundingPoints, getComputedBoundingPoints, getComputedLocation, getFactory, getID, getMetaData, getName, getNodeType, getOverLayer, getParent, getPossibleNodeTransform, getRequiredAttributes, getScene, getScratchPad, getUserData, getViewport, hashCode, hasMetaData, isAnimating, isEventHandled, isEventHandledGlobally, isListening, isVisible, onWire, refresh, setAttributesChangedBatcher, setID, setName, setNodeType, setParent, setUserData, toJSONString, toString, unAnimating, uuid
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
find, findByID, getChildNodes, getChildNodes, getDefaultStorageEngine, getPathClipper, getStorageBounds, getStorageEngine, length, moveDown, moveToBottom, moveToTop, moveUp, setPathClipper, setStorageBounds, setStorageEngine
addAttributesChangedHandler, addNodeDragEndHandler, addNodeDragMoveHandler, addNodeDragStartHandler, addNodeGestureChangeHandler, addNodeGestureEndHandler, addNodeGestureStartHandler, addNodeMouseClickHandler, addNodeMouseDoubleClickHandler, addNodeMouseDownHandler, addNodeMouseEnterHandler, addNodeMouseExitHandler, addNodeMouseMoveHandler, addNodeMouseOutHandler, addNodeMouseOverHandler, addNodeMouseUpHandler, addNodeMouseWheelHandler, addNodeTouchCancelHandler, addNodeTouchEndHandler, addNodeTouchMoveHandler, addNodeTouchStartHandler, animate, animate, asContainer, asContainerNode, asGroup, asGroupOf, asGuide, asLayer, asMultiPointShape, asNode, asPrimitive, asScene, asShape, asViewport, cancelAttributesChangedBatcher, copy, drawWithTransforms, fireEvent, getAbsoluteLocation, getAbsoluteTransform, getAttributes, getAttributeSheet, getBoundingBox, getBoundingBoxAttributes, getBoundingPoints, getComputedBoundingPoints, getComputedLocation, getID, getLayer, getMetaData, getName, getNodeType, getOverLayer, getParent, getRequiredAttributes, getScene, getScratchPad, getTransformingAttributes, getUserData, getViewport, hasMetaData, isEventHandled, isListening, isVisible, moveDown, moveToBottom, moveToTop, moveUp, refresh, removeFromParent, setAttributesChangedBatcher, setID, setListening, setName, setUserData, setVisible, uuid
protected GridWidgetDnDMouseDownHandler getGridWidgetDnDMouseDownHandler()
protected GridWidgetDnDMouseMoveHandler getGridWidgetDnDMouseMoveHandler()
protected GridWidgetDnDMouseUpHandler getGridWidgetDnDMouseUpHandler()
public void onNodeMouseDown(com.ait.lienzo.client.core.event.NodeMouseDownEvent event)
onNodeMouseDown
in interface com.ait.lienzo.client.core.event.NodeMouseDownHandler
public void onNodeMouseMove(com.ait.lienzo.client.core.event.NodeMouseMoveEvent event)
onNodeMouseMove
in interface com.ait.lienzo.client.core.event.NodeMouseMoveHandler
public void onNodeMouseUp(com.ait.lienzo.client.core.event.NodeMouseUpEvent event)
onNodeMouseUp
in interface com.ait.lienzo.client.core.event.NodeMouseUpHandler
public com.ait.lienzo.client.core.shape.Layer draw()
draw
in interface com.ait.lienzo.client.core.shape.IDrawable<com.ait.lienzo.client.core.shape.Layer>
draw
in class com.ait.lienzo.client.core.shape.Layer
public com.ait.lienzo.client.core.shape.Layer batch()
batch
in interface com.ait.lienzo.client.core.shape.IDrawable<com.ait.lienzo.client.core.shape.Layer>
batch
in class com.ait.lienzo.client.core.shape.Layer
public com.ait.lienzo.client.core.shape.Layer batch(GridLayerRedrawManager.PrioritizedCommand command)
GridLayer
public Set<com.ait.lienzo.client.core.shape.IPrimitive<?>> getGridWidgetConnectors()
GridLayer
GridWidget
together.getGridWidgetConnectors
in interface GridLayer
Set
of connectors.public com.ait.lienzo.client.core.shape.Layer add(com.ait.lienzo.client.core.shape.IPrimitive<?> child)
add
in interface com.ait.lienzo.client.core.shape.IContainer<com.ait.lienzo.client.core.shape.Layer,com.ait.lienzo.client.core.shape.IPrimitive<?>>
add
in class com.ait.lienzo.client.core.shape.Layer
child
- Primitive to add to the Layerpublic void register(GridWidget gridWidget)
GridWidgetRegistry
GridWidget
register
in interface GridWidgetRegistry
gridWidget
- The GridWidget
to registerpublic void refreshGridWidgetConnectors()
GridLayer
GridWidget
together.refreshGridWidgetConnectors
in interface GridLayer
public com.ait.lienzo.client.core.shape.Layer add(com.ait.lienzo.client.core.shape.IPrimitive<?> child, com.ait.lienzo.client.core.shape.IPrimitive<?>... children)
add
in interface com.ait.lienzo.client.core.shape.IContainer<com.ait.lienzo.client.core.shape.Layer,com.ait.lienzo.client.core.shape.IPrimitive<?>>
add
in class com.ait.lienzo.client.core.shape.Layer
child
- Primitive to add to the Layerchildren
- Additional primitive(s) to add to the Layerpublic com.ait.lienzo.client.core.shape.Layer remove(com.ait.lienzo.client.core.shape.IPrimitive<?> child)
remove
in interface com.ait.lienzo.client.core.shape.IContainer<com.ait.lienzo.client.core.shape.Layer,com.ait.lienzo.client.core.shape.IPrimitive<?>>
remove
in class com.ait.lienzo.client.core.shape.Layer
child
- Primitive to remove from the Layerpublic void deregister(GridWidget gridWidget)
GridWidgetRegistry
GridWidget
deregister
in interface GridWidgetRegistry
gridWidget
- The GridWidget
to deregisterpublic com.ait.lienzo.client.core.shape.Layer removeAll()
removeAll
in interface com.ait.lienzo.client.core.shape.IContainer<com.ait.lienzo.client.core.shape.Layer,com.ait.lienzo.client.core.shape.IPrimitive<?>>
removeAll
in class com.ait.lienzo.client.core.shape.Layer
public void select(GridWidget selectedGridWidget)
select
in interface GridSelectionManager
public void selectLinkedColumn(GridColumn<?> selectedGridColumn)
selectLinkedColumn
in interface GridSelectionManager
public void flipToGridWidget(GridWidget gridWidget)
GridLayer
flipToGridWidget
in interface GridLayer
gridWidget
- The GridWidget to move into view.public void scrollToGridWidget(GridWidget gridWidget)
GridLayer
scrollToGridWidget
in interface GridLayer
gridWidget
- The GridWidget to scroll into view.public Set<GridWidget> getGridWidgets()
getGridWidgets
in interface GridSelectionManager
public void enterPinnedMode(GridWidget gridWidget, com.google.gwt.user.client.Command onStartCommand)
GridPinnedModeManager
enterPinnedMode
in interface GridPinnedModeManager
gridWidget
- GridWidget to "pin"onStartCommand
- Command to execute on start of entry to "pinned" modepublic void exitPinnedMode(com.google.gwt.user.client.Command onCompleteCommand)
GridPinnedModeManager
exitPinnedMode
in interface GridPinnedModeManager
onCompleteCommand
- Command to execute on completion of exiting "pinned" modepublic void updatePinnedContext(GridWidget gridWidget) throws IllegalStateException
GridPinnedModeManager
updatePinnedContext
in interface GridPinnedModeManager
gridWidget
- GridWidget to "pin"IllegalStateException
- If "pinned" mode has not been entered.public GridPinnedModeManager.PinnedContext getPinnedContext()
GridPinnedModeManager
getPinnedContext
in interface GridPinnedModeManager
public boolean isGridPinned()
IsPinnedModeAware
isGridPinned
in interface IsPinnedModeAware
public TransformMediator getDefaultTransformMediator()
GridPinnedModeManager
getDefaultTransformMediator
in interface GridPinnedModeManager
public void addOnEnterPinnedModeCommand(com.google.gwt.user.client.Command command)
addOnEnterPinnedModeCommand
in interface GridPinnedModeManager
public void addOnExitPinnedModeCommand(com.google.gwt.user.client.Command command)
addOnExitPinnedModeCommand
in interface GridPinnedModeManager
public Bounds getVisibleBounds()
GridLayer
getVisibleBounds
in interface GridLayer
public GridWidgetDnDHandlersState getGridWidgetHandlersState()
GridLayer
getGridWidgetHandlersState
in interface GridLayer
public com.google.gwt.user.client.ui.AbsolutePanel getDomElementContainer()
GridLayer
getDomElementContainer
in interface GridLayer
public void setDomElementContainer(com.google.gwt.user.client.ui.AbsolutePanel domElementContainer)
GridLayer
setDomElementContainer
in interface GridLayer
domElementContainer
- The overlay panelCopyright © 2012–2020 JBoss by Red Hat. All rights reserved.