public abstract class ChildDoodle extends Object implements DefaultOriginDoodle
Details:
ChildDoodle
implements Doodle.setParent(ParentDoodle)
and other functionality related to the relationship between this Doodle
and its ParentDoodle
.
Modifier and Type | Field and Description |
---|---|
protected ParentDoodle |
mParent
Parent container.
|
Constructor and Description |
---|
ChildDoodle() |
Modifier and Type | Method and Description |
---|---|
Point2D |
getDefaultOrigin() |
ParentDoodle |
getParent()
Returns parent.
|
void |
redraw()
Instructs parent container to redraw.
|
void |
setParent(ParentDoodle iParent)
Sets parent container.
|
protected ParentDoodle mParent
Details:
mParent
is the container (i.e., the Figure
or CompoundDoodle
) that contains this Doodle
.
This property is used mainly to provide a destination for redraw events.
public ParentDoodle getParent()
Details:
This method returns the ParentDoodle
that contains this ChildDoodle
.
public void setParent(ParentDoodle iParent)
Details:
setParent(ParentDoodle)
notifies this Doodle
of its new container.
Although this method is public, it should be called only by the Fig subsystem, and not by Fig clients.
public void redraw()
Details:
redraw()
informs the currently configured parent container that this Doodle
should be redrawn in all views that display it.
This message may mean that this Doodle
's display properties have changed or that it is time to render the next frame in an animated Doodle
.
public Point2D getDefaultOrigin()
getDefaultOrigin
in interface DefaultOriginDoodle
Copyright © 2013. All Rights Reserved.