Documentation
¶
Index ¶
- func MaxInt64(a, b int64) int64
- func MinInt64(a, b int64) int64
- type AllowedSelection
- type Area
- func (c *Area) Dispose()
- func (c *Area) Draw(ctx ui.DrawContext, leftScaleWidth int, hScale *HorizontalScale, width int, ...)
- func (c *Area) MouseDown(x, y int) bool
- func (c *Area) MouseMove(x, y int) bool
- func (c *Area) MouseUp(x, y int) bool
- func (c *Area) RemoveSeriesByIndex(index int)
- func (c *Area) Series() []*Series
- func (c *Area) SetHeight(h int)
- func (c *Area) SetHighlighting(highlighting bool)
- func (c *Area) SetShowQualities(showQualities bool)
- func (c *Area) SetUnitedScale(unitedVerticalScale bool)
- func (c *Area) ShowQualities() bool
- func (c *Area) TimeChart() *TimeChart
- func (c *Area) UnitedScale() bool
- type AreaTopHeader
- type ChartPoint
- type DataProvider
- type DataProviderItem
- type DataProviderTimeLevel
- type HorizontalScale
- func (c *HorizontalScale) Dispose()
- func (c *HorizontalScale) Draw(ctx ui.DrawContext, xOffset int, yOffset int, width int)
- func (c *HorizontalScale) MouseDown(event *uievents.MouseDownEvent)
- func (c *HorizontalScale) ResetToDefaultRange()
- func (c *HorizontalScale) SetDefaultDisplayRange(defaultDisplayMin, defaultDisplayMax int64)
- func (c *HorizontalScale) SetDisplayRange(displayMin, displayMax int64)
- type IDataProvider
- type InteractiveSelectionModifier
- type LoadingDiapason
- type ResizingDirection
- type ResizingSelection
- type ScaleValue
- type Selection
- type SelectionAxes
- type Series
- func (c *Series) AddValue(v Value)
- func (c *Series) Clear()
- func (c *Series) Color() color.Color
- func (c *Series) Dispose()
- func (c *Series) Draw(ctx ui.DrawContext, scaleXOffset int, xOffset int, height int, ...)
- func (c *Series) DrawBottomHeader(ctx ui.DrawContext, xOffset int, yOffset int, seriesIndex int, ...)
- func (c *Series) Id() string
- func (c *Series) RemoveItemsByTime(timeFrom, timeTo int64)
- func (c *Series) SetColor(color color.Color)
- func (c *Series) SetDataProvider(provider IDataProvider)
- func (c *Series) SetName(name string)
- type SettingsDialog
- type TimeChart
- func (c *TimeChart) AddArea() *Area
- func (c *TimeChart) AddSeries(area *Area, id string) *Series
- func (c *TimeChart) AreaByPoint(x, y int) *Area
- func (c *TimeChart) AreaYOffset(area *Area) int
- func (c *TimeChart) Areas() []*Area
- func (c *TimeChart) ControlType() string
- func (c *TimeChart) Dispose()
- func (c *TimeChart) Draw(ctx ui.DrawContext)
- func (c *TimeChart) Editing() bool
- func (c *TimeChart) HorMax() int64
- func (c *TimeChart) HorMin() int64
- func (c *TimeChart) IsChartMoving() bool
- func (c *TimeChart) MinHeight() int
- func (c *TimeChart) MouseDown(event *uievents.MouseDownEvent)
- func (c *TimeChart) MouseDrop(ev *uievents.MouseDropEvent)
- func (c *TimeChart) MouseEnter()
- func (c *TimeChart) MouseIsInside() bool
- func (c *TimeChart) MouseLeave()
- func (c *TimeChart) MouseMove(event *uievents.MouseMoveEvent)
- func (c *TimeChart) MouseUp(event *uievents.MouseUpEvent)
- func (c *TimeChart) MouseValidateDrop(event *uievents.MouseValidateDropEvent)
- func (c *TimeChart) MouseWheel(event *uievents.MouseWheelEvent)
- func (c *TimeChart) RemoveAllAreas()
- func (c *TimeChart) RemoveAreaByIndex(index int)
- func (c *TimeChart) ResetHorizontalRange(ctx *canvas.CanvasDirect)
- func (c *TimeChart) SetDefaultDisplayRange(defaultDisplayMin, defaultDisplayMax int64)
- func (c *TimeChart) SetEditing(editing bool)
- func (c *TimeChart) SetHeight(h int)
- func (c *TimeChart) SetHorizRange(min, max int64)
- func (c *TimeChart) SetShowQualities(showQualities bool)
- func (c *TimeChart) SetUnitedVerticalScale(unitedVerticalScale bool)
- func (c *TimeChart) SetWidth(w int)
- func (c *TimeChart) USecPerPixel() float64
- func (c *TimeChart) ZoomShowEntire()
- type ToolBar
- type Value
- type VerticalScale
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AllowedSelection ¶
type AllowedSelection struct {
// contains filtered or unexported fields
}
type Area ¶
type Area struct {
// contains filtered or unexported fields
}
func (*Area) Draw ¶
func (c *Area) Draw(ctx ui.DrawContext, leftScaleWidth int, hScale *HorizontalScale, width int, foreColor color.Color, yOffset int)
func (*Area) RemoveSeriesByIndex ¶
func (*Area) SetHighlighting ¶
func (*Area) SetShowQualities ¶
func (*Area) SetUnitedScale ¶
func (*Area) ShowQualities ¶
func (*Area) UnitedScale ¶
type AreaTopHeader ¶
type AreaTopHeader struct {
// contains filtered or unexported fields
}
func NewAreaTopHeader ¶
func NewAreaTopHeader(height int) *AreaTopHeader
func (*AreaTopHeader) Height ¶
func (c *AreaTopHeader) Height() int
type ChartPoint ¶
type DataProvider ¶
type DataProvider struct {
// contains filtered or unexported fields
}
func (*DataProvider) GetData ¶
func (c *DataProvider) GetData(key string, minTime, maxTime int64, groupTimeRange int64) []*Value
func (*DataProvider) Init ¶
func (c *DataProvider) Init()
type DataProviderItem ¶
type DataProviderItem struct {
// contains filtered or unexported fields
}
func (*DataProviderItem) GetData ¶
func (c *DataProviderItem) GetData(key string, minTime, maxTime int64, groupTimeRange int64) []*Value
func (*DataProviderItem) Init ¶
func (c *DataProviderItem) Init(key string)
type DataProviderTimeLevel ¶
type DataProviderTimeLevel struct {
// contains filtered or unexported fields
}
func (*DataProviderTimeLevel) GetData ¶
func (c *DataProviderTimeLevel) GetData(minTime, maxTime int64) []*Value
func (*DataProviderTimeLevel) Init ¶
func (c *DataProviderTimeLevel) Init(key string, groupTimeRange int64)
type HorizontalScale ¶
type HorizontalScale struct { Height int // contains filtered or unexported fields }
func NewHorizontalScale ¶
func NewHorizontalScale(timeChart *TimeChart) *HorizontalScale
func (*HorizontalScale) Dispose ¶
func (c *HorizontalScale) Dispose()
func (*HorizontalScale) Draw ¶
func (c *HorizontalScale) Draw(ctx ui.DrawContext, xOffset int, yOffset int, width int)
func (*HorizontalScale) MouseDown ¶
func (c *HorizontalScale) MouseDown(event *uievents.MouseDownEvent)
func (*HorizontalScale) ResetToDefaultRange ¶
func (c *HorizontalScale) ResetToDefaultRange()
func (*HorizontalScale) SetDefaultDisplayRange ¶
func (c *HorizontalScale) SetDefaultDisplayRange(defaultDisplayMin, defaultDisplayMax int64)
func (*HorizontalScale) SetDisplayRange ¶
func (c *HorizontalScale) SetDisplayRange(displayMin, displayMax int64)
type IDataProvider ¶
type InteractiveSelectionModifier ¶
type InteractiveSelectionModifier int
const ( InteractiveSelectionModifierLeftMouseButton InteractiveSelectionModifier = 1 InteractiveSelectionModifierRightMouseButton InteractiveSelectionModifier = 2 InteractiveSelectionModifierShiftHorizontal InteractiveSelectionModifier = 4 InteractiveSelectionModifierControl InteractiveSelectionModifier = 8 InteractiveSelectionModifierAlt InteractiveSelectionModifier = 16 )
type LoadingDiapason ¶ added in v1.0.6
type LoadingDiapason struct {
MinTime, MaxTime int64
}
type ResizingDirection ¶
type ResizingDirection int
const ( ResizingDirectionTop ResizingDirection = 0 ResizingDirectionRight ResizingDirection = 1 ResizingDirectionBottom ResizingDirection = 2 ResizingDirectionLeft ResizingDirection = 3 )
type ResizingSelection ¶
type ResizingSelection struct {
// contains filtered or unexported fields
}
type ScaleValue ¶
type SelectionAxes ¶
type SelectionAxes int
const ( SelectionAxesX SelectionAxes = 0 SelectionAxesY SelectionAxes = 1 SelectionAxesXY SelectionAxes = 2 )
type Series ¶
type Series struct {
// contains filtered or unexported fields
}
func (*Series) Draw ¶
func (c *Series) Draw(ctx ui.DrawContext, scaleXOffset int, xOffset int, height int, hScale *HorizontalScale, bottomHeaderHeight int, index int)
func (*Series) DrawBottomHeader ¶
func (*Series) RemoveItemsByTime ¶
func (*Series) SetDataProvider ¶
func (c *Series) SetDataProvider(provider IDataProvider)
type SettingsDialog ¶
type SettingsDialog struct { uicontrols.Dialog // contains filtered or unexported fields }
func NewSettingsDialog ¶
func NewSettingsDialog(parent *TimeChart) *SettingsDialog
func (*SettingsDialog) OnInit ¶
func (c *SettingsDialog) OnInit()
type TimeChart ¶
type TimeChart struct { uicontrols.Control OnMouseDropOnArea func(droppedValue interface{}, area *Area) OnZoomed func() OnMoved func() DrawTime int64 OnChartContextMenuNeed func(timeChart *TimeChart, area *Area, areaIndex int) uiinterfaces.Menu // contains filtered or unexported fields }
func NewTimeChart ¶
func NewTimeChart(parent uiinterfaces.Widget) *TimeChart
func (*TimeChart) AreaByPoint ¶
func (*TimeChart) AreaYOffset ¶
func (*TimeChart) ControlType ¶
func (*TimeChart) Draw ¶
func (c *TimeChart) Draw(ctx ui.DrawContext)
func (*TimeChart) IsChartMoving ¶ added in v1.0.5
func (*TimeChart) MouseDown ¶
func (c *TimeChart) MouseDown(event *uievents.MouseDownEvent)
func (*TimeChart) MouseDrop ¶
func (c *TimeChart) MouseDrop(ev *uievents.MouseDropEvent)
func (*TimeChart) MouseEnter ¶
func (c *TimeChart) MouseEnter()
func (*TimeChart) MouseIsInside ¶
func (*TimeChart) MouseLeave ¶
func (c *TimeChart) MouseLeave()
func (*TimeChart) MouseMove ¶
func (c *TimeChart) MouseMove(event *uievents.MouseMoveEvent)
func (*TimeChart) MouseUp ¶
func (c *TimeChart) MouseUp(event *uievents.MouseUpEvent)
func (*TimeChart) MouseValidateDrop ¶
func (c *TimeChart) MouseValidateDrop(event *uievents.MouseValidateDropEvent)
func (*TimeChart) MouseWheel ¶
func (c *TimeChart) MouseWheel(event *uievents.MouseWheelEvent)
func (*TimeChart) RemoveAllAreas ¶
func (c *TimeChart) RemoveAllAreas()
func (*TimeChart) RemoveAreaByIndex ¶
func (*TimeChart) ResetHorizontalRange ¶
func (c *TimeChart) ResetHorizontalRange(ctx *canvas.CanvasDirect)
func (*TimeChart) SetDefaultDisplayRange ¶
func (*TimeChart) SetEditing ¶
func (*TimeChart) SetHorizRange ¶
func (*TimeChart) SetShowQualities ¶
func (*TimeChart) SetUnitedVerticalScale ¶
func (*TimeChart) USecPerPixel ¶
func (*TimeChart) ZoomShowEntire ¶
func (c *TimeChart) ZoomShowEntire()
type ToolBar ¶
type ToolBar struct { uicontrols.Panel OnChanged func() // contains filtered or unexported fields }
func NewToolBar ¶
func NewToolBar(parent uiinterfaces.Widget, chart *TimeChart) *ToolBar
func (*ToolBar) UpdateStyle ¶
func (c *ToolBar) UpdateStyle()
type VerticalScale ¶
func NewVerticalScale ¶
func NewVerticalScale(series *Series) *VerticalScale
func (*VerticalScale) Draw ¶
func (c *VerticalScale) Draw(ctx ui.DrawContext, xOffset int, yOffset int, col color.Color)
func (*VerticalScale) SetDisplayRange ¶
func (c *VerticalScale) SetDisplayRange(displayMin, displayMax float64)
Click to show internal directories.
Click to hide internal directories.