Bridges-Python-3.0.2  3.0.2
Bridges(PythonAPI)
Public Member Functions | Public Attributes | List of all members
bridges.label.Label Class Reference
Inheritance diagram for bridges.label.Label:
bridges.symbol.Symbol

Public Member Functions

def __init__ (self, label=None)
 
def width (self)
 Getter for the width of label. More...
 
def width
 Setter for the width of label. More...
 
def height (self)
 Getter for the height of label. More...
 
def height
 Setter for the height of label. More...
 
def font_size (self)
 Getter for the font size. More...
 
def font_size
 Setter for the font size. More...
 
def get_dimensions (self)
 Get the dimensions of the label. More...
 
def get_json_representation (self)
 Getter for the json representation. More...
 
- Public Member Functions inherited from bridges.symbol.Symbol
def __init__ (self)
 Constructor for a Symbol. More...
 
def label (self)
 Getter for symbol label. More...
 
def label
 Setter for symbol label. More...
 
def identifier (self)
 Getter for the symbols identifier. More...
 
def fill_color (self)
 Getter for the fill color. More...
 
def fill_color (self, args, kwargs)
 Setter for the fill color. More...
 
def stroke_color (self)
 Getter for the stroke color. More...
 
def stroke_color (self, args, kwargs)
 Setter for the stroke color. More...
 
def stroke_width (self)
 Getter for the stroke width. More...
 
def stroke_width
 Setter for the stroke width. More...
 
def opacity (self)
 Getter for opacity. More...
 
def opacity
 Setter for opacity. More...
 
def stroke_dash (self)
 Getter for stroke_dash. More...
 
def stroke_dash
 Setter for stroke_dash. More...
 
def shape_type (self)
 
def shape_type (self, shape)
 
def set_location
 Setter for the location of the center of the symbol. More...
 
def get_location (self)
 Getter for the location of a symbol. More...
 
def get_dimensions (self)
 Getter for the dimensions. More...
 
def translate_point (self, pt, tx, ty)
 
def scale_point (self, pt, sx, sy)
 
def rotate_point (self, pt, angle)
 
def get_json_representation (self)
 Get the json representation of the Symbol class. More...
 

Public Attributes

 height
 

Constructor & Destructor Documentation

◆ __init__()

def bridges.label.Label.__init__ (   self,
  label = None 
)

Member Function Documentation

◆ font_size() [1/2]

def bridges.label.Label.font_size (   self,
  int 
)

Getter for the font size.

Returns
int representing the font size

◆ font_size() [2/2]

def bridges.label.Label.font_size (   self,
  size 
)

Setter for the font size.

Parameters
sizethe size of the font
Returns
None
Exceptions
ValueErrorif the size of the font is <= 0 or > 200

◆ get_dimensions()

def bridges.label.Label.get_dimensions (   self)

Get the dimensions of the label.

Returns
list representing the label dimensions

◆ get_json_representation()

def bridges.label.Label.get_json_representation (   self,
  dict 
)

Getter for the json representation.

Returns
dict JSON represnted as a dict before the dump

◆ height() [1/2]

def bridges.label.Label.height (   self,
  int 
)

Getter for the height of label.

Returns
int the height

◆ height() [2/2]

def bridges.label.Label.height (   self,
  h 
)

Setter for the height of label.

(int) h: the height

Returns
None

◆ width() [1/2]

def bridges.label.Label.width (   self,
  int 
)

Getter for the width of label.

Returns
int the width

◆ width() [2/2]

def bridges.label.Label.width (   self,
  w 
)

Setter for the width of label.

(int) w: the width

Returns
None

Member Data Documentation

◆ height

bridges.label.Label.height

The documentation for this class was generated from the following file: