net.trajano.twiff.renderer
Class RemovedElement

java.lang.Object
  extended by net.trajano.twiff.renderer.RemovedElement
All Implemented Interfaces:
CompositePageElement, PageElement

public class RemovedElement
extends Object
implements CompositePageElement

This is a simple element that is removed from the tree.

Author:
Archimedes Trajano

Constructor Summary
RemovedElement()
          This is a simplified constructor used for testing.
 
Method Summary
 void accept(PageElementVisitor visitor)
          Does nothing since this would be ignored.
 void addElement(PageElement element)
          Does nothing.
 int getColumnNumber()
          Return the column number where the current page element ends.
 List<PageElement> getElements()
          Returns the sub-elements in the element.
 int getLineNumber()
          Return the line number where the current page element ends.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemovedElement

public RemovedElement()
This is a simplified constructor used for testing.

Method Detail

accept

public final void accept(PageElementVisitor visitor)
Does nothing since this would be ignored.

Specified by:
accept in interface PageElement
Parameters:
visitor - visitor.

addElement

public void addElement(PageElement element)
Does nothing.

Specified by:
addElement in interface CompositePageElement
Parameters:
element -

getElements

public List<PageElement> getElements()
Returns the sub-elements in the element.

Specified by:
getElements in interface CompositePageElement
Returns:
sub-elements.

getColumnNumber

public int getColumnNumber()
Description copied from interface: PageElement
Return the column number where the current page element ends.

Specified by:
getColumnNumber in interface PageElement
Returns:
the column number. -1 if unavailable.
See Also:
PageElement.getColumnNumber()

getLineNumber

public int getLineNumber()
Description copied from interface: PageElement
Return the line number where the current page element ends.

Specified by:
getLineNumber in interface PageElement
Returns:
the line number. -1 if unavailable.
See Also:
PageElement.getLineNumber()


Copyright © 2004-2005 trajano.net. All Rights Reserved.