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 void
addArea(Area a)
LogicalArea
findArea(Area area)
Scans a logical area subtree rooted in this logical area for the given area.int
getAreaCount()
List<Area>
getAreas()
Area
getFirstArea()
Tag
getMainTag()
String
getText()
void
setMainTag(Tag mainTag)
void
setText(String text)
String
toString()
-
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:
addArea
in interfaceLogicalArea
-
getAreas
public List<Area> getAreas()
- Specified by:
getAreas
in interfaceLogicalArea
-
getFirstArea
public Area getFirstArea()
- Specified by:
getFirstArea
in interfaceLogicalArea
-
getAreaCount
public int getAreaCount()
- Specified by:
getAreaCount
in interfaceLogicalArea
-
setText
public void setText(String text)
- Specified by:
setText
in interfaceLogicalArea
-
getText
public String getText()
- Specified by:
getText
in interfaceLogicalArea
-
setMainTag
public void setMainTag(Tag mainTag)
- Specified by:
setMainTag
in interfaceLogicalArea
-
getMainTag
public Tag getMainTag()
- Specified by:
getMainTag
in interfaceLogicalArea
-
findArea
public LogicalArea findArea(Area area)
Description copied from interface:LogicalArea
Scans a logical area subtree rooted in this logical area for the given area.- Specified by:
findArea
in interfaceLogicalArea
- Parameters:
area
- the layout area to search for- Returns:
- the deepest logical area that contains the given area or
null
when the given area is not present in the given subtree
-
-