Packagecom.yworks.ui
Classpublic class GraphOverviewComponent
InheritanceGraphOverviewComponent Inheritance CanvasComponent Inheritance mx.core.UIComponent

Convenience component implementation that shows an overview of an IGraph contained in another GraphCanvasComponent

This control uses a OverviewGraphPaintable to display the graph in a preview mode and an OverviewInputMode to allow for easily navigating in the GraphCanvasComponent.

See also

GraphCanvasComponent
com.yworks.graph.drawing.OverviewGraphPaintable
com.yworks.canvas.input.OverviewInputMode


Public Properties
 PropertyDefined by
 InheritedautoDrag : Boolean
Gets or sets a property that causes the canvas to automatically pan the view when the mouse gets dragged within the autoDragInsets of the canvas.
CanvasComponent
 InheritedautoDragInsets : ImmutableRectangle
Gets or sets the auto drag insets.
CanvasComponent
 InheritedautoMouseWheelZoom : Boolean
Determines whether the mouse wheel should be used for zooming.
CanvasComponent
 InheritedbackgroundAlpha : Number
Sets the alpha value of the canvas background color.
CanvasComponent
 InheritedbackgroundColor : uint
Sets the background color of the canvas.
CanvasComponent
 Inheritedcenter : Point
The world coordinate at the center of the canvas component.
CanvasComponent
 InheritedcontentRect : Rectangle
Gets and sets the Rectangle in world coordinates that holds the contents.
CanvasComponent
 Inheritedcontext : ICanvasContext
Returns an implementation of ICanvasContext that describes the state of this canvas control.
CanvasComponent
 Inheritedcursor : Cursor
Get or set the cursor instance that will be displayed for this canvas.
CanvasComponent
 InheriteddoubleClickSize : ISize
The size of the area within which the user must click twice for the two clicks to be considered a double-click.
CanvasComponent
 InheriteddoubleClickTime : int
The time that may elapse between two consecutive mouse clicks so the last click is still considered a double click.
CanvasComponent
 InheriteddragSize : ISize
The area in view coordinates the mouse may stay in before a movement is considered a drag.
CanvasComponent
 InheriteddragTime : int
The value of the drag time.
CanvasComponent
 Inheritededitable : Boolean
Property that sets the editable state of this canvas.
CanvasComponent
  graph : IGraph
[write-only] The graph that is rendered in the overview.
GraphOverviewComponent
  graphCanvas : GraphCanvasComponent
The client control that will be used to retrieve the graph from and that will be used for navigating.
GraphOverviewComponent
  graphPaintable : OverviewGraphPaintable
The OverviewGraphPaintable that is used to render the overview graph.
GraphOverviewComponent
 InheritedhitTestRadius : Number
Specifies the radius of the area around the mouse in view coordinates in which an IHitTestable may lie to be considered a valid hit.
CanvasComponent
 InheritedhorizontalLineScrollSize : Number
The amount to scroll when an arrow button of the horizontal scrollbar is pressed, in pixels.
CanvasComponent
 InheritedhorizontalPageScrollSize : Number
Specifies the amount to scroll when the horizontal scroll bar track is pressed, in pixels.
CanvasComponent
 InheritedhorizontalScrollPolicy : String
Specifies the visibility policy for the horizontal scrollbar.
CanvasComponent
 InheritedhorizontalScrollPosition : Number
The current position of the horizontal scroll bar.
CanvasComponent
 InheritedinputMode : IInputMode
Specifies the single IInputMode instance that shall be installed for this canvas.
CanvasComponent
 InheritedinputModeContext : IInputModeContext
The InputModeContext property.
CanvasComponent
 InheritedinputModeContextLookupChain : LookupChain
Retrieves the LookupChain that can be used to decorate the lookup call in the inputModeContext.
CanvasComponent
 InheritedinputModes : List
Returns the internal list of currently installed IInputModes.
CanvasComponent
 InheritedlastCanvasMouseEvent : CanvasMouseEvent
Gets the last CanvasMouseEvent that was dispatched by this instance.
CanvasComponent
 InheritedmaxZoom : Number
The maxZoom property.
CanvasComponent
 InheritedminZoom : Number
The minZoom property.
CanvasComponent
 InheritedmouseWheelZoomFactor : Number
