awsc.common.BaseChart

class awsc.common.BaseChart(*args, color=Color(Palette8Bit, 220, None), highlight_color=Color(Palette8Bit, 70, None), **kwargs)

Base class for chart controls.

Attributes:
border

Returns the border of the control.

colspace

Read-only property representing the amount of displayable columns.

corners

Read-only property for calculating the four corners of the block.

data_points_behaviour

Property representing the data points behaviour of this bar graph.

height

Read-only property for the height of the block.

inner

Read-only property for calculating the four inner corners of the block.

w_in

Read-only property for the inner width of the block.

width

Read-only property for the width of the block.

Methods

Autohotkey(key[, tooltip, is_validated, ...])

Decorator that automatically assigns a hotkey to a function upon instantiation.

add_block(block)

Adds a new child block to this block.

add_datapoint(timestamp, datapoint)

Inserts a new datapoint into the bar graph.

add_hotkey(hotkey, action[, tooltip, ...])

Adds a new hotkey to the control.

autohotkey_condition(hotkey)

Autohotkey condition callback.

before_paint()

Hook function for acting on the block before any blocks are painted for the current frame.

bottomright()

Returns the coordinates of the bottom right corner of the block.

clear_blocks([tag])

Removes all blocks with the matching tag from the child blocks of this block.

end(*args)

Hotkey callback for KEY_END.

home(*args)

Hotkey callback for KEY_HOME.

input(key)

Input handler hook function.

opener(*args, **kwargs)

Session-aware initializer for this class.

paint()

Hook function for painting the block.

remove_block(block)

Removes a specific block from this block.

reparent()

Shorthand function for removing a Block from its parent and re-adding it.

scroll_left(*args)

Hotkey callback for KEY_LEFT.

scroll_right(*args)

Hotkey callback for KEY_RIGHT.

title_info()

Title information callback.

topleft()

Returns the coordinates of the top left corner of the block.

validate_hotkey(key)

Validates whether a hotkey can be used based on the state of the control.

on_become_frame

__init__(*args, color=Color(Palette8Bit, 220, None), highlight_color=Color(Palette8Bit, 70, None), **kwargs)

Initializes a HotkeyControl object.

Methods

__init__(*args[, color, highlight_color])

Initializes a HotkeyControl object.

add_block(block)

Adds a new child block to this block.

add_datapoint(timestamp, datapoint)

Inserts a new datapoint into the bar graph.

add_hotkey(hotkey, action[, tooltip, ...])

Adds a new hotkey to the control.

autohotkey_condition(hotkey)

Autohotkey condition callback.

before_paint()

Hook function for acting on the block before any blocks are painted for the current frame.

bottomright()

Returns the coordinates of the bottom right corner of the block.

clear_blocks([tag])

Removes all blocks with the matching tag from the child blocks of this block.

end(*args)

Hotkey callback for KEY_END.

home(*args)

Hotkey callback for KEY_HOME.

input(key)

Input handler hook function.

on_become_frame()

opener(*args, **kwargs)

Session-aware initializer for this class.

paint()

Hook function for painting the block.

remove_block(block)

Removes a specific block from this block.

reparent()

Shorthand function for removing a Block from its parent and re-adding it.

scroll_left(*args)

Hotkey callback for KEY_LEFT.

scroll_right(*args)

Hotkey callback for KEY_RIGHT.

title_info()

Title information callback.

topleft()

Returns the coordinates of the top left corner of the block.

validate_hotkey(key)

Validates whether a hotkey can be used based on the state of the control.

Attributes

DPB_MinToMax

DPB_ZeroOrLessToMax

DPB_ZeroToMax

border

Returns the border of the control.

colspace

Read-only property representing the amount of displayable columns.

corners

Read-only property for calculating the four corners of the block.

data_points_behaviour

Property representing the data points behaviour of this bar graph.

height

Read-only property for the height of the block.

inner

Read-only property for calculating the four inner corners of the block.

prefix

title

w_in

Read-only property for the inner width of the block.

width

Read-only property for the width of the block.