attributes

Module: attributes

Inheritance diagram for pysvg.attributes:

(C) 2008, 2009 Kerim Mansour For licensing information please refer to license.txt

Classes

ClipAttrib

class pysvg.attributes.ClipAttrib

The ClipAttrib class defines the Clip.attrib attribute set.

get_clip_path()
get_clip_rule()
set_clip_path(clip_path)
set_clip_rule(clip_rule)

ColorAttrib

class pysvg.attributes.ColorAttrib
The ColorAttrib class defines the Color.attrib attribute set.

ConditionalAttrib

class pysvg.attributes.ConditionalAttrib

The ConditionalAttrib class defines the Conditional.attrib attribute set.

get_requiredExtensions()
get_requiredFeatures()
get_systemLanguage()
set_requiredExtensions(requiredExtensions)
set_requiredFeatures(requiredFeatures)
set_systemLanguage(language_code)

CoreAttrib

class pysvg.attributes.CoreAttrib

The CoreAttrib class defines the attribute set Core.attrib that is the core set of attributes that can be present on any element.

get_id()
get_xml_base()
get_xml_lang()
get_xml_space()
set_id(id)
set_xml_base(xml_base)
set_xml_lang(language_code)
set_xml_space(xml_space)

CursorAttrib

class pysvg.attributes.CursorAttrib

The CursorAttrib class defines the Cursor.attrib attribute set.

get_cursor()
set_cursor(cursor)

DocumentEventsAttrib

class pysvg.attributes.DocumentEventsAttrib

The DocumentEventsAttrib class defines the DocumentEvents.attrib attribute set.

get_onabort()
get_onerror()
get_onresize()
get_onscroll()
get_onunload()
get_onzoom()
set_onabort(onabort)
set_onerror(onerror)
set_onresize(onresize)
set_onscroll(onscroll)
set_onunload(onunload)
set_onzoom(onzoom)

ExternalAttrib

class pysvg.attributes.ExternalAttrib

The ExternalAttrib class defines the External.attrib attribute set.

get_externalResourcesRequired()
set_externalResourcesRequired(externalResourcesRequired)

FilterAttrib

class pysvg.attributes.FilterAttrib

The FilterAttrib class defines the Filter.attrib attribute sets.

get_filter()
set_filter(filter)

FilterColorAttrib

class pysvg.attributes.FilterColorAttrib

The FilterColorAttrib class defines the FilterColor.attrib attribute sets.

get_color_interpolation_filters()
set_color_interpolation_filters(color_interpolation_filters)

FilterPrimitiveAttrib

class pysvg.attributes.FilterPrimitiveAttrib

The FilterPrimitiveAttrib class defines the FilterPrimitive.attrib attribute sets.

get_height()
get_result()
get_width()
get_x()
get_y()
set_height(height)
set_result(result)
set_width(width)
set_x(x)
set_y(y)

FilterPrimitiveWithInAttrib

class pysvg.attributes.FilterPrimitiveWithInAttrib

Bases: pysvg.attributes.FilterPrimitiveAttrib

The FilterPrimitiveWithInAttrib class defines the FilterPrimitiveWithIn.attrib attribute sets.

get_height()
get_in()
get_result()
get_width()
get_x()
get_y()
set_height(height)
set_in(inValue)
set_result(result)
set_width(width)
set_x(x)
set_y(y)

FontAttrib

class pysvg.attributes.FontAttrib

The FontAttrib class defines the Font.attrib attribute set.

get_font_family()
get_font_size()
get_font_size_adjust()
get_font_stretch()
get_font_style()
get_font_variant()
get_font_weight()
set_font_family(font_family)
set_font_size(font_size)
set_font_size_adjust(font_size_adjust)
set_font_stretch(font_stretch)
set_font_style(font_style)
set_font_variant(font_variant)
set_font_weight(font_weight)

GradientAttrib

class pysvg.attributes.GradientAttrib

The GradientAttrib class defines the Gradient.attrib attribute set.

get_stop_color()
get_stop_opacity()
set_stop_color(stop_color)
set_stop_opacity(stop_opacity)

GraphicalEventsAttrib

class pysvg.attributes.GraphicalEventsAttrib

