| Line 26... |
Line 26... |
| 26 |
is being added to the display list or redrawn from the display list. }
|
26 |
is being added to the display list or redrawn from the display list. }
|
| 27 |
}
|
27 |
}
|
| 28 |
\details{
|
28 |
\details{
|
| 29 |
These functions are called by the \code{grid.draw} methods for grobs
|
29 |
These functions are called by the \code{grid.draw} methods for grobs
|
| 30 |
and gTrees.
|
30 |
and gTrees.
|
| 31 |
|
31 |
|
| 32 |
\code{preDrawDetails} is called first during the drawing of a grob.
|
32 |
\code{preDrawDetails} is called first during the drawing of a grob.
|
| 33 |
This is where any additional viewports should be pushed (see,
|
33 |
This is where any additional viewports should be pushed (see,
|
| 34 |
for example, \code{grid:::preDrawDetails.frame}). Note that
|
34 |
for example, \code{grid:::preDrawDetails.frame}). Note that
|
| 35 |
the default behaviour for grobs is to push any viewports in the
|
35 |
the default behaviour for grobs is to push any viewports in the
|
| 36 |
\code{vp} slot, and for gTrees is to also push and up any viewports in the
|
36 |
\code{vp} slot, and for gTrees is to also push and up any viewports in the
|
| 37 |
\code{childrenvp} slot so there is typically nothing to do here.
|
37 |
\code{childrenvp} slot so there is typically nothing to do here.
|
| 38 |
|
38 |
|
| 39 |
\code{drawDetails} is called next and is where any additional
|
39 |
\code{drawDetails} is called next and is where any additional
|
| 40 |
calculations and graphical output should occur (see, for example,
|
40 |
calculations and graphical output should occur (see, for example,
|
| 41 |
\code{grid:::drawDetails.xaxis}. Note that the default behaviour
|
41 |
\code{grid:::drawDetails.xaxis}. Note that the default behaviour
|
| 42 |
for gTrees is to draw all grobs in the \code{children} slot
|
42 |
for gTrees is to draw all grobs in the \code{children} slot
|
| 43 |
so there is typically nothing to do here.
|
43 |
so there is typically nothing to do here.
|