Naanou.Vis
Class Viewer

Can show and animate a circle, Dots and interconnections

Field Summary
Naanou.Vis.Circle circle
System.ComponentModel.Container components
Naanou.Vis.Dot lastHovered
int refreshRate
System.Threading.Thread timerThread

Fields inherited from class System.Windows.Forms.ScrollableControl
scrollPosition

Fields inherited from class System.Windows.Forms.Control
window

Constructor Summary
Viewer()
         Constructor

Property Summary
bool Animating
         Gets whether viewer is animating
Naanou.Vis.Circle Circle
         Gets or sets the Naanou.Vis.Viewer.Circle to use
int RefreshRate
         Gets or sets the animation refresh rate (milliseconds)

Properties inherited from class System.Windows.Forms.UserControl
DefaultSize, Text

Properties inherited from class System.Windows.Forms.ContainerControl
ActiveControl, BindingContext, CreateParams, ParentForm

Properties inherited from class System.Windows.Forms.ScrollableControl
AutoScroll, AutoScrollMargin, AutoScrollMinSize, AutoScrollPosition, DisplayRectangle, DockPadding, HScroll, VScroll

Properties inherited from class System.Windows.Forms.Control
AccessibilityObject, AccessibleDefaultActionDescription, AccessibleDescription, AccessibleName, AccessibleRole, AllowDrop, Anchor, BackColor, BackgroundImage, Bottom, Bounds, CanFocus, CanSelect, Capture, CausesValidation, ClientRectangle, ClientSize, CompanyName, ContainsFocus, ContextMenu, Controls, Created, Cursor, DataBindings, DefaultImeMode, Disposing, Dock, Enabled, Focused, Font, FontHeight, ForeColor, Handle, HasChildren, Height, ImeMode, InvokeRequired, IsAccessible, IsDisposed, IsHandleCreated, Left, Location, Name, Parent, ProductName, ProductVersion, RecreatingHandle, Region, RenderRightToLeft, ResizeRedraw, Right, RightToLeft, ShowFocusCues, ShowKeyboardCues, Site, Size, TabIndex, TabStop, Tag, Top, TopLevelControl, Visible, Width, WindowTarget

Properties inherited from class System.ComponentModel.Component
Container, DesignMode, Events

Method Summary
void AnimationImpl()
void Dispose(bool disposing)
         Clean up any resources being used.
void InitializeComponent()
         Required method for Designer support - do not modify the contents of this method with the code editor.
void OnMouseMove(object sender, System.Windows.Forms.MouseEventArgs e)
void OnMouseUp(object sender, System.Windows.Forms.MouseEventArgs e)
void Paint(System.Drawing.Graphics g)
         Paints
void Repaint()
         Repaints a frame
void StartAnimation()
         Starts animation
void StopAnimation()
         Halts animation

Methods inherited from class System.Windows.Forms.UserControl
OnCreateControl, OnLoad, OnMouseDown, WndProc

Methods inherited from class System.Windows.Forms.ContainerControl
AdjustFormScrollbars, IContainerControl.ActivateControl, OnControlRemoved, ProcessDialogChar, ProcessDialogKey, ProcessMnemonic, ProcessTabKey, Select, UpdateDefaultButton, Validate

Methods inherited from class System.Windows.Forms.ScrollableControl
GetScrollState, OnLayout, OnMouseWheel, OnVisibleChanged, ScaleCore, ScrollControlIntoView, SetAutoScrollMargin, SetDisplayRectLocation, SetScrollState

Methods inherited from class System.Windows.Forms.Control
AccessibilityNotifyClients, AssignParent, BeginInvoke, BeginInvoke, BringToFront, CanSelectCore, Contains, CreateAccessibilityInstance, CreateControl, CreateControlsInstance, CreateGraphics, CreateHandle, DefWndProc, DestroyHandle, DisposeAxControls, DoDragDrop, EndInvoke, FindForm, Focus, FocusInternal, GetChildAtPoint, GetContainerControl, GetNextControl, GetStyle, GetTopLevel, GetVisibleCore, Hide, InitializeDCForWmCtlColor, InitLayout, Invalidate, Invalidate, Invalidate, Invalidate, Invalidate, Invalidate, Invoke, Invoke, InvokeGotFocus, InvokeLostFocus, InvokeOnClick, InvokePaint, InvokePaintBackground, IsInputChar, IsInputKey, NotifyInvalidate, NotifyValidationResult, OnBackColorChanged, OnBackgroundImageChanged, OnBindingContextChanged, OnCausesValidationChanged, OnChangeUICues, OnClick, OnContextMenuChanged, OnControlAdded, OnCursorChanged, OnDockChanged, OnDoubleClick, OnDragDrop, OnDragEnter, OnDragLeave, OnDragOver, OnEnabledChanged, OnEnter, OnFontChanged, OnForeColorChanged, OnGiveFeedback, OnGotFocus, OnHandleCreated, OnHandleDestroyed, OnHelpRequested, OnImeModeChanged, OnInvalidated, OnKeyDown, OnKeyPress, OnKeyUp, OnLeave, OnLocationChanged, OnLostFocus, OnMouseEnter, OnMouseHover, OnMouseLeave, OnMouseMove, OnMouseUp, OnMove, OnNotifyMessage, OnPaint, OnPaintBackground, OnParentBackColorChanged, OnParentBackgroundImageChanged, OnParentBindingContextChanged, OnParentChanged, OnParentEnabledChanged, OnParentFontChanged, OnParentForeColorChanged, OnParentRightToLeftChanged, OnParentVisibleChanged, OnQueryContinueDrag, OnResize, OnRightToLeftChanged, OnSizeChanged, OnStyleChanged, OnSystemColorsChanged, OnTabIndexChanged, OnTabStopChanged, OnTextChanged, OnValidated, OnValidating, PerformLayout, PerformLayout, PointToClient, PointToScreen, PreProcessMessage, ProcessCmdKey, ProcessKeyEventArgs, ProcessKeyMessage, ProcessKeyPreview, RaiseDragEvent, RaiseKeyEvent, RaiseMouseEvent, RaisePaintEvent, RecreateHandle, RecreateHandleCore, RectangleToClient, RectangleToScreen, Refresh, ResetBackColor, ResetBindings, ResetCursor, ResetFont, ResetForeColor, ResetImeMode, ResetMouseEventArgs, ResetRightToLeft, ResetText, ResumeLayout, ResumeLayout, RtlTranslateAlignment, RtlTranslateAlignment, RtlTranslateAlignment, RtlTranslateContent, RtlTranslateHorizontal, RtlTranslateLeftRight, Scale, Scale, Select, SelectNextControl, SendToBack, SetBounds, SetBounds, SetBoundsCore, SetClientSizeCore, SetStyle, SetTopLevel, SetVisibleCore, ShouldSerializeBackColor, ShouldSerializeCursor, ShouldSerializeFont, ShouldSerializeForeColor, ShouldSerializeImeMode, ShouldSerializeLocation, ShouldSerializeRightToLeft, ShouldSerializeSize, ShouldSerializeText, Show, SuspendLayout, UnsafeNativeMethods+IOleControl.FreezeEvents, UnsafeNativeMethods+IOleControl.GetControlInfo, UnsafeNativeMethods+IOleControl.OnAmbientPropertyChange, UnsafeNativeMethods+IOleControl.OnMnemonic, UnsafeNativeMethods+IOleInPlaceActiveObject.ContextSensitiveHelp, UnsafeNativeMethods+IOleInPlaceActiveObject.EnableModeless, UnsafeNativeMethods+IOleInPlaceActiveObject.GetWindow, UnsafeNativeMethods+IOleInPlaceActiveObject.OnDocWindowActivate, UnsafeNativeMethods+IOleInPlaceActiveObject.OnFrameWindowActivate, UnsafeNativeMethods+IOleInPlaceActiveObject.ResizeBorder, UnsafeNativeMethods+IOleInPlaceActiveObject.TranslateAccelerator, UnsafeNativeMethods+IOleInPlaceObject.ContextSensitiveHelp, UnsafeNativeMethods+IOleInPlaceObject.GetWindow, UnsafeNativeMethods+IOleInPlaceObject.InPlaceDeactivate, UnsafeNativeMethods+IOleInPlaceObject.ReactivateAndUndo, UnsafeNativeMethods+IOleInPlaceObject.SetObjectRects, UnsafeNativeMethods+IOleInPlaceObject.UIDeactivate, UnsafeNativeMethods+IOleObject.Advise, UnsafeNativeMethods+IOleObject.Close, UnsafeNativeMethods+IOleObject.DoVerb, UnsafeNativeMethods+IOleObject.EnumAdvise, UnsafeNativeMethods+IOleObject.EnumVerbs, UnsafeNativeMethods+IOleObject.GetClientSite, UnsafeNativeMethods+IOleObject.GetClipboardData, UnsafeNativeMethods+IOleObject.GetExtent, UnsafeNativeMethods+IOleObject.GetMiscStatus, UnsafeNativeMethods+IOleObject.GetMoniker, UnsafeNativeMethods+IOleObject.GetUserClassID, UnsafeNativeMethods+IOleObject.GetUserType, UnsafeNativeMethods+IOleObject.InitFromData, UnsafeNativeMethods+IOleObject.IsUpToDate, UnsafeNativeMethods+IOleObject.OleUpdate, UnsafeNativeMethods+IOleObject.SetClientSite, UnsafeNativeMethods+IOleObject.SetColorScheme, UnsafeNativeMethods+IOleObject.SetExtent, UnsafeNativeMethods+IOleObject.SetHostNames, UnsafeNativeMethods+IOleObject.SetMoniker, UnsafeNativeMethods+IOleObject.Unadvise, UnsafeNativeMethods+IOleWindow.ContextSensitiveHelp, UnsafeNativeMethods+IOleWindow.GetWindow, UnsafeNativeMethods+IPersist.GetClassID, UnsafeNativeMethods+IPersistPropertyBag.GetClassID, UnsafeNativeMethods+IPersistPropertyBag.InitNew, UnsafeNativeMethods+IPersistPropertyBag.Load, UnsafeNativeMethods+IPersistPropertyBag.Save, UnsafeNativeMethods+IPersistStorage.GetClassID, UnsafeNativeMethods+IPersistStorage.HandsOffStorage, UnsafeNativeMethods+IPersistStorage.InitNew, UnsafeNativeMethods+IPersistStorage.IsDirty, UnsafeNativeMethods+IPersistStorage.Load, UnsafeNativeMethods+IPersistStorage.Save, UnsafeNativeMethods+IPersistStorage.SaveCompleted, UnsafeNativeMethods+IPersistStreamInit.GetClassID, UnsafeNativeMethods+IPersistStreamInit.GetSizeMax, UnsafeNativeMethods+IPersistStreamInit.InitNew, UnsafeNativeMethods+IPersistStreamInit.IsDirty, UnsafeNativeMethods+IPersistStreamInit.Load, UnsafeNativeMethods+IPersistStreamInit.Save, UnsafeNativeMethods+IQuickActivate.GetContentExtent, UnsafeNativeMethods+IQuickActivate.QuickActivate, UnsafeNativeMethods+IQuickActivate.SetContentExtent, UnsafeNativeMethods+IViewObject.Draw, UnsafeNativeMethods+IViewObject.Freeze, UnsafeNativeMethods+IViewObject.GetAdvise, UnsafeNativeMethods+IViewObject.GetColorSet, UnsafeNativeMethods+IViewObject.SetAdvise, UnsafeNativeMethods+IViewObject.Unfreeze, UnsafeNativeMethods+IViewObject2.Draw, UnsafeNativeMethods+IViewObject2.Freeze, UnsafeNativeMethods+IViewObject2.GetAdvise, UnsafeNativeMethods+IViewObject2.GetColorSet, UnsafeNativeMethods+IViewObject2.GetExtent, UnsafeNativeMethods+IViewObject2.SetAdvise, UnsafeNativeMethods+IViewObject2.Unfreeze, Update, UpdateBounds, UpdateBounds, UpdateBounds, UpdateStyles, UpdateStylesCore, UpdateZOrder