The GraphicalEventsAttrib class defines the GraphicalEvents.attrib attribute set.

get_onactivate()
get_onclick()
get_onfocusin()
get_onfocusout()
get_onload()
get_onmousedown()
get_onmousemove()
get_onmouseout()
get_onmouseover()
get_onmouseup()
set_onactivate(onactivate)
set_onclick(onclick)
set_onfocusin(onfocusin)
set_onfocusout(onfocusout)
set_onload(onload)
set_onmousedown(onmousedown)
set_onmousemove(onmousemove)
set_onmouseout(onmouseout)
set_onmouseover(onmouseover)
set_onmouseup(onmouseup)

GraphicsAttrib

class pysvg.attributes.GraphicsAttrib

The GraphicsAttrib class defines the Graphics.attrib attribute set.

get_display()
get_image_rendering()
get_pointer_events()
get_shape_rendering()
get_text_rendering()
get_visibility()
set_display(display)
set_image_rendering(image_rendering)
set_pointer_events(pointer_events)
set_shape_rendering(shape_rendering)
set_text_rendering(text_rendering)
set_visibility(visibility)

MarkerAttrib

class pysvg.attributes.MarkerAttrib

The MarkerAttrib class defines the Marker.attrib attribute set.

get_marker_end()
get_marker_mid()
get_marker_start()
set_marker_end(marker_end)
set_marker_mid(marker_mid)
set_marker_start(marker_start)

MaskAttrib

class pysvg.attributes.MaskAttrib

The MaskAttrib class defines the Mask.attrib attribute set.

get_mask()
set_mask(mask)

OpacityAttrib

class pysvg.attributes.OpacityAttrib

The OpacityAttrib class defines the Opacity.attrib attribute set.

get_fill_opacity()
get_opacity()
get_stroke_opacity()
set_fill_opacity(fill_opacity)
set_opacity(opacity)
set_stroke_opacity(stroke_opacity)

PaintAttrib

class pysvg.attributes.PaintAttrib

The PaintAttrib class defines the Paint.attrib attribute set.

get_color()
get_color_interpolation()
get_color_rendering()
get_fill()
get_fill_rule()
get_stroke()
get_stroke_dasharray()
get_stroke_dashoffset()
get_stroke_linecap()
get_stroke_linejoin()
get_stroke_miterlimit()
get_stroke_width()
set_color(color)
set_color_interpolation(color_interpolation)
set_color_rendering(color_rendering)
set_fill(fill)
set_fill_rule(fill_rule)
set_stroke(stroke)
set_stroke_dasharray(stroke_dasharray)
set_stroke_dashoffset(stroke_dashoffset)
set_stroke_linecap(stroke_linecap)
set_stroke_linejoin(stroke_linejoin)
set_stroke_miterlimit(stroke_miterlimit)
set_stroke_width(stroke_width)

PresentationAttributes_All

class pysvg.attributes.PresentationAttributes_All

Bases: pysvg.attributes.PresentationAttributes_Color, pysvg.attributes.PresentationAttributes_Containers, pysvg.attributes.PresentationAttributes_feFlood, pysvg.attributes.PresentationAttributes_FillStroke, pysvg.attributes.PresentationAttributes_FilterPrimitives, pysvg.attributes.PresentationAttributes_FontSpecification, pysvg.attributes.PresentationAttributes_Gradients, pysvg.attributes.PresentationAttributes_Graphics, pysvg.attributes.PresentationAttributes_Images, pysvg.attributes.PresentationAttributes_LightingEffects, pysvg.attributes.PresentationAttributes_Marker, pysvg.attributes.PresentationAttributes_TextContentElements, pysvg.attributes.PresentationAttributes_TextElements, pysvg.attributes.PresentationAttributes_Viewports

The PresentationAttributes_All class defines the Presentation.attrib attribute set.

