The R Project SVN R

Rev

Rev 68948 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 68948 Rev 86005
Line 8... Line 8...
8
\title{ Customising grid Editing }
8
\title{ Customising grid Editing }
9
\description{
9
\description{
10
  This generic hook function is called whenever a grid grob is edited
10
  This generic hook function is called whenever a grid grob is edited
11
  via \code{grid.edit} or \code{editGrob}.
11
  via \code{grid.edit} or \code{editGrob}.
12
  This provides an opportunity for customising the editing of a
12
  This provides an opportunity for customising the editing of a
13
  new class derived from grob (or gTree).
13
  new class derived from grob (or \I{gTree}).
14
}
14
}
15
\usage{
15
\usage{
16
editDetails(x, specs)
16
editDetails(x, specs)
17
}
17
}
18
\arguments{
18
\arguments{
Line 20... Line 20...
20
  \item{specs}{ A list of named elements.  The names indicate the
20
  \item{specs}{ A list of named elements.  The names indicate the
21
    grob slots to modify and the values are the new values for the slots. }
21
    grob slots to modify and the values are the new values for the slots. }
22
}
22
}
23
\details{
23
\details{
24
  This function is called by \code{grid.edit} and \code{editGrob}.
24
  This function is called by \code{grid.edit} and \code{editGrob}.
25
  A method should be written for classes derived from grob or gTree
25
  A method should be written for classes derived from grob or \I{gTree}
26
  if a change in a slot has an effect on other slots in the grob or
26
  if a change in a slot has an effect on other slots in the grob or
27
  children of a gTree (e.g., see \code{grid:::editDetails.xaxis}).
27
  children of a \I{gTree} (e.g., see \code{grid:::editDetails.xaxis}).
28
 
28
 
29
  Note that the slot already has the new value.
29
  Note that the slot already has the new value.
30
}
30
}
31
\value{
31
\value{
32
  The function MUST return the modified grob.
32
  The function MUST return the modified grob.