Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.arranger.jarl.widget
Class ContainerWidget  view ContainerWidget download ContainerWidget.java

java.lang.Object
  extended bycom.arranger.jarl.base.BaseJarlObject
      extended bycom.arranger.jarl.base.BaseTimedJarlObject
          extended bycom.arranger.jarl.widget.BaseWidget
              extended bycom.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


Field Summary
protected  java.util.List m_children
           
protected  boolean m_initChildren
           
 
Fields inherited from class com.arranger.jarl.widget.BaseWidget
m_basicStroke, m_color, m_debugBorder, m_fill, m_filters, m_parent, m_strokes, m_strokeWidth, m_traits
 
Fields inherited from class com.arranger.jarl.base.BaseTimedJarlObject
m_endTime, m_startTime, m_totalTime
 
Fields inherited from class com.arranger.jarl.base.BaseJarlObject
m_cachedTime, m_className, m_configElement, m_useAbsoluteTime, m_zOrder
 
Constructor Summary
ContainerWidget()
           
 
Method Summary
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
 java.lang.Object clone()
          This method may be called to create a new copy of the Object.
 java.util.Collection getChildren()
          Get any children widgets If you want to modify this, you may
protected  void initAttributes(com.arranger.jarl.base.IContext context)
          Always remember some attrs might not be there
protected  void initializeChildren()
          You might want to iterate through the children initializing something?
 void paint(com.arranger.jarl.base.IContext context, java.awt.Graphics2D graphics2D)
          The main paint routine
protected  void paintChild(IWidget widget, com.arranger.jarl.base.IContext context, java.awt.Graphics2D graphics2D)
           
 void setEndTime(com.arranger.jarl.base.Time time)
           
 void setStartTime(com.arranger.jarl.base.Time time)
           
 
Methods inherited from class com.arranger.jarl.widget.BaseWidget
addJarlObjectInfo, centerShape, cloneCollection, getColor, getFilters, getParent, getStrokes, getTraits, init, initInstance, paintShape, setColor, setParent
 
Methods inherited from class com.arranger.jarl.base.BaseTimedJarlObject
checkTime, getEndTime, getStartTime, getTotalTime
 
Methods inherited from class com.arranger.jarl.base.BaseJarlObject
getConfigElement, getJarlObjectInfo, getName, getZOrder, initDef, populateInfo, postCheckTime, preCheckTime, setZOrder
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.arranger.jarl.base.ITimedJarlObject
getEndTime, getStartTime, getTotalTime
 
Methods inherited from interface com.arranger.jarl.base.IJarlObject
getConfigElement, getJarlObjectInfo, getZOrder, postCheckTime, preCheckTime, setZOrder
 
Methods inherited from interface com.arranger.jarl.widget.IWidgetDef
initDef
 

Field Detail

m_initChildren

protected boolean m_initChildren

m_children

protected java.util.List m_children
Constructor Detail

ContainerWidget

public ContainerWidget()
Method Detail

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