get_alignment_baseline()
get_baseline_shift()
get_clip()
get_clip_path()
get_clip_rule()
get_color()
get_color_interpolation()
get_color_interpolation_filters()
get_color_profile()
get_color_rendering()
get_cursor()
get_direction()
get_display()
get_dominant_baseline()
get_enable_background()
get_fill()
get_fill_opacity()
get_fill_rule()
get_filter()
get_flood_color()
get_flood_opacity()
get_font_family()
get_font_size()
get_font_size_adjust()
get_font_stretch()
get_font_style()
get_font_variant()
get_font_weight()
get_glyph_orientation_horizontal()
get_glyph_orientation_vertical()
get_image_rendering()
get_kerning()
get_letter_spacing()
get_lighting_color()
get_marker_end()
get_marker_mid()
get_marker_start()
get_mask()
get_opacity()
get_overflow()
get_pointer_events()
get_shape_rendering()
get_stop_color()
get_stop_opacity()
get_stroke()
get_stroke_dasharray()
get_stroke_dashoffset()
get_stroke_linecap()
get_stroke_linejoin()
get_stroke_miterlimit()
get_stroke_opacity()
get_stroke_width()
get_text_anchor()
get_text_decoration()
get_text_rendering()
get_unicode_bidi()
get_visibility()
get_word_spacing()
get_writing_mode()
set_alignment_baseline(alignment_baseline)
set_baseline_shift(baseline_shift)
set_clip(clip)
set_clip_path(clip_path)
set_clip_rule(clip_rule)
set_color(color)
set_color_interpolation(color_interpolation)
set_color_interpolation_filters(color_interpolation_filters)
set_color_profile(color_profile)
set_color_rendering(color_rendering)
set_cursor(cursor)
set_direction(direction)
set_display(display)
set_dominant_baseline(dominant_baseline)
set_enable_background(enableBackground)
set_fill(fill)
set_fill_opacity(fill_opacity)
set_fill_rule(fill_rule)
set_filter(filter)
set_flood_color(flood_color)
set_flood_opacity(flood_opacity)
set_font_family(font_family)
set_font_size(font_size)
set_font_size_adjust(font_size_adjust)
set_font_stretch(font_stretch)
set_font_style(font_style)
set_font_variant(font_variant)
set_font_weight(font_weight)
set_glyph_orientation_horizontal(glyph_orientation_horizontal)
set_glyph_orientation_vertical(glyph_orientation_vertical)
set_image_rendering(image_rendering)
set_kerning(kerning)
set_letter_spacing(letter_spacing)
set_lighting_color(lighting_color)
set_marker_end(marker_end)
set_marker_mid(marker_mid)
set_marker_start(marker_start)
set_mask(mask)
set_opacity(opacity)
set_overflow(overflow)
set_pointer_events(pointer_events)
set_shape_rendering(shape_rendering)
set_stop_color(stop_color)
set_stop_opacity(stop_opacity)
set_stroke(stroke)
set_stroke_dasharray(stroke_dasharray)
set_stroke_dashoffset(stroke_dashoffset)
set_stroke_linecap(stroke_linecap)
set_stroke_linejoin(stroke_linejoin)
set_stroke_miterlimit(stroke_miterlimit)
set_stroke_opacity(stroke_opacity)
set_stroke_width(stroke_width)
set_text_anchor(text_anchor)
set_text_decoration(text_decoration)
set_text_rendering(text_rendering)
set_unicode_bidi(unicode_bidi)
set_visibility(visibility)
set_word_spacing(word_spacing)
set_writing_mode(writing_mode)

PresentationAttributes_Color

class pysvg.attributes.PresentationAttributes_Color

The PresentationAttributes_Color class defines the PresentationAttributes_Color.attrib attribute set. The following presentation attributes have to do with specifying color.

get_color()
get_color_interpolation()
get_color_rendering()
set_color(color)
set_color_interpolation(color_interpolation)
set_color_rendering(color_rendering)

PresentationAttributes_Containers

class pysvg.attributes.PresentationAttributes_Containers

The PresentationAttributes_Containers class defines the PresentationAttributes_Containers.attrib attribute set. The following presentation attributes apply to container elements.

get_enable_background()
set_enable_background(enableBackground)

PresentationAttributes_FillStroke

class pysvg.attributes.PresentationAttributes_FillStroke

The PresentationAttributes_FillStroke class defines the PresentationAttributes_FillStroke.attrib attribute set. The following presentation attributes apply to filling and stroking operations.