The factor by which the zoom level changes when the mouse wheel is turned.
CanvasComponent
  overviewInputMode : OverviewInputMode
The OverviewInputMode that is used to navigate the client control.
GraphOverviewComponent
 InheritedtreeDirty : Boolean
Property that determines whether the whole canvasObjectTree is redrawn upon the next invocation of updateDisplayList().
CanvasComponent
 InheritedtreePartiallyDirty : Boolean
Property that determines whether the canvasObjectTree is redrawn partially upon the next invocation of updateDisplayList().
CanvasComponent
 InheritedverticalLineScrollSize : Number
The amount to scroll when an arrow button of the vertical scrollbar is pressed, in pixels.
CanvasComponent
 InheritedverticalPageScrollSize : Number
Specifies the amount to scroll when the vertical scroll bar track is pressed, in pixels.
CanvasComponent
 InheritedverticalScrollPolicy : String
Specifies the visibility policy for the vertical scrollbar.
CanvasComponent
 InheritedverticalScrollPosition : Number
The current position of the vertical scroll bar.
CanvasComponent
 InheritedviewPoint : Point
The current view point.
CanvasComponent
 InheritedviewPort : IRectangle
Returns the currently visible viewing region in world coordinates.
CanvasComponent
 Inheritedzoom : Number
The zoom factor for this canvas control.
CanvasComponent
 InheritedzoomIfCanvasHit : Boolean
Whether the mouse wheel triggers zooming whenever the mouse is over the canvas area (true) or whether the canvas needs focus to trigger zooming (false).
CanvasComponent
Protected Properties
 PropertyDefined by
 Inherited_viewPoint : Point
CanvasComponent
Public Methods
 MethodDefined by
  
Creates a new instance that is initially bound to the given control.
GraphOverviewComponent
 Inherited
addCanvasObject(userObject:Object, descriptor:ICanvasObjectDescriptor = null, group:ICanvasObjectGroup = null):ICanvasObject
Adds an element to the internal canvas object tree to the specified group.
CanvasComponent
 Inherited
Adds a new ICanvasObjectGroup to the root of the canvas object tree.
CanvasComponent
 Inherited
Adds a new ICanvasObjectGroup to the specified group in the current canvas object tree.
CanvasComponent
 Inherited
Adds an IPaintable instance to the scene graph using CanvasObjectDescriptor.Instance as the ICanvasObjectDescriptor.
CanvasComponent
 Inherited
collectCanvasObjects(x:Number, y:Number, elementFoundCallback:Function):void
Collects all canvas object instances that are hit at the given coordinate set.
CanvasComponent
 Inherited
createSprite():Sprite
Creates a sprite containing a complete copy of the current canvas object tree.
CanvasComponent
 Inherited
fitContent():void
Adjusts the view port to fully encompass the current content rectangle.
CanvasComponent
 Inherited
Updates the content rectangle and adjusts the viewport to encompass the contents.
CanvasComponent
 Inherited
forceRepaint():void
Invalidates this canvas component and causes a repaint of all display objects that are visible in this canvas component.
CanvasComponent
 Inherited
getCanvasObject(worldX:Number, worldY:Number):ICanvasObject
Returns the top most canvas object instance that is hit at the given coordinate set.
CanvasComponent
 Inherited
getCanvasObjects(worldX:Number, worldY:Number):Iterable
Returns a list of all canvas objects in hit order at the given world coordinate location.
CanvasComponent
 Inherited
getCanvasRect():Rectangle
Returns a rectangle defined by the available space for displaying the CanvasObjectTree within this Component, in stage coordinates.
CanvasComponent
 Inherited
getHits(stageX:Number, stageY:Number, useShape:Boolean = true):Array
Returns an array of ICanvasObjects that are hit by the given coords.
CanvasComponent
  
Marks a component so that its updateDisplayList() method gets called during a later screen update.
GraphOverviewComponent
 Inherited
isCanvasHit(target:DisplayObject, stageX:Number, stageY:Number):Boolean
Checks whether the point at stageX,stageY is within the canvas bounds and target is a child of the canvas.
CanvasComponent
 Inherited
iterateHits(x:Number, y:Number, root:ICanvasObjectGroup = null, filter:Function = null):Iterator
Iterates all hit elements in the canvas below the given group that are accepted by a given filter.
CanvasComponent
 Inherited
