Package cz.vutbr.fit.layout.impl
Class DefaultLogicalArea
- java.lang.Object
-
- cz.vutbr.fit.layout.impl.DefaultTreeNode<LogicalArea>
-
- cz.vutbr.fit.layout.impl.DefaultLogicalArea
-
- All Implemented Interfaces:
GenericTreeNode<LogicalArea>,LogicalArea
- Direct Known Subclasses:
RDFLogicalArea
public class DefaultLogicalArea extends DefaultTreeNode<LogicalArea> implements LogicalArea
Default LogicalArea implementation.- Author:
- burgetr
-
-
Constructor Summary
Constructors Constructor Description DefaultLogicalArea()DefaultLogicalArea(Area src)DefaultLogicalArea(Area src, String text)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddArea(Area a)LogicalAreafindArea(Area area)Scans a logical area subtree rooted in this logical area for the given area.intgetAreaCount()List<Area>getAreas()AreagetFirstArea()TaggetMainTag()StringgetText()voidsetMainTag(Tag mainTag)voidsetText(String text)StringtoString()-
Methods inherited from class cz.vutbr.fit.layout.impl.DefaultTreeNode
appendChild, appendChildren, getDepth, getChildAt, getChildCount, getChildren, getIndex, getLeafCount, getNextSibling, getParent, getPreviousSibling, getRoot, childrenChanged, insertChild, isLeaf, isRoot, removeAllChildren, removeChild, removeChild, setParent, setRoot
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface cz.vutbr.fit.layout.model.GenericTreeNode
appendChild, appendChildren, getDepth, getChildAt, getChildCount, getChildren, getIndex, getLeafCount, getNextSibling, getParent, getPreviousSibling, getRoot, childrenChanged, insertChild, isLeaf, isRoot, removeAllChildren, removeChild, removeChild, setParent, setRoot
-
-
-
-
Method Detail
-
addArea
public void addArea(Area a)
- Specified by:
addAreain interfaceLogicalArea
-
getAreas
public List<Area> getAreas()
- Specified by:
getAreasin interfaceLogicalArea
-
getFirstArea
public Area getFirstArea()
- Specified by:
getFirstAreain interfaceLogicalArea
-
getAreaCount
public int getAreaCount()
- Specified by:
getAreaCountin interfaceLogicalArea
-
setText
public void setText(String text)
- Specified by:
setTextin interfaceLogicalArea
-
getText
public String getText()
- Specified by:
getTextin interfaceLogicalArea
-
setMainTag
public void setMainTag(Tag mainTag)
- Specified by:
setMainTagin interfaceLogicalArea
-
getMainTag
public Tag getMainTag()
- Specified by:
getMainTagin interfaceLogicalArea
-
findArea
public LogicalArea findArea(Area area)
Description copied from interface:LogicalAreaScans a logical area subtree rooted in this logical area for the given area.- Specified by:
findAreain interfaceLogicalArea- Parameters:
area- the layout area to search for- Returns:
- the deepest logical area that contains the given area or
nullwhen the given area is not present in the given subtree
-
-