Package Gnumed :: Package timelinelib :: Package canvas :: Module timelinecanvas :: Class TimelineCanvas |
[frames] | no frames]

# Class TimelineCanvas

source code

    wx.Panel --+
               |
              TimelineCanvas

This is the surface on which a timeline is drawn. It is also the object that handles user input events such as mouse and keyboard actions.

Instance Methods
__init__(self, parent) | source code
GetAppearance(self) | source code
SetAppearance(self, appearance) | source code
GetDividerPosition(self) | source code
SetDividerPosition(self, position) | source code
GetHiddenEventCount(self) | source code
Scroll(self, factor) | source code
DrawSelectionRect(self, cursor) | source code
RemoveSelectionRect(self) | source code
UseFastDraw(self, use) | source code
GetHScrollAmount(self) | source code
SetHScrollAmount(self, amount) | source code
IncrementEventTextFont(self) | source code
DecrementEventTextFont(self) | source code
SetPeriodSelection(self, period) | source code
Snap(self, time) | source code
PostEvent(self, event) | source code
SetEventBoxDrawer(self, event_box_drawer) | source code
SetEventSelected(self, event, is_selected) | source code
ClearSelectedEvents(self) | source code
SelectAllEvents(self) | source code
IsEventSelected(self, event) | source code
SetHoveredEvent(self, event) | source code
GetHoveredEvent(self) | source code
GetSelectedEvent(self) | source code
GetSelectedEvents(self) | source code
GetClosestOverlappingEvent(self, event, up) | source code
GetTimeType(self) | source code
GetDb(self) | source code
IsReadOnly(self) | source code
GetEventAtCursor(self, prefer_container=False) | source code
GetEventAt(self, cursor, prefer_container=False) | source code
SelectEventsInRect(self, rect) | source code
GetEventWithHitInfoAt(self, cursor, keyboard=Keyboard()) | source code
GetBalloonAtCursor(self) | source code
GetBalloonAt(self, cursor) | source code
EventHasStickyBalloon(self, event) | source code
SetEventStickyBalloon(self, event, is_sticky) | source code
GetTimeAt(self, x) | source code
set_timeline(self, timeline) | source code
get_view_properties(self) | source code
SaveAsPng(self, path) | source code
SaveAsSvg(self, path) | source code
get_filtered_events(self, search_target) | source code
get_time_period(self) | source code
Navigate(self, navigation_fn) | source code
Redraw(self) | source code
EventIsPeriod(self, event) | source code
redraw_surface(self, fn_draw) | source code
set_select_period_cursor(self) | source code
set_size_cursor(self) | source code
set_move_cursor(self) | source code
set_default_cursor(self) | source code
zoom_in(self) | source code
zoom_out(self) | source code
Zoom(self, direction, x) zoom time line at position x | source code
VertZoomIn(self) | source code
VertZoomOut(self) | source code
ZoomVertically(self, direction) | source code
Scrollvertically(self, direction) | source code
SetStartTime(self, evt) | source code
ZoomHorizontallyOnMouseWheel(self, evt) | source code
ZoomVerticallyOnMouseWheel(self, evt) | source code
ScrollHorizontallyOnMouseWheel(self, evt) | source code
ScrollVerticallyOnMouseWheel(self, evt) | source code
SpecialScrollVerticallyOnMouseWheel(self, evt) | source code
DisplayBalloons(self, evt) | source code
GetTimelineInfoText(self, evt) | source code
SetCursorShape(self, evt) | source code
CenterAtCursor(self, evt) | source code
ToggleEventSelection(self, evt) | source code
InitDragScroll(self, direction=wx.HORIZONTAL) | source code
StartDragScroll(self, evt) | source code
DragScroll(self, evt) | source code
StopDragScroll(self) | source code
InitDragEventSelect(self) | source code
StartDragEventSelect(self, evt) | source code
DragEventSelect(self, evt) | source code
GetCursor(self, evt) | source code
StopDragEventSelect(self) | source code
InitZoomSelect(self) | source code
StartZoomSelect(self, evt) | source code
DragZoom(self, evt) | source code
StopDragZoom(self) | source code
InitDragPeriodSelect(self) | source code
StartDragPeriodSelect(self, evt) | source code
DragPeriodSelect(self, evt) | source code
StopDragPeriodSelect(self) | source code
InitDrag(self, scroll=None, zoom=None, period_select=None, event_select=None) | source code
CallDragMethod(self, index, evt) | source code
highligt_event(self, event, clear=False) | source code

Class Variables
| HORIZONTAL = `8`
| VERTICAL = `16`
| BOTH = `32`
| START = `0`
| DRAG = `1`
| STOP = `2`