Methods inherited from class System.ComponentModel.Component
Dispose, Finalize, GetService, ToString

Methods inherited from class System.MarshalByRefObject
CreateObjRef, GetLifetimeService, InitializeLifetimeService

Methods inherited from class System.Object
Equals, GetHashCode, GetType, MemberwiseClone

Event Summary
Naanou.Vis.DotClickedEventHandler DotClicked
Naanou.Vis.DotHoveredEventHandler DotHovered

Events inherited from class System.Windows.Forms.UserControl
Load

Events inherited from class System.Windows.Forms.Control
BackColorChanged, BackgroundImageChanged, BindingContextChanged, CausesValidationChanged, ChangeUICues, Click, ContextMenuChanged, ControlAdded, ControlRemoved, CursorChanged, DockChanged, DoubleClick, DragDrop, DragEnter, DragLeave, DragOver, EnabledChanged, Enter, FontChanged, ForeColorChanged, GiveFeedback, GotFocus, HandleCreated, HandleDestroyed, HelpRequested, ImeModeChanged, Invalidated, KeyDown, KeyPress, KeyUp, Layout, Leave, LocationChanged, LostFocus, MouseDown, MouseEnter, MouseHover, MouseLeave, MouseMove, MouseUp, MouseWheel, Move, Paint, ParentChanged, QueryAccessibilityHelp, QueryContinueDrag, Resize, RightToLeftChanged, SizeChanged, StyleChanged, SystemColorsChanged, TabIndexChanged, TabStopChanged, TextChanged, Validated, Validating, VisibleChanged

