java.lang.Object
com.arranger.jarl.base.BaseJarlObject
com.arranger.jarl.base.BaseTimedJarlObject
com.arranger.jarl.widget.BaseWidget
com.arranger.jarl.widget.ContainerWidget
- All Implemented Interfaces:
- java.lang.Cloneable, com.arranger.jarl.base.IJarlObject, com.arranger.jarl.base.IJarlObjectCollection, com.arranger.jarl.base.ITimedJarlObject, IWidget, IWidgetDef
- public abstract class ContainerWidget
- extends BaseWidget
- implements com.arranger.jarl.base.IJarlObjectCollection
ParentWidget created on Feb 24, 2003
| Methods inherited from class com.arranger.jarl.widget.BaseWidget |
addJarlObjectInfo, centerShape, cloneCollection, getColor, getFilters, getParent, getStrokes, getTraits, init, initInstance, paintShape, setColor, setParent |
m_initChildren
protected boolean m_initChildren
m_children
protected java.util.List m_children
ContainerWidget
public ContainerWidget()
getChildren
public java.util.Collection getChildren()
- Get any children widgets
If you want to modify this, you may
- Specified by:
getChildren in interface com.arranger.jarl.base.IJarlObjectCollection
paint
public void paint(com.arranger.jarl.base.IContext context,
java.awt.Graphics2D graphics2D)
- The main paint routine
- Specified by:
paint in interface IWidget- Overrides:
paint in class BaseWidget
paintChild
protected void paintChild(IWidget widget,
com.arranger.jarl.base.IContext context,
java.awt.Graphics2D graphics2D)
_paint
protected void _paint(com.arranger.jarl.base.IContext context,
java.awt.Graphics2D graphics2D)
- Called from within
paint(com.arranger.jarl.base.IContext, java.awt.Graphics2D) 55
- Specified by:
_paint in class BaseWidget
initializeChildren
protected void initializeChildren()
- You might want to iterate through the children initializing something?
initAttributes
protected void initAttributes(com.arranger.jarl.base.IContext context)
- Always remember some attrs might not be there
- Overrides:
initAttributes in class BaseWidget
clone
public java.lang.Object clone()
- Description copied from class:
java.lang.Object
- This method may be called to create a new copy of the
Object. The typical behavior is as follows:
o == o.clone() is false
o.getClass() == o.clone().getClass()
is true
o.equals(o) is true
However, these are not strict requirements, and may
be violated if necessary. Of the three requirements, the
last is the most commonly violated, particularly if the
subclass does not override Object.equals(Object)>Object.equals(Object) 55 .
If the Object you call clone() on does not implement
java.lang.Cloneable (which is a placeholder interface), then
a CloneNotSupportedException is thrown. Notice that
Object does not implement Cloneable; this method exists
as a convenience for subclasses that do.
Object's implementation of clone allocates space for the
new Object using the correct class, without calling any
constructors, and then fills in all of the new field values
with the old field values. Thus, it is a shallow copy.
However, subclasses are permitted to make a deep copy.
All array types implement Cloneable, and override
this method as follows (it should never fail):
public Object clone()
{
try
{
super.clone();
}
catch (CloneNotSupportedException e)
{
throw new InternalError(e.getMessage());
}
}
- Specified by:
clone in interface IWidget- Overrides:
clone in class BaseWidget
setStartTime
public void setStartTime(com.arranger.jarl.base.Time time)
- Specified by:
setStartTime in interface com.arranger.jarl.base.ITimedJarlObject
setEndTime
public void setEndTime(com.arranger.jarl.base.Time time)
- Specified by:
setEndTime in interface com.arranger.jarl.base.ITimedJarlObject