class documentation

class ContainerSize(object): (source)

View In Hierarchy

The size of a container.
Method addstyle Add the proper style attribute to the output tag.
Method checkimage Check image dimensions, set them if possible.
Method checkvalidheight Check if the height parameter is valid; otherwise erase it.
Method extractnumber Extract the first number in the given text.
Method processparameter Do the full processing on a parameter.
Method readparameters Read some size parameters off a container.
Method removepercentwidth Remove percent width if present, to set it at the figure level.
Method scalevalue Scale the value according to the image scale and return it as unicode.
Method set Set the proper size with width and height.
Method setmax Set max width and/or height.
Method setparameter Read a size parameter off a container, and set it if present.
Method setvalue Set the value of a parameter name, only if it's valid.
Method styleparameter Get the style for a single parameter.
Class Variable scale Undocumented
Instance Variable height Undocumented
Instance Variable maxheight Undocumented
Instance Variable maxwidth Undocumented
Instance Variable width Undocumented
def addstyle(self, container): (source)
Add the proper style attribute to the output tag.
def checkimage(self, width, height): (source)
Check image dimensions, set them if possible.
def checkvalidheight(self, container): (source)
Check if the height parameter is valid; otherwise erase it.
def extractnumber(self, text): (source)
Extract the first number in the given text.
def processparameter(self, value): (source)
Do the full processing on a parameter.
def readparameters(self, container): (source)
Read some size parameters off a container.
def removepercentwidth(self): (source)
Remove percent width if present, to set it at the figure level.
def scalevalue(self, value): (source)
Scale the value according to the image scale and return it as unicode.
def set(self, width=None, height=None): (source)
Set the proper size with width and height.
def setmax(self, maxwidth=None, maxheight=None): (source)
Set max width and/or height.
def setparameter(self, container, name): (source)
Read a size parameter off a container, and set it if present.
def setvalue(self, name, value): (source)
Set the value of a parameter name, only if it's valid.
def styleparameter(self, name): (source)
Get the style for a single parameter.
scale = (source)

Undocumented

height = (source)

Undocumented

maxheight = (source)

Undocumented

maxwidth = (source)

Undocumented

width = (source)

Undocumented