|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--quicktime.app.spaces.SimpleSpace
|
+--quicktime.app.display.GroupDrawable
This forms the base class for grouping QTDrawable objects within a single display space that is controlled by this group.
QTDrawable are drawn in their layer order (Short.minimum value is frontmost, Short.maximum value is furthest back). You can change a position or size of a member by interacting directly with the QTDrawable member itself but you must notify the group of any changes in the display characteristics of the QTDrawable by calling memberChanged().
QTDrawable members can also be positioned within a GroupDrawable using alignment values. An alignment of 0 will place the member at the top and/or left position. An alignment value of 1 will place the member so that it's bottom and/or right is aligned with the bottom of the GroupDrawable's display space.
To reset the layer of an object you use the QTDrawable's Layerable object. QTDrawable objects do not contain any sense of layering, so the GroupDrawable uses the GroupMember objects to contain the information about a member's layer characteristics.
DirectGroup| Field Summary | |
protected Region |
clip
Deprecated. The current clip region of the group * @deprecated since QTJava 6.1 |
protected java.util.Vector |
vec
Deprecated. since QTJava 6.1 |
| Fields inherited from class quicktime.app.spaces.SimpleSpace |
containedSpaces, controllersVec, ticklers, timer |
| Fields inherited from interface quicktime.app.time.Ticklish |
kScale |
| Constructor Summary | |
protected |
GroupDrawable(java.awt.Dimension initialSize,
QDColor bc,
int scale,
int period,
Protocol p)
Deprecated. since QTJava 4.0 |
protected |
GroupDrawable(QDDimension initialSize,
QDColor bc,
int scale,
int period,
Protocol p)
Deprecated. since QTJava 6.1 |
| Method Summary | |
Region |
getBackgroundClip()
Deprecated. since QTJava 6.1 |
QDColor |
getBackgroundColor()
Deprecated. since QTJava 6.1 |
int |
getBackLayer()
Deprecated. since QTJava 6.1 |
Region |
getClip()
Deprecated. since QTJava 6.1 |
QDRect |
getDisplayBounds()
Deprecated. since QTJava 6.1 |
int |
getFrontLayer()
Deprecated. since QTJava 6.1 |
GroupMember |
getGroupMember(java.lang.Object member)
Deprecated. since QTJava 6.1 |
QDGraphics |
getGWorld()
Deprecated. since QTJava 6.1 |
java.awt.Dimension |
getInitialSize()
Deprecated. since QTJava 4.0 |
Layerable |
getLayerable(java.lang.Object member)
Deprecated. since QTJava 6.1 |
Matrix |
getMatrix()
Deprecated. since QTJava 6.1 |
QDDimension |
getOriginalSize()
Deprecated. since QTJava 6.1 |
Transformable |
getTransformable(java.lang.Object member)
Deprecated. since QTJava 6.1 |
java.lang.Object |
hitTest(int x,
int y)
Deprecated. since QTJava 6.1 |
boolean |
isEmpty()
Deprecated. since QTJava 6.1 |
abstract GroupMember |
memberChanged(QTDrawable d)
Deprecated. since QTJava 6.1 |
java.util.Enumeration |
members()
Deprecated. since QTJava 6.1 |
void |
redraw(Region invalidRgn)
Deprecated. since QTJava 6.1 |
abstract void |
redrawMember(QTDrawable d,
Region invalidRgn)
Deprecated. since QTJava 6.1 |
void |
removeMember(java.lang.Object member)
Deprecated. since QTJava 6.1 |
protected void |
setAlignedMemberLocation(QTDrawable drawer,
float xAlign,
float yAlign)
Deprecated. since QTJava 6.1 |
void |
setBackgroundColor(QDColor col)
Deprecated. since QTJava 6.1 |
abstract void |
setClip(Region theClip)
Deprecated. since QTJava 6.1 |
void |
setDisplayBounds(QDRect bounds)
Deprecated. since QTJava 6.1 |
void |
setGWorld(QDGraphics cgp)
Deprecated. since QTJava 6.1 |
void |
setLocation(int x,
int y)
Deprecated. since QTJava 6.1 |
void |
setMatrix(Matrix matrix)
Deprecated. since QTJava 6.1 |
boolean |
setMemberAlignment(QTDrawable d,
float xAlign,
float yAlign)
Deprecated. since QTJava 6.1 |
boolean |
setMemberLayer(QTDrawable member,
int layer)
Deprecated. since QTJava 6.1 |
int |
size()
Deprecated. since QTJava 6.1 |
| Methods inherited from class quicktime.app.spaces.SimpleSpace |
addController, addedTo, addMember, controllers, finalize, getProtocol, getSource, getTimer, hasMember, isAppropriate, memberAdded, memberRemoved, removeAllControllers, removeAllMembers, removeController, removedFrom, tickle, tickleList, timeChanged |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface quicktime.app.display.QTDisplaySpace |
addMember |
| Methods inherited from interface quicktime.app.spaces.Listener |
addedTo, removedFrom |
| Methods inherited from interface quicktime.app.spaces.Space |
addController, controllers, getSource, getTimer, removeController, tickleList |
| Methods inherited from interface quicktime.app.spaces.DynamicCollection |
getProtocol |
| Methods inherited from interface quicktime.app.spaces.Collection |
addMember, hasMember, isAppropriate |
| Methods inherited from interface quicktime.app.time.Ticklish |
tickle, timeChanged |
| Field Detail |
protected Region clip
protected java.util.Vector vec
| Constructor Detail |
protected GroupDrawable(java.awt.Dimension initialSize,
QDColor bc,
int scale,
int period,
Protocol p)
throws QTException
initialSize - initial size of the Drawable objectbc - the background colorscale - the scale of the Space's Timerperiod - the period of the Space's Timer.p - the Protocol that is enforced on candidate member objects of this group
protected GroupDrawable(QDDimension initialSize,
QDColor bc,
int scale,
int period,
Protocol p)
throws QTException
initialSize - initial size of the Drawable objectbc - the background colorscale - the scale of the Space's Timerperiod - the period of the Space's Timer.p - the Protocol that is enforced on candidate member objects of this group| Method Detail |
public QDGraphics getGWorld()
throws StdQTException
getGWorld in interface QTDrawableStdQTException
public void setGWorld(QDGraphics cgp)
throws QTException
setGWorld in interface QTDrawablecgp - a QDGraphics object
QTException
public void setLocation(int x,
int y)
throws QTException
setLocation in interface QTDrawablex - the new x locationy - the new y location
QTException
public void setDisplayBounds(QDRect bounds)
throws QTException
setDisplayBounds in interface Drawablebounds - a QDRect object describing the boundary
QTException
public QDRect getDisplayBounds()
throws StdQTException
getDisplayBounds in interface DrawableStdQTExceptionpublic QDColor getBackgroundColor()
public void setBackgroundColor(QDColor col)
throws QTException
QTException
public void removeMember(java.lang.Object member)
throws QTException
removeMember in interface CollectionremoveMember in class SimpleSpacemember - the object to remove from the collection
QTExceptionpublic java.util.Enumeration members()
members in interface Collectionpublic boolean isEmpty()
isEmpty in interface Collectionpublic GroupMember getGroupMember(java.lang.Object member)
public int size()
size in interface Collection
public abstract GroupMember memberChanged(QTDrawable d)
throws QTException
d - the drawer that has changed
QTException
public abstract void redrawMember(QTDrawable d,
Region invalidRgn)
throws QTException
d - the member of which some display characteristic has changed.invalidRgn - the Region that has changed as a result of the changes in the specified
member. Generally this Region should encompass the area of the Group's display space that
was occupied before the member was changed as this call will result in the member
itself being redrawn.
QTException
public boolean setMemberAlignment(QTDrawable d,
float xAlign,
float yAlign)
throws QTException
d - the drawer to reposition the alignmentxAlign - the new x alignment value for the memberyAlign - the new y alignemen value for the member
QTException
public boolean setMemberLayer(QTDrawable member,
int layer)
throws QTException
layer - the new layer
QTExceptionpublic int getBackLayer()
getBackLayer in interface QTDisplaySpacepublic int getFrontLayer()
getFrontLayer in interface QTDisplaySpace
public java.awt.Dimension getInitialSize()
throws QTException
QTException()
public QDDimension getOriginalSize()
throws QTException
getOriginalSize in interface TransformableQTException
public void redraw(Region invalidRgn)
throws QTException
redraw in interface DrawableinvalidRgn - the invalidRgn that the client should redraw
QTExceptionpublic Layerable getLayerable(java.lang.Object member)
getLayerable in interface QTDisplaySpacemember - the member
public Transformable getTransformable(java.lang.Object member)
getTransformable in interface QTDisplaySpacemember - the member of Space for which the Transformable object should be returned.
public java.lang.Object hitTest(int x,
int y)
throws QTException
hitTest in interface QTDisplaySpacex - the x pixel to testy - the y pixel to test
QTException
public Matrix getMatrix()
throws StdQTException
getMatrix in interface TransformableStdQTException
public void setMatrix(Matrix matrix)
throws QTException
setMatrix in interface Transformablematrix - the new location
QTException
public Region getClip()
throws QTException
getClip in interface QTDrawableQTExceptionpublic Region getBackgroundClip()
public abstract void setClip(Region theClip)
throws QTException
setClip in interface QTDrawabletheClip - a Region that defines the new clipping region.
QTException
protected void setAlignedMemberLocation(QTDrawable drawer,
float xAlign,
float yAlign)
throws QTException
drawer - The drawer to locate based on the current size of the GroupDrawable and the alignment valuesxAlign - the x alignmentyAlign - the y alignment
QTException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||