Documentation
¶
Index ¶
- type BarPlot
- func (plot *BarPlot) Blur()
- func (plot *BarPlot) Draw(screen tcell.Screen)
- func (plot *BarPlot) Focus(delegate func(p tview.Primitive))
- func (plot *BarPlot) HasFocus() bool
- func (plot *BarPlot) InputHandler() func(event *tcell.EventKey, setFocus func(p tview.Primitive))
- func (plot *BarPlot) MouseHandler() ...
- func (plot *BarPlot) SetAxis2String(Xaxis2String func(value float64) string, ...)
- func (plot *BarPlot) SetData(Data [][]float64) error
- func (plot *BarPlot) SetNoDataText(text string)
- func (b *BarPlot) SetPlotBorder(border bool) *BarPlot
- func (b *BarPlot) SetPlotTite(title string) *BarPlot
- func (plot *BarPlot) SetStyleForPointFunc(style4point func(point []float64) tcell.Style)
- func (plot *BarPlot) SetXAxisText(text string, aligment int)
- func (plot *BarPlot) SetYAxisText(text string, aligment int)
- type DotPlot
- func (plot *DotPlot) Blur()
- func (plot *DotPlot) Draw(screen tcell.Screen)
- func (plot *DotPlot) Focus(delegate func(p tview.Primitive))
- func (plot *DotPlot) HasFocus() bool
- func (plot *DotPlot) InputHandler() func(event *tcell.EventKey, setFocus func(p tview.Primitive))
- func (plot *DotPlot) MouseHandler() ...
- func (plot *DotPlot) SetAxis2String(Xaxis2String func(value float64) string, ...)
- func (plot *DotPlot) SetData(Data [][]float64) error
- func (plot *DotPlot) SetNoDataText(text string)
- func (b *DotPlot) SetPlotBorder(border bool) *DotPlot
- func (b *DotPlot) SetPlotTite(title string) *DotPlot
- func (plot *DotPlot) SetStyleForPointFunc(style4point func(point []float64) tcell.Style)
- func (plot *DotPlot) SetXAxisText(text string, aligment int)
- func (plot *DotPlot) SetYAxisText(text string, aligment int)
- type Plot
- func (plot *Plot) Blur()
- func (plot *Plot) Draw(screen tcell.Screen)
- func (plot *Plot) Focus(delegate func(p tview.Primitive))
- func (plot *Plot) HasFocus() bool
- func (plot *Plot) InputHandler() func(event *tcell.EventKey, setFocus func(p tview.Primitive))
- func (plot *Plot) MouseHandler() ...
- func (plot *Plot) SetAxis2String(Xaxis2String func(value float64) string, ...)
- func (plot *Plot) SetData(Data [][]float64) error
- func (plot *Plot) SetNoDataText(text string)
- func (b *Plot) SetPlotBorder(border bool) *Plot
- func (b *Plot) SetPlotTite(title string) *Plot
- func (plot *Plot) SetStyleForPointFunc(style4point func(point []float64) tcell.Style)
- func (plot *Plot) SetXAxisText(text string, aligment int)
- func (plot *Plot) SetYAxisText(text string, aligment int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BarPlot ¶
func NewBarPlot ¶
func NewBarPlot() *BarPlot
func (*BarPlot) Blur ¶
func (plot *BarPlot) Blur()
Blur is called by the application when the primitive loses focus.
func (*BarPlot) Focus ¶
Focus is called by the application when the primitive receives focus. Implementers may call delegate() to pass the focus on to another primitive.
func (*BarPlot) HasFocus ¶
HasFocus determines if the primitive has focus. This function must return true also if one of this primitive's child elements has focus.
func (*BarPlot) InputHandler ¶
InputHandler returns a handler which receives key events when it has focus. It is called by the Application class.
A value of nil may also be returned, in which case this primitive cannot receive focus and will not process any key events.
The handler will receive the key event and a function that allows it to set the focus to a different primitive, so that future key events are sent to that primitive.
The Application's Draw() function will be called automatically after the handler returns.
The Box class provides functionality to intercept keyboard input. If you subclass from Box, it is recommended that you wrap your handler using Box.WrapInputHandler() so you inherit that functionality.
func (*BarPlot) MouseHandler ¶
func (plot *BarPlot) MouseHandler() func(action tview.MouseAction, event *tcell.EventMouse, setFocus func(p tview.Primitive)) (consumed bool, capture tview.Primitive)
MouseHandler returns a handler which receives mouse events. It is called by the Application class.
A value of nil may also be returned to stop the downward propagation of mouse events.
The Box class provides functionality to intercept mouse events. If you subclass from Box, it is recommended that you wrap your handler using Box.WrapMouseHandler() so you inherit that functionality.
func (*BarPlot) SetAxis2String ¶
func (*BarPlot) SetNoDataText ¶
func (*BarPlot) SetPlotBorder ¶
func (*BarPlot) SetPlotTite ¶
func (*BarPlot) SetStyleForPointFunc ¶
func (*BarPlot) SetXAxisText ¶
func (*BarPlot) SetYAxisText ¶
type DotPlot ¶
func NewDotPlot ¶
func NewDotPlot() *DotPlot
func (*DotPlot) Blur ¶
func (plot *DotPlot) Blur()
Blur is called by the application when the primitive loses focus.
func (*DotPlot) Focus ¶
Focus is called by the application when the primitive receives focus. Implementers may call delegate() to pass the focus on to another primitive.
func (*DotPlot) HasFocus ¶
HasFocus determines if the primitive has focus. This function must return true also if one of this primitive's child elements has focus.
func (*DotPlot) InputHandler ¶
InputHandler returns a handler which receives key events when it has focus. It is called by the Application class.
A value of nil may also be returned, in which case this primitive cannot receive focus and will not process any key events.
The handler will receive the key event and a function that allows it to set the focus to a different primitive, so that future key events are sent to that primitive.
The Application's Draw() function will be called automatically after the handler returns.
The Box class provides functionality to intercept keyboard input. If you subclass from Box, it is recommended that you wrap your handler using Box.WrapInputHandler() so you inherit that functionality.
func (*DotPlot) MouseHandler ¶
func (plot *DotPlot) MouseHandler() func(action tview.MouseAction, event *tcell.EventMouse, setFocus func(p tview.Primitive)) (consumed bool, capture tview.Primitive)
MouseHandler returns a handler which receives mouse events. It is called by the Application class.
A value of nil may also be returned to stop the downward propagation of mouse events.
The Box class provides functionality to intercept mouse events. If you subclass from Box, it is recommended that you wrap your handler using Box.WrapMouseHandler() so you inherit that functionality.
func (*DotPlot) SetAxis2String ¶
func (*DotPlot) SetNoDataText ¶
func (*DotPlot) SetPlotBorder ¶
func (*DotPlot) SetPlotTite ¶
func (*DotPlot) SetStyleForPointFunc ¶
func (*DotPlot) SetXAxisText ¶
func (*DotPlot) SetYAxisText ¶
type Plot ¶
func (*Plot) Blur ¶
func (plot *Plot) Blur()
Blur is called by the application when the primitive loses focus.
func (*Plot) Focus ¶
Focus is called by the application when the primitive receives focus. Implementers may call delegate() to pass the focus on to another primitive.
func (*Plot) HasFocus ¶
HasFocus determines if the primitive has focus. This function must return true also if one of this primitive's child elements has focus.
func (*Plot) InputHandler ¶
InputHandler returns a handler which receives key events when it has focus. It is called by the Application class.
A value of nil may also be returned, in which case this primitive cannot receive focus and will not process any key events.
The handler will receive the key event and a function that allows it to set the focus to a different primitive, so that future key events are sent to that primitive.
The Application's Draw() function will be called automatically after the handler returns.
The Box class provides functionality to intercept keyboard input. If you subclass from Box, it is recommended that you wrap your handler using Box.WrapInputHandler() so you inherit that functionality.
func (*Plot) MouseHandler ¶
func (plot *Plot) MouseHandler() func(action tview.MouseAction, event *tcell.EventMouse, setFocus func(p tview.Primitive)) (consumed bool, capture tview.Primitive)
MouseHandler returns a handler which receives mouse events. It is called by the Application class.
A value of nil may also be returned to stop the downward propagation of mouse events.
The Box class provides functionality to intercept mouse events. If you subclass from Box, it is recommended that you wrap your handler using Box.WrapMouseHandler() so you inherit that functionality.