get_fill()
get_fill_opacity()
get_fill_rule()
get_stroke()
get_stroke_dasharray()
get_stroke_dashoffset()
get_stroke_linecap()
get_stroke_linejoin()
get_stroke_miterlimit()
get_stroke_opacity()
get_stroke_width()
set_fill(fill)
set_fill_opacity(fill_opacity)
set_fill_rule(fill_rule)
set_stroke(stroke)
set_stroke_dasharray(stroke_dasharray)
set_stroke_dashoffset(stroke_dashoffset)
set_stroke_linecap(stroke_linecap)
set_stroke_linejoin(stroke_linejoin)
set_stroke_miterlimit(stroke_miterlimit)
set_stroke_opacity(stroke_opacity)
set_stroke_width(stroke_width)

PresentationAttributes_FilterPrimitives

class pysvg.attributes.PresentationAttributes_FilterPrimitives

The PresentationAttributes_FilterPrimitives class defines the PresentationAttributes_FilterPrimitives.attrib attribute set. The following presentation attributes apply to filter primitives

get_color_interpolation_filters()
set_color_interpolation_filters(color_interpolation_filters)

PresentationAttributes_FontSpecification

class pysvg.attributes.PresentationAttributes_FontSpecification

Bases: pysvg.attributes.FontAttrib

The PresentationAttributes_FontSpecification class defines the PresentationAttributes_FontSpecification.attrib attribute set. The following presentation attributes have to do with selecting a font to use.

get_font_family()
get_font_size()
get_font_size_adjust()
get_font_stretch()
get_font_style()
get_font_variant()
get_font_weight()
set_font_family(font_family)
set_font_size(font_size)
set_font_size_adjust(font_size_adjust)
set_font_stretch(font_stretch)
set_font_style(font_style)
set_font_variant(font_variant)
set_font_weight(font_weight)

PresentationAttributes_Gradients

class pysvg.attributes.PresentationAttributes_Gradients

Bases: pysvg.attributes.GradientAttrib

The PresentationAttributes_Gradients class defines the PresentationAttributes_Gradients.attrib attribute set. The following presentation attributes apply to gradient ‘stop’ elements.

get_stop_color()
get_stop_opacity()
set_stop_color(stop_color)
set_stop_opacity(stop_opacity)

PresentationAttributes_Graphics

class pysvg.attributes.PresentationAttributes_Graphics

Bases: pysvg.attributes.ClipAttrib, pysvg.attributes.CursorAttrib, pysvg.attributes.GraphicsAttrib, pysvg.attributes.MaskAttrib, pysvg.attributes.FilterAttrib

The PresentationAttributes_Graphics class defines the PresentationAttributes_Graphics.attrib attribute set. The following presentation attributes apply to graphics elements

get_clip_path()
get_clip_rule()
get_cursor()
get_display()
get_filter()
get_image_rendering()
get_mask()
get_opacity()
get_pointer_events()
get_shape_rendering()
get_text_rendering()
get_visibility()
set_clip_path(clip_path)
set_clip_rule(clip_rule)
set_cursor(cursor)
set_display(display)
set_filter(filter)
set_image_rendering(image_rendering)
set_mask(mask)
set_opacity(opacity)
set_pointer_events(pointer_events)
set_shape_rendering(shape_rendering)
set_text_rendering(text_rendering)
set_visibility(visibility)

PresentationAttributes_Images

class pysvg.attributes.PresentationAttributes_Images

The PresentationAttributes_Images class defines the PresentationAttributes_Images.attrib attribute set. The following presentation attributes apply to ‘image’ elements

get_color_profile()
set_color_profile(color_profile)

PresentationAttributes_LightingEffects

class pysvg.attributes.PresentationAttributes_LightingEffects

The PresentationAttributes_LightingEffects class defines the PresentationAttributes_LightingEffects.attrib attribute set. The following presentation attributes apply to ‘feDiffuseLighting’ and ‘feSpecularLighting’ elements

get_lighting_color()
set_lighting_color(lighting_color)

PresentationAttributes_Marker

class pysvg.attributes.PresentationAttributes_Marker

Bases: pysvg.attributes.MarkerAttrib

