This is an object for defining text labels as part of the symbol collection.
More...
|
| __init__ (self, label=None) |
| Constructor for a Symbol.
|
|
| get_shape_type (self) |
|
| set_anchor_alignment (self, typeLR, typeTB) |
| Sets the alignment parameters for the text label.
|
|
| set_anchor_location (self, x, y) |
| sets the origin for the label
|
|
| get_json_representation (self) |
| Get the json representation of the Symbol class.
|
|
| print_mat (self, list m) |
| print the current matrix for debugging
|
|
list | identity (self, list m) |
| create the identity matrix
|
|
list | mat_mult (self, list m1, list m2) |
|
list | vec_mat_mult (self, list m, list v) |
|
| translate (self, float tx, float ty) |
|
| scale (self, *args) |
| scale the symbol from a particular center location
|
|
| rotate (self, *args) |
|
| set_transform (self, float a, float b, float c, float d, float e, float f) |
|
| add_all_json (self, symbol_json, parent) |
|
This is an object for defining text labels as part of the symbol collection.
- Author
- Matthew Mcquaigue, Erik Saule
- Date
- 7/18/22 (last modified)
\sa Symbol Collection tutorial : http://bridgesuncc.github.io/tutorials/Symbol_Collection.html
◆ __init__()
bridges.text.Text.__init__ |
( |
|
self, |
|
|
|
label = None |
|
) |
| |
◆ get_json_representation()
bridges.text.Text.get_json_representation |
( |
|
self | ) |
|
Get the json representation of the Symbol class.
- Returns
-
dict the JSON representation
Reimplemented from bridges.symbol.Symbol.
◆ get_shape_type()
bridges.text.Text.get_shape_type |
( |
|
self | ) |
|
◆ set_anchor_alignment()
bridges.text.Text.set_anchor_alignment |
( |
|
self, |
|
|
|
typeLR, |
|
|
|
typeTB |
|
) |
| |
Sets the alignment parameters for the text label.
@param typeLR valid parameters are "left", "middle", and "right"
@param typeTB valid parameters are "top", "bottom", "embottom", "emtop", "middle"
@return symbol
◆ set_anchor_location()
bridges.text.Text.set_anchor_location |
( |
|
self, |
|
|
|
x, |
|
|
|
y |
|
) |
| |
sets the origin for the label
@param x x coordinate (in pixels)
@param y y coordinate (in pixels)
◆ _anchor_alignment_lr
bridges.text.Text._anchor_alignment_lr |
|
protected |
◆ _anchor_alignment_tb
bridges.text.Text._anchor_alignment_tb |
|
protected |
◆ _font_size
bridges.text.Text._font_size |
|
protected |
◆ _locx
◆ _locy
◆ _text
◆ stroke_width
bridges.text.Text.stroke_width |
◆ anchor_location
bridges.text.Text.anchor_location = property |
|
static |
◆ font_size
bridges.text.Text.font_size = property |
|
static |
◆ text
bridges.text.Text.text = property |
|
static |
The documentation for this class was generated from the following file: