remove the wrong abstraction of IVisualDecorator

Signed-off-by: Florian Thienel <florian@thienel.org>
diff --git a/org.eclipse.vex.core/src/org/eclipse/vex/core/internal/boxes/HorizontalBar.java b/org.eclipse.vex.core/src/org/eclipse/vex/core/internal/boxes/HorizontalBar.java
index 394bb14..7c89188 100644
--- a/org.eclipse.vex.core/src/org/eclipse/vex/core/internal/boxes/HorizontalBar.java
+++ b/org.eclipse.vex.core/src/org/eclipse/vex/core/internal/boxes/HorizontalBar.java
@@ -26,7 +26,6 @@
 	private int width;
 	private int height;
 	private Color color;
-	private IVisualDecorator<IStructuralBox> visualDecorator;
 
 	@Override
 	public void setParent(final IBox parent) {
@@ -128,22 +127,4 @@
 		graphics.setColor(colorResource);
 		graphics.fillRect(0, 0, width, height);
 	}
-
-	@Override
-	public void setVisualDecorator(final IVisualDecorator<IStructuralBox> visualDecorator) {
-		this.visualDecorator = visualDecorator;
-
-	}
-
-	@Override
-	public void resetVisualDecorator() {
-		visualDecorator = null;
-	}
-
-	@Override
-	public void applyVisualDecorator() {
-		if (visualDecorator != null) {
-			visualDecorator.decorate(this);
-		}
-	}
 }
diff --git a/org.eclipse.vex.core/src/org/eclipse/vex/core/internal/boxes/IStructuralBox.java b/org.eclipse.vex.core/src/org/eclipse/vex/core/internal/boxes/IStructuralBox.java
index 6234319..5187805 100644
--- a/org.eclipse.vex.core/src/org/eclipse/vex/core/internal/boxes/IStructuralBox.java
+++ b/org.eclipse.vex.core/src/org/eclipse/vex/core/internal/boxes/IStructuralBox.java
@@ -25,10 +25,4 @@
 	 * The bounds are always relative to the parent box.
 	 */
 	Rectangle getBounds();
-
-	void setVisualDecorator(IVisualDecorator<IStructuralBox> visualDecorator);
-
-	void resetVisualDecorator();
-
-	void applyVisualDecorator();
 }
diff --git a/org.eclipse.vex.core/src/org/eclipse/vex/core/internal/boxes/IVisualDecorator.java b/org.eclipse.vex.core/src/org/eclipse/vex/core/internal/boxes/IVisualDecorator.java
deleted file mode 100644
index 31899fa..0000000
--- a/org.eclipse.vex.core/src/org/eclipse/vex/core/internal/boxes/IVisualDecorator.java
+++ /dev/null
@@ -1,15 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2016 Florian Thienel and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * 		Florian Thienel - initial API and implementation
- *******************************************************************************/
-package org.eclipse.vex.core.internal.boxes;
-
-public interface IVisualDecorator<T extends IBox> {
-	void decorate(T box);
-}
\ No newline at end of file
diff --git a/org.eclipse.vex.core/src/org/eclipse/vex/core/internal/boxes/List.java b/org.eclipse.vex.core/src/org/eclipse/vex/core/internal/boxes/List.java
index 773bf34..b09a4fe 100644
--- a/org.eclipse.vex.core/src/org/eclipse/vex/core/internal/boxes/List.java
+++ b/org.eclipse.vex.core/src/org/eclipse/vex/core/internal/boxes/List.java
@@ -188,19 +188,4 @@
 	public void paint(final Graphics graphics) {
 		ChildBoxPainter.paint(component, graphics);
 	}
-
-	@Override
-	public void setVisualDecorator(final IVisualDecorator<IStructuralBox> visualDecorator) {
-		// ignore, will be removed anyway
-	}
-
-	@Override
-	public void resetVisualDecorator() {
-		// ignore, will be removed anyway
-	}
-
-	@Override
-	public void applyVisualDecorator() {
-		// ignore, will be removed anyway
-	}
 }
diff --git a/org.eclipse.vex.core/src/org/eclipse/vex/core/internal/boxes/ListItem.java b/org.eclipse.vex.core/src/org/eclipse/vex/core/internal/boxes/ListItem.java
index b93e59c..2c58e9a 100644
--- a/org.eclipse.vex.core/src/org/eclipse/vex/core/internal/boxes/ListItem.java
+++ b/org.eclipse.vex.core/src/org/eclipse/vex/core/internal/boxes/ListItem.java
@@ -38,8 +38,6 @@
 	private Paragraph bulletContainer;
 	private IStructuralBox component;
 
-	private IVisualDecorator<IStructuralBox> visualDecorator;
-
 	@Override
 	public void setParent(final IBox parent) {
 		this.parent = parent;
@@ -362,22 +360,4 @@
 		}
 		ChildBoxPainter.paint(component, graphics);
 	}
-
-	@Override
-	public void setVisualDecorator(final IVisualDecorator<IStructuralBox> visualDecorator) {
-		this.visualDecorator = visualDecorator;
-
-	}
-
-	@Override
-	public void resetVisualDecorator() {
-		visualDecorator = null;
-	}
-
-	@Override
-	public void applyVisualDecorator() {
-		if (visualDecorator != null) {
-			visualDecorator.decorate(this);
-		}
-	}
 }
diff --git a/org.eclipse.vex.core/src/org/eclipse/vex/core/internal/boxes/Paragraph.java b/org.eclipse.vex.core/src/org/eclipse/vex/core/internal/boxes/Paragraph.java
index 59d4ca5..95dd647 100644
--- a/org.eclipse.vex.core/src/org/eclipse/vex/core/internal/boxes/Paragraph.java
+++ b/org.eclipse.vex.core/src/org/eclipse/vex/core/internal/boxes/Paragraph.java
@@ -32,7 +32,6 @@
 
 	private final LinkedList<IInlineBox> children = new LinkedList<IInlineBox>();
 	private final LineArrangement lines = new LineArrangement();
-	private IVisualDecorator<IStructuralBox> visualDecorator;
 
 	@Override
 	public void setParent(final IBox parent) {
@@ -208,22 +207,4 @@
 			line.paint(graphics);
 		}
 	}
-
-	@Override
-	public void setVisualDecorator(final IVisualDecorator<IStructuralBox> visualDecorator) {
-		this.visualDecorator = visualDecorator;
-
-	}
-
-	@Override
-	public void resetVisualDecorator() {
-		visualDecorator = null;
-	}
-
-	@Override
-	public void applyVisualDecorator() {
-		if (visualDecorator != null) {
-			visualDecorator.decorate(this);
-		}
-	}
 }
diff --git a/org.eclipse.vex.core/src/org/eclipse/vex/core/internal/boxes/StructuralFrame.java b/org.eclipse.vex.core/src/org/eclipse/vex/core/internal/boxes/StructuralFrame.java
index 0ddec28..8c05e4e 100644
--- a/org.eclipse.vex.core/src/org/eclipse/vex/core/internal/boxes/StructuralFrame.java
+++ b/org.eclipse.vex.core/src/org/eclipse/vex/core/internal/boxes/StructuralFrame.java
@@ -31,7 +31,6 @@
 	private Color backgroundColor = null;
 
 	private IStructuralBox component;
-	private IVisualDecorator<IStructuralBox> visualDecorator;
 
 	@Override
 	public void setParent(final IBox parent) {
@@ -231,22 +230,4 @@
 	private void paintComponent(final Graphics graphics) {
 		ChildBoxPainter.paint(component, graphics);
 	}
-
-	@Override
-	public void setVisualDecorator(final IVisualDecorator<IStructuralBox> visualDecorator) {
-		this.visualDecorator = visualDecorator;
-
-	}
-
-	@Override
-	public void resetVisualDecorator() {
-		visualDecorator = null;
-	}
-
-	@Override
-	public void applyVisualDecorator() {
-		if (visualDecorator != null) {
-			visualDecorator.decorate(this);
-		}
-	}
 }
diff --git a/org.eclipse.vex.core/src/org/eclipse/vex/core/internal/boxes/StructuralNodeReference.java b/org.eclipse.vex.core/src/org/eclipse/vex/core/internal/boxes/StructuralNodeReference.java
index 134453c..a9a8ba2 100644
--- a/org.eclipse.vex.core/src/org/eclipse/vex/core/internal/boxes/StructuralNodeReference.java
+++ b/org.eclipse.vex.core/src/org/eclipse/vex/core/internal/boxes/StructuralNodeReference.java
@@ -38,7 +38,6 @@
 	private INode node;
 	private boolean canContainText;
 	private boolean containsInlineContent;