Events inherited from class System.ComponentModel.Component
Disposed


Field Detail

circle

private Naanou.Vis.Circle circle


components

private System.ComponentModel.Container components


lastHovered

private Naanou.Vis.Dot lastHovered


refreshRate

private int refreshRate


timerThread

private System.Threading.Thread timerThread

Constructor Detail

Viewer

public Viewer()

Constructor

Property Detail

Animating

public bool Animating

Gets whether viewer is animating


Circle

public Naanou.Vis.Circle Circle

Gets or sets the Naanou.Vis.Viewer.Circle to use


RefreshRate

public int RefreshRate

Gets or sets the animation refresh rate (milliseconds)

Method Detail

AnimationImpl

private void AnimationImpl()


Dispose

protected void Dispose(bool disposing)

Clean up any resources being used.


InitializeComponent

private void InitializeComponent()

Required method for Designer support - do not modify the contents of this method with the code editor.


OnMouseMove

private void OnMouseMove(object sender,
                         System.Windows.Forms.MouseEventArgs e)


OnMouseUp

private void OnMouseUp(object sender,
                       System.Windows.Forms.MouseEventArgs e)


Paint

private void Paint(System.Drawing.Graphics g)

Paints

Parameters:
g - Graphics surface

Repaint

private void Repaint()

Repaints a frame


StartAnimation

public void StartAnimation()

Starts animation


StopAnimation

public void StopAnimation()

Halts animation

Event Detail

DotClicked

public Naanou.Vis.DotClickedEventHandler DotClicked


DotHovered

public Naanou.Vis.DotHoveredEventHandler DotHovered