lookup(type:Class):Object
CanvasComponent
 Inherited
print(bitmap:Boolean = true, borderSize:uint = 5, backgroundFill:* = 0xFFFFFF):void
Prints the current canvas object tree.
CanvasComponent
 Inherited
Converts a point in world coordinates to view coordinates.
CanvasComponent
 Inherited
Converts a point in view coordinates to world coordinates.
CanvasComponent
 Inherited
updateContentRect(margins:IRectangle = null):void
Updates the contentRect to encompass the bounds by all elements in the current scene graph upon the next invocation of updateDisplayList.
CanvasComponent
 Inherited
zoomTo(px:Number, py:Number, theZoom:Number):void
Sets the zoom level and view port center to the given values.
CanvasComponent
Protected Methods
 MethodDefined by
 Inherited
Adjusts the mouse cursor based on the given mouse event and the cursor property.
CanvasComponent
 Inherited
CanvasComponent
  
Factory method that creates the paintable that renders the preview of the graph.
GraphOverviewComponent
 Inherited
Factory method for the InputModeContext property.
CanvasComponent
 Inherited
disposeListeners(eventDispatcher:IEventDispatcher):void
Unregister all event listeners that were registered with the stage.
CanvasComponent
 Inherited
initListeners(eventDispatcher:IEventDispatcher):void
Initialize all event listeners that should be registered with the stage.
CanvasComponent
 Inherited
inputModeContextLookup(type:Class):Object
Callback that is used by the default implementation of inputModeContext to resolve lookup calls.
CanvasComponent
 Inherited
If the autoMouseWheelZoom property is set to true, this method will adjust the current zoom level.
CanvasComponent
 Inherited
onAdd(event:FlexEvent):void
Called when the component is added to the display list.
CanvasComponent
 Inherited
onAutoDragChanged(oldValue:Boolean, newValue:Boolean):void
Called when the autoDrag property changes.
CanvasComponent
 Inherited
Called when the autoDragInsets property changes.
CanvasComponent
 Inherited
Callback method that is called when the mouse has been clicked.
CanvasComponent
 Inherited
Callback method that is called when a mouse button has been pressed.
CanvasComponent
 Inherited
Callback method that is called when the mouse gets dragged.
CanvasComponent
 Inherited
Callback method that is called when the mouse has been moved and the mouse button has not been pressed.
CanvasComponent
 Inherited
Callback method that is called when a mouse button has been released.
CanvasComponent
 Inherited
Callback method that is called when the mouse wheel has been turned.
CanvasComponent
 Inherited
Callback that is invoked when the ContentRect property changes.
CanvasComponent
 Inherited
Callback that is called when the editable property changes.
CanvasComponent
 Inherited
onHitTestRadiusChanged(oldValue:Number, newValue:Number):void
Callback that is invoked when the hitTestRadius property changed.
CanvasComponent
 Inherited
onInputModeChanged(oldValue:IInputMode, newValue:IInputMode):void
Callback that is invoked when the inputMode property changes.
CanvasComponent
 Inherited
onInputModeContextChanged(oldInputModeContext:IInputModeContext, newInputModeContext:IInputModeContext):void
Called when the inputModeContext property value changes and after initialization of the field.
CanvasComponent
 Inherited
onMouseDown(evt:MouseEvent):void
Tries to gain the focus, if the canvas area was hit.
CanvasComponent
 Inherited
onMouseMove(evt:MouseEvent):void
Calls onCanvasMouseDragged or onCanvasMouseMoved with the corresponding CanvasMouseEvent.
CanvasComponent
 Inherited
onMouseUp(evt:MouseEvent):void
Calls onCanvasMouseUp and possibly onCanvasMouseClicked with the corresponding CanvasMouseEvent.
CanvasComponent
 Inherited
onMouseWheel(evt:MouseEvent):void
Calls onCanvasMouseWheel with the corresponding CanvasMouseEvent.
CanvasComponent
 Inherited
onRemove(event:FlexEvent):void
Called when the component is removed from the display list.
CanvasComponent
 Inherited
Callback that is invoked when the view port property changes.
CanvasComponent
 Inherited
updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
CanvasComponent
 Inherited
