update wiring.blobs example
Fri Dec 2 13:37:32 WET 2005 Malcolm.Wallace@cs.york.ac.uk
* update wiring.blobs example
The wiring example needs to track the recent addition of the Palette as
a stored element of the file. Also, track the change in representation
of node shape - now Either String Shape, i.e. a reference to a palette
item or the stored shape itself.
{
hunk ./wiring.blobs 7
+ ><Palette
+ ><Palette
+ ><string
+ ><![CDATA["circle"]]></string
+ ><Circle
+ ><ShapeStyle
+ ><int value="1"
+ /><RGB
+ ><int value="0"
+ /><int value="0"
+ /><int value="0"/></RGB
+ ><RGB
+ ><int value="128"
+ /><int value="200"
+ /><int value="128"/></RGB></ShapeStyle
+ ><double value="0.5"/></Circle
+ ><maybe-list-int
+ ><list-int/></maybe-list-int
+ ><string
+ ><![CDATA["square"]]></string
+ ><Polygon
+ ><ShapeStyle
+ ><int value="2"
+ /><RGB
+ ><int value="0"
+ /><int value="0"
+ /><int value="0"/></RGB
+ ><RGB
+ ><int value="200"
+ /><int value="128"
+ /><int value="200"/></RGB></ShapeStyle
+ ><list-DoublePoint
+ ><X
+ >-0.5</X
+ ><Y
+ >-0.5</Y
+ ><X
+ >0.5</X
+ ><Y
+ >-0.5</Y
+ ><X
+ >0.5</X
+ ><Y
+ >0.5</Y
+ ><X
+ >-0.5</X
+ ><Y
+ >0.5</Y></list-DoublePoint></Polygon
+ ><maybe-list-int
+ ><list-int/></maybe-list-int
+ ><string
+ ><![CDATA["triangle left"]]></string
+ ><Polygon
+ ><ShapeStyle
+ ><int value="1"
+ /><RGB
+ ><int value="0"
+ /><int value="0"
+ /><int value="0"/></RGB
+ ><RGB
+ ><int value="128"
+ /><int value="200"
+ /><int value="200"/></RGB></ShapeStyle
+ ><list-DoublePoint
+ ><X
+ >-0.5</X
+ ><Y
+ >0.0</Y
+ ><X
+ >0.5</X
+ ><Y
+ >-0.5</Y
+ ><X
+ >0.5</X
+ ><Y
+ >0.5</Y></list-DoublePoint></Polygon
+ ><maybe-list-int
+ ><list-int/></maybe-list-int
+ ><string
+ ><![CDATA["triangle right"]]></string
+ ><Polygon
+ ><ShapeStyle
+ ><int value="1"
+ /><RGB
+ ><int value="0"
+ /><int value="0"
+ /><int value="0"/></RGB
+ ><RGB
+ ><int value="128"
+ /><int value="200"
+ /><int value="200"/></RGB></ShapeStyle
+ ><list-DoublePoint
+ ><X
+ >-0.5</X
+ ><Y
+ >-0.5</Y
+ ><X
+ >-0.5</X
+ ><Y
+ >0.5</Y
+ ><X
+ >0.5</X
+ ><Y
+ >0.0</Y></list-DoublePoint></Polygon
+ ><maybe-list-int
+ ><list-int/></maybe-list-int
+ ><string
+ ><![CDATA["wire"]]></string
+ ><Composite
+ ><list-Shape
+ ><Lines
+ ><ShapeStyle
+ ><int value="2"
+ /><RGB
+ ><int value="0"
+ /><int value="0"
+ /><int value="0"/></RGB
+ ><RGB
+ ><int value="128"
+ /><int value="128"
+ /><int value="128"/></RGB></ShapeStyle
+ ><list-DoublePoint
+ ><X
+ >0.0</X
+ ><Y
+ >-0.5</Y
+ ><X
+ >-0.2</X
+ ><Y
+ >0.5</Y></list-DoublePoint></Lines
+ ><Lines
+ ><ShapeStyle
+ ><int value="2"
+ /><RGB
+ ><int value="0"
+ /><int value="0"
+ /><int value="0"/></RGB
+ ><RGB
+ ><int value="128"
+ /><int value="128"
+ /><int value="128"/></RGB></ShapeStyle
+ ><list-DoublePoint
+ ><X
+ >0.2</X
+ ><Y
+ >-0.5</Y
+ ><X
+ >0.0</X
+ ><Y
+ >0.5</Y></list-DoublePoint></Lines></list-Shape></Composite
+ ><maybe-list-int
+ ><list-int/></maybe-list-int></Palette></Palette
hunk ./wiring.blobs 170
+ ><Right-Shape
hunk ./wiring.blobs 198
- >0.5</Y></list-DoublePoint></Polygon></Shape
+ >0.5</Y></list-DoublePoint></Polygon></Right-Shape></Shape
hunk ./wiring.blobs 210
+ ><Right-Shape
hunk ./wiring.blobs 234
- >0.5</Y></list-DoublePoint></Polygon></Shape
+ >0.5</Y></list-DoublePoint></Polygon></Right-Shape></Shape
hunk ./wiring.blobs 246
+ ><Right-Shape
hunk ./wiring.blobs 270
- >0.0</Y></list-DoublePoint></Polygon></Shape
+ >0.0</Y></list-DoublePoint></Polygon></Right-Shape></Shape
hunk ./wiring.blobs 282
+ ><Right-Shape
hunk ./wiring.blobs 294
- ><double value="0.5"/></Circle></Shape
+ ><double value="0.5"/></Circle></Right-Shape></Shape
hunk ./wiring.blobs 306
+ ><Right-Shape
hunk ./wiring.blobs 348
- >0.5</Y></list-DoublePoint></Lines></list-Shape></Composite></Shape
+ >0.5</Y></list-DoublePoint></Lines></list-Shape></Composite></Right-Shape></Shape
hunk ./wiring.blobs 360
+ ><Right-Shape
hunk ./wiring.blobs 402
- >0.5</Y></list-DoublePoint></Lines></list-Shape></Composite></Shape
+ >0.5</Y></list-DoublePoint></Lines></list-Shape></Composite></Right-Shape></Shape
}