public class DefaultLogicalArea extends GenericTreeNode implements LogicalArea
| Constructor and Description |
|---|
DefaultLogicalArea() |
DefaultLogicalArea(Area src) |
DefaultLogicalArea(Area src,
String text) |
| Modifier and Type | Method and Description |
|---|---|
void |
addArea(Area a) |
void |
appendChild(LogicalArea child)
Appends a new child area to the list of child areas of this area.
|
int |
getAreaCount() |
List<Area> |
getAreas() |
LogicalArea |
getChildArea(int index)
Obtains the n-th child area.
|
List<LogicalArea> |
getChildAreas()
Returns the list of all the child areas.
|
int |
getIndex(LogicalArea child)
Returns the index of the specified child in this node's child array.
|
Tag |
getMainTag() |
LogicalArea |
getNextSibling()
Obtains the next siblibg of this area.
|
LogicalArea |
getParentArea()
Obtains the parent area of this area.
|
LogicalArea |
getPreviousSibling()
Obtains the previous siblibg of this area.
|
String |
getText() |
void |
insertChild(LogicalArea child,
int index)
Inserts a new child at the given position.
|
void |
removeChild(LogicalArea child)
Removes a child area from its parent.
|
void |
setMainTag(Tag mainTag) |
void |
setText(String text) |
String |
toString() |
add, getDepth, getChildAt, getChildCount, getChildren, getIndex, getNextSiblingNode, getParent, getPreviousSiblingNode, getRoot, insert, isLeaf, isRoot, remove, remove, removeAllChildrenclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDepth, getChildCount, isLeafpublic DefaultLogicalArea()
public DefaultLogicalArea(Area src)
public void addArea(Area a)
addArea in interface LogicalAreapublic List<Area> getAreas()
getAreas in interface LogicalAreapublic int getAreaCount()
getAreaCount in interface LogicalAreapublic void setText(String text)
setText in interface LogicalAreapublic String getText()
getText in interface LogicalAreapublic void setMainTag(Tag mainTag)
setMainTag in interface LogicalAreapublic Tag getMainTag()
getMainTag in interface LogicalAreapublic LogicalArea getParentArea()
AreaTreeNodegetParentArea in interface AreaTreeNode<LogicalArea>null when this is the root area.public LogicalArea getPreviousSibling()
AreaTreeNodegetPreviousSibling in interface AreaTreeNode<LogicalArea>null when this is the first child.public LogicalArea getNextSibling()
AreaTreeNodegetNextSibling in interface AreaTreeNode<LogicalArea>null when this is the last child.public LogicalArea getChildArea(int index) throws ArrayIndexOutOfBoundsException
AreaTreeNodegetChildArea in interface AreaTreeNode<LogicalArea>index - the child indexArrayIndexOutOfBoundsExceptionpublic List<LogicalArea> getChildAreas()
AreaTreeNodegetChildAreas in interface AreaTreeNode<LogicalArea>public void appendChild(LogicalArea child)
AreaTreeNodeappendChild in interface AreaTreeNode<LogicalArea>child - The new child to be appendedpublic void insertChild(LogicalArea child, int index)
AreaTreeNodeinsertChild in interface AreaTreeNode<LogicalArea>child - the child to be insertedindex - the index of the new childpublic void removeChild(LogicalArea child)
AreaTreeNoderemoveChild in interface AreaTreeNode<LogicalArea>child - The new child to be appendedpublic int getIndex(LogicalArea child)
AreaTreeNodegetIndex in interface AreaTreeNode<LogicalArea>child - the child node to searchCopyright © 2015. All rights reserved.