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.SelectionLayercom.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, unBatchScheduledasContainer, asContainerNode, copy, drawWithoutTransforms, find, findByID, getBoundingBox, getBoundingBoxAttributes, getChildNodes, getChildNodes, getPathClipper, getStorageBounds, getStorageEngine, length, moveDown, moveToBottom, moveToTop, moveUp, setPathClipper, setStorageBounds, setStorageEngineaddAttributesChangedHandler, 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, uuidclone, finalize, getClass, notify, notifyAll, wait, wait, waitfind, findByID, getChildNodes, getChildNodes, getDefaultStorageEngine, getPathClipper, getStorageBounds, getStorageEngine, length, moveDown, moveToBottom, moveToTop, moveUp, setPathClipper, setStorageBounds, setStorageEngineaddAttributesChangedHandler, 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, uuidprotected 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.NodeMouseDownHandlerpublic void onNodeMouseMove(com.ait.lienzo.client.core.event.NodeMouseMoveEvent event)
onNodeMouseMove in interface com.ait.lienzo.client.core.event.NodeMouseMoveHandlerpublic void onNodeMouseUp(com.ait.lienzo.client.core.event.NodeMouseUpEvent event)
onNodeMouseUp in interface com.ait.lienzo.client.core.event.NodeMouseUpHandlerpublic 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.Layerpublic 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.Layerpublic com.ait.lienzo.client.core.shape.Layer batch(GridLayerRedrawManager.PrioritizedCommand command)
GridLayerpublic Set<com.ait.lienzo.client.core.shape.IPrimitive<?>> getGridWidgetConnectors()
GridLayerGridWidget together.getGridWidgetConnectors in interface GridLayerSet 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.Layerchild - Primitive to add to the Layerpublic void register(GridWidget gridWidget)
GridWidgetRegistryGridWidgetregister in interface GridWidgetRegistrygridWidget - The GridWidget to registerpublic void refreshGridWidgetConnectors()
GridLayerGridWidget together.refreshGridWidgetConnectors in interface GridLayerpublic 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.Layerchild - 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.Layerchild - Primitive to remove from the Layerpublic void deregister(GridWidget gridWidget)
GridWidgetRegistryGridWidgetderegister in interface GridWidgetRegistrygridWidget - 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.Layerpublic void select(GridWidget selectedGridWidget)
select in interface GridSelectionManagerpublic void selectLinkedColumn(GridColumn<?> selectedGridColumn)
selectLinkedColumn in interface GridSelectionManagerpublic void flipToGridWidget(GridWidget gridWidget)
GridLayerflipToGridWidget in interface GridLayergridWidget - The GridWidget to move into view.public void scrollToGridWidget(GridWidget gridWidget)
GridLayerscrollToGridWidget in interface GridLayergridWidget - The GridWidget to scroll into view.public Set<GridWidget> getGridWidgets()
getGridWidgets in interface GridSelectionManagerpublic void enterPinnedMode(GridWidget gridWidget, com.google.gwt.user.client.Command onStartCommand)
GridPinnedModeManagerenterPinnedMode in interface GridPinnedModeManagergridWidget - GridWidget to "pin"onStartCommand - Command to execute on start of entry to "pinned" modepublic void exitPinnedMode(com.google.gwt.user.client.Command onCompleteCommand)
GridPinnedModeManagerexitPinnedMode in interface GridPinnedModeManageronCompleteCommand - Command to execute on completion of exiting "pinned" modepublic void updatePinnedContext(GridWidget gridWidget) throws IllegalStateException
GridPinnedModeManagerupdatePinnedContext in interface GridPinnedModeManagergridWidget - GridWidget to "pin"IllegalStateException - If "pinned" mode has not been entered.public GridPinnedModeManager.PinnedContext getPinnedContext()
GridPinnedModeManagergetPinnedContext in interface GridPinnedModeManagerpublic boolean isGridPinned()
IsPinnedModeAwareisGridPinned in interface IsPinnedModeAwarepublic TransformMediator getDefaultTransformMediator()
GridPinnedModeManagergetDefaultTransformMediator in interface GridPinnedModeManagerpublic void addOnEnterPinnedModeCommand(com.google.gwt.user.client.Command command)
addOnEnterPinnedModeCommand in interface GridPinnedModeManagerpublic void addOnExitPinnedModeCommand(com.google.gwt.user.client.Command command)
addOnExitPinnedModeCommand in interface GridPinnedModeManagerpublic Bounds getVisibleBounds()
GridLayergetVisibleBounds in interface GridLayerpublic GridWidgetDnDHandlersState getGridWidgetHandlersState()
GridLayergetGridWidgetHandlersState in interface GridLayerpublic com.google.gwt.user.client.ui.AbsolutePanel getDomElementContainer()
GridLayergetDomElementContainer in interface GridLayerpublic void setDomElementContainer(com.google.gwt.user.client.ui.AbsolutePanel domElementContainer)
GridLayersetDomElementContainer in interface GridLayerdomElementContainer - The overlay panelCopyright © 2012–2020 JBoss by Red Hat. All rights reserved.