org.umber.crucible.layout
Class LayoutAreaBase

java.lang.Object
  extended byorg.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

Constructor Summary
LayoutAreaBase(IContent data)
           
 
Method Summary
 int compareTo(java.lang.Object o)
          Sort areas according to Rectangle position.
 IContent getContent()
           
 Rectangle getPosition()
           
 boolean isVisible()
           
 void setPosition(Rectangle position)
           
 void setVisible(boolean visible)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LayoutAreaBase

public LayoutAreaBase(IContent data)
Method Detail

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