updateTree(partially:Boolean = false):void
Repaints the display list
CanvasComponent
 Inherited
update the viewport bounds upon the next invocation of updateDisplayList.
CanvasComponent
Events
 EventSummaryDefined by
 Inherited Dispatched when the autoDrag property changes.CanvasComponent
 Inherited Dispatched when the autoDragInsets property changes.CanvasComponent
 Inherited Dispatched when the mouse is clicked.CanvasComponent
 Inherited Dispatched when the mouse is double clicked.CanvasComponent
 Inherited Dispatched when the mouse is pressed.CanvasComponent
 Inherited Dispatched when the mouse is dragged.CanvasComponent
 Inherited Dispatched when the mouse is moved.CanvasComponent
 Inherited Dispatched when the mouse is released.CanvasComponent
 Inherited Dispatched when the mousewheel moves.CanvasComponent
 Inherited Dispatched when the contentRect property changes.CanvasComponent
 Inherited Dispatched when the editable property changes.CanvasComponent
 Inherited Dispatched when the inputMode property changes.CanvasComponent
 Inherited Dispatched when the inputModeContext property changes.CanvasComponent
 Inherited Dispatched when the canvas has been invalidated.CanvasComponent
 Inherited Dispatched when one of the scrollbars changes its scroll position.CanvasComponent
 Inherited Dispatched when the viewPoint property changes.CanvasComponent
 Inherited Dispatched when the viewPort property changes.CanvasComponent
 Inherited Dispatched when the zoom property changes.CanvasComponent
Public Constants
 ConstantDefined by
 InheritedAUTO_DRAG_CHANGED : String = "autoDragChanged"
[static]
CanvasComponent
 InheritedAUTO_DRAG_INSETS_CHANGED : String = "autoDragInsetsChanged"
[static]
CanvasComponent
 InheritedCONTENT_RECT_CHANGED : String = "contentRectChanged"
[static]
CanvasComponent
 InheritedEDITABLE_CHANGED : String = "editableChanged"
[static]
CanvasComponent
 InheritedINPUT_MODE_CHANGED : String = "inputModeChanged"
[static]
CanvasComponent
 InheritedINPUT_MODE_CONTEXT_CHANGED : String = "inputModeContextChanged"
[static]
CanvasComponent
 InheritedINVALIDATED : String = "invalidated"
[static]
CanvasComponent
 InheritedVIEWPORT_CHANGED : String = "viewPortChanged"
[static]
CanvasComponent
Property detail
graphproperty
graph:IGraph  [write-only]

The graph that is rendered in the overview.

Implementation
    public function set graph(value:IGraph):void
graphCanvasproperty 
graphCanvas:GraphCanvasComponent  [read-write]

The client control that will be used to retrieve the graph from and that will be used for navigating.

Implementation
    public function get graphCanvas():GraphCanvasComponent
    public function set graphCanvas(value:GraphCanvasComponent):void
graphPaintableproperty 
graphPaintable:OverviewGraphPaintable  [read-write]

The OverviewGraphPaintable that is used to render the overview graph.

Implementation
    public function get graphPaintable():OverviewGraphPaintable
    public function set graphPaintable(value:OverviewGraphPaintable):void
overviewInputModeproperty 
overviewInputMode:OverviewInputMode  [read-write]

The OverviewInputMode that is used to navigate the client control.

Implementation
    public function get overviewInputMode():OverviewInputMode
    public function set overviewInputMode(value:OverviewInputMode):void
Constructor detail
GraphOverviewComponent()constructor
public function GraphOverviewComponent(canvas:GraphCanvasComponent = null)

Creates a new instance that is initially bound to the given control.

If the canvas parameter is null, either the graphCanvas or graph property has to be set to be useful.

Parameters
canvas:GraphCanvasComponent (default = null) — The GraphCanvasComponent to create an overview for.
Method detail
createGraphPaintable()method
protected function createGraphPaintable(graph:IGraph):OverviewGraphPaintable

Factory method that creates the paintable that renders the preview of the graph.

Parameters
graph:IGraph — The graph to draw.

Returns
OverviewGraphPaintable — A overview paintable.
invalidateDisplayList()method 
public override function invalidateDisplayList():void

Marks a component so that its updateDisplayList() method gets called during a later screen update.