org.umber.crucible.layout
Class LayoutAreaBase
java.lang.Object
org.umber.crucible.layout.LayoutAreaBase
- All Implemented Interfaces:
- java.lang.Comparable, ILayoutArea, IVisible
- Direct Known Subclasses:
- DefaultLayoutArea, TextLayoutArea
- public abstract class LayoutAreaBase
- extends java.lang.Object
- implements ILayoutArea
Base implementation of ILayoutArea.
- Author:
- jsheets
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LayoutAreaBase
public LayoutAreaBase(IContent data)
getContent
public IContent getContent()
- Specified by:
getContent
in interface ILayoutArea
getPosition
public Rectangle getPosition()
- Specified by:
getPosition
in interface ILayoutArea
setPosition
public void setPosition(Rectangle position)
- Specified by:
setPosition
in interface ILayoutArea
isVisible
public boolean isVisible()
- Specified by:
isVisible
in interface IVisible
setVisible
public final void setVisible(boolean visible)
compareTo
public int compareTo(java.lang.Object o)
- Sort areas according to Rectangle position.
- Specified by:
compareTo
in interface java.lang.Comparable
- Parameters:
o
- other area
- Returns:
- -1 if object is before, or +1 if after