-	private IVisualDecorator<IStructuralBox> visualDecorator;
 
 	@Override
 	public void setParent(final IBox parent) {
@@ -322,24 +321,6 @@
 	}
 
 	@Override
-	public void setVisualDecorator(final IVisualDecorator<IStructuralBox> visualDecorator) {
-		this.visualDecorator = visualDecorator;
-
-	}
-
-	@Override
-	public void resetVisualDecorator() {
-		visualDecorator = null;
-	}
-
-	@Override
-	public void applyVisualDecorator() {
-		if (visualDecorator != null) {
-			visualDecorator.decorate(this);
-		}
-	}
-
-	@Override
 	public String toString() {
 		String result = "StructuralNodeReference{ ";
 		result += "x: " + left + ", y: " + top + ", width: " + width + ", height: " + height;
diff --git a/org.eclipse.vex.core/src/org/eclipse/vex/core/internal/boxes/VerticalBlock.java b/org.eclipse.vex.core/src/org/eclipse/vex/core/internal/boxes/VerticalBlock.java
index f4da57c..43c6324 100644
--- a/org.eclipse.vex.core/src/org/eclipse/vex/core/internal/boxes/VerticalBlock.java
+++ b/org.eclipse.vex.core/src/org/eclipse/vex/core/internal/boxes/VerticalBlock.java
@@ -31,7 +31,6 @@
 	private int width;
 	private int height;
 	private final ArrayList<IStructuralBox> children = new ArrayList<IStructuralBox>();
-	private IVisualDecorator<IStructuralBox> visualDecorator;
 
 	@Override
 	public void setParent(final IBox parent) {
@@ -169,22 +168,4 @@
 	public void paint(final Graphics graphics) {
 		ChildBoxPainter.paint(children, graphics);
 	}
-
-	@Override
-	public void setVisualDecorator(final IVisualDecorator<IStructuralBox> visualDecorator) {
-		this.visualDecorator = visualDecorator;
-
-	}
-
-	@Override
-	public void resetVisualDecorator() {
-		visualDecorator = null;
-	}
-
-	@Override
-	public void applyVisualDecorator() {
-		if (visualDecorator != null) {
-			visualDecorator.decorate(this);
-		}
-	}
 }
diff --git a/org.eclipse.vex.core/src/org/eclipse/vex/core/internal/widget/DOMVisualization.java b/org.eclipse.vex.core/src/org/eclipse/vex/core/internal/widget/DOMVisualization.java
index abd304e..eedf7a1 100644
--- a/org.eclipse.vex.core/src/org/eclipse/vex/core/internal/widget/DOMVisualization.java
+++ b/org.eclipse.vex.core/src/org/eclipse/vex/core/internal/widget/DOMVisualization.java
@@ -114,37 +114,31 @@
 			@Override
 			public void visit(final VerticalBlock box) {
 				box.replaceChildren(modifiedBoxes, boxModelBuilder.visualizeStructure(node));
-				box.applyVisualDecorator();
 			}
 
 			@Override
 			public void visit(final StructuralFrame box) {
 				box.setComponent(boxModelBuilder.visualizeStructure(node));
-				box.applyVisualDecorator();
 			}
 
 			@Override
 			public void visit(final StructuralNodeReference box) {
 				box.setComponent(boxModelBuilder.visualizeStructure(node));
-				box.applyVisualDecorator();
 			}
 
 			@Override
 			public void visit(final ListItem box) {
 				box.setComponent(boxModelBuilder.visualizeStructure(node));
-				box.applyVisualDecorator();
 			}
 
 			@Override
 			public void visit(final List box) {
 				box.setComponent(boxModelBuilder.visualizeStructure(node));
-				box.applyVisualDecorator();
 			}
 
 			@Override
 			public void visit(final Paragraph box) {
 				box.replaceChildren(modifiedBoxes, boxModelBuilder.visualizeInline(node));
-				box.applyVisualDecorator();
 			}
 
 			@Override