eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'HTML::SVGTreeBuilder':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: SVGTreeBuilder (in HTML)


Inheritance:

   Object
   |
   +--HTML::AbstractTreeBuilder
      |
      +--HTML::SVGTreeBuilder

Package:
stx:goodies/webServer/htmlTree/svg
Category:
Net-Documents-SVG-TreeBuilder
Version:
rev: 1.6 date: 2019/07/13 12:21:50
user: cg
file: HTML__SVGTreeBuilder.st directory: goodies/webServer/htmlTree/svg
module: stx stc-classLibrary: svg

Description:


unfinished - will make it easier to construct valid HTML-trees eventually

copyright

COPYRIGHT (c) 2007 by eXept Software AG All Rights Reserved This software is furnished under a license and may be used only in accordance with the terms of that license and with the inclusion of the above copyright notice. This software may not be provided or otherwise made available to, or used by, any other person. No title to or ownership of the software is hereby transferred.

Instance protocol:

accessing
o  xmlString
xml of the generated tree so far

attributes
o  cx: aNumberOrString

o  cy: aNumberOrString

o  d: aString

o  fill: fillString

o  fillOpacity: aNumber

o  fontSize: aNumberOrString

o  height: aNumberOrPercentString

o  points: aString

o  r: aNumberOrString

o  rotate: aString

o  rx: aNumberOrString

o  ry: aNumberOrString

o  stroke: strokeString

o  strokeWidth: aNumberOrString

o  textAnchor: aString

o  transform: aString

o  type: typeString

o  viewBox: aRectangleOrArrayOrString

o  width: aNumberOrPercentString

o  x1: aNumberOrString

o  x2: aNumberOrString

o  x: aNumberOrString

o  y1: aNumberOrString

o  y2: aNumberOrString

o  y: aNumberOrString

building
o  circle

o  circleEnd

o  ellipse

o  ellipseEnd

o  g

o  gEnd

o  line

o  lineEnd

o  path

o  pathEnd

o  polygon

o  polygonEnd

o  polyline

o  polylineEnd

o  rect

o  rectEnd

o  svg

o  svgEnd

o  text

o  textEnd

o  tspan

o  tspanEnd

setup
o  beginDocument


Examples:


    |builder|

    builder := HTML::SVGTreeBuilder new.
    builder
       svg; 
         viewBox:(0@0 corner:270@400);
         width:'100%';
         height:'100%';
         g; id:'mainlayer';
           rect; fill:'red'; stroke:'black'; x:15; y:15; width:100; height:50; rectEnd;
           rect; fill:'blue'; stroke:'black'; x:150; y:15; width:100; height:50; rx:12; ry:18; rectEnd;
         gEnd;
       svgEnd.
    builder xmlString inspect.



ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Sat, 23 Nov 2024 09:31:07 GMT