The PresentationAttributes_Marker class defines the PresentationAttributes_Marker.attrib attribute set. The following presentation attributes apply to marker operations

get_marker_end()
get_marker_mid()
get_marker_start()
set_marker_end(marker_end)
set_marker_mid(marker_mid)
set_marker_start(marker_start)

PresentationAttributes_TextContentElements

class pysvg.attributes.PresentationAttributes_TextContentElements

Bases: pysvg.attributes.TextContentAttrib

The PresentationAttributes_TextContentElements class defines the PresentationAttributes_TextContentElements.attrib attribute set. The following presentation attributes apply to text content elements

get_alignment_baseline()
get_baseline_shift()
get_direction()
get_dominant_baseline()
get_glyph_orientation_horizontal()
get_glyph_orientation_vertical()
get_kerning()
get_letter_spacing()
get_text_anchor()
get_text_decoration()
get_unicode_bidi()
get_word_spacing()
set_alignment_baseline(alignment_baseline)
set_baseline_shift(baseline_shift)
set_direction(direction)
set_dominant_baseline(dominant_baseline)
set_glyph_orientation_horizontal(glyph_orientation_horizontal)
set_glyph_orientation_vertical(glyph_orientation_vertical)
set_kerning(kerning)
set_letter_spacing(letter_spacing)
set_text_anchor(text_anchor)
set_text_decoration(text_decoration)
set_unicode_bidi(unicode_bidi)
set_word_spacing(word_spacing)

PresentationAttributes_TextElements

class pysvg.attributes.PresentationAttributes_TextElements

Bases: pysvg.attributes.TextAttrib

The following presentation attributes apply to ‘text’ elements

get_writing_mode()
set_writing_mode(writing_mode)

PresentationAttributes_Viewports

class pysvg.attributes.PresentationAttributes_Viewports

Bases: pysvg.attributes.ViewportAttrib

The following presentation attributes apply to elements that establish viewports

get_clip()
get_overflow()
set_clip(clip)
set_overflow(overflow)

PresentationAttributes_feFlood

class pysvg.attributes.PresentationAttributes_feFlood

The PresentationAttributes_feFlood class defines the PresentationAttributes_feFlood.attrib attribute set. The following presentation attributes apply to ‘feFlood’ elements.

get_flood_color()
get_flood_opacity()
set_flood_color(flood_color)
set_flood_opacity(flood_opacity)

StyleAttrib

class pysvg.attributes.StyleAttrib

The StyleAttrib class defines the Style.attrib attribute set.

get_class()
get_style()
set_class(aClass)
set_style(style)

TextAttrib

class pysvg.attributes.TextAttrib

The TextAttrib class defines the Text.attrib attribute set.

get_writing_mode()
set_writing_mode(writing_mode)

TextContentAttrib

class pysvg.attributes.TextContentAttrib

The TextContentAttrib class defines the TextContent.attrib attribute set.

get_alignment_baseline()
get_baseline_shift()
get_direction()
get_dominant_baseline()
get_glyph_orientation_horizontal()
get_glyph_orientation_vertical()
get_kerning()
get_letter_spacing()
get_text_anchor()
get_text_decoration()
get_unicode_bidi()
get_word_spacing()
set_alignment_baseline(alignment_baseline)
set_baseline_shift(baseline_shift)
set_direction(direction)
set_dominant_baseline(dominant_baseline)
set_glyph_orientation_horizontal(glyph_orientation_horizontal)
set_glyph_orientation_vertical(glyph_orientation_vertical)
set_kerning(kerning)
set_letter_spacing(letter_spacing)
set_text_anchor(text_anchor)
set_text_decoration(text_decoration)
set_unicode_bidi(unicode_bidi)
set_word_spacing(word_spacing)

ViewportAttrib

class pysvg.attributes.ViewportAttrib

The ViewportAttrib class defines the Viewport.attrib attribute set.

get_clip()
get_overflow()
set_clip(clip)
set_overflow(overflow)

XLinkAttrib

class pysvg.attributes.XLinkAttrib

The XLinkAttrib class defines the XLink.attrib, XLinkRequired.attrib, XLinkEmbed.attrib and XLinkReplace.attrib attribute sets.