[Rimagej-commits] r14 - in pkg/RImageJ: . R man

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Mon Oct 11 12:25:52 CEST 2010


Author: phgrosjean
Date: 2010-10-11 12:25:48 +0200 (Mon, 11 Oct 2010)
New Revision: 14

Added:
   pkg/RImageJ/R/IJWindowManager.R
   pkg/RImageJ/man/IJWindowManager.Rd
Modified:
   pkg/RImageJ/DESCRIPTION
   pkg/RImageJ/NAMESPACE
   pkg/RImageJ/R/onLoad.R
   pkg/RImageJ/man/IJ.Rd
   pkg/RImageJ/man/RImageJ-package.Rd
   pkg/RImageJ/man/as.raster.Rd
Log:
Addition of the IjWindowManager object

Modified: pkg/RImageJ/DESCRIPTION
===================================================================
--- pkg/RImageJ/DESCRIPTION	2010-10-09 05:52:53 UTC (rev 13)
+++ pkg/RImageJ/DESCRIPTION	2010-10-11 10:25:48 UTC (rev 14)
@@ -1,6 +1,6 @@
 Package: RImageJ
-Version: 0.2-144
-Date: 2010-10-09
+Version: 0.2-145
+Date: 2010-10-11
 Title: R bindings for ImageJ
 Author: Romain Francois, Philippe Grosjean with contributions from Paul Murrell
 Maintainer: Romain Francois <romain at r-enthusiasts.com>

Modified: pkg/RImageJ/NAMESPACE
===================================================================
--- pkg/RImageJ/NAMESPACE	2010-10-09 05:52:53 UTC (rev 13)
+++ pkg/RImageJ/NAMESPACE	2010-10-11 10:25:48 UTC (rev 14)
@@ -1,6 +1,8 @@
 import("rJava")
-export(IJ) 
 
 importFrom("grDevices", "as.raster")
+
+export(IJ,
+       IJWindowManager) 
+
 S3method("as.raster", "jobjRef")
-

Added: pkg/RImageJ/R/IJWindowManager.R
===================================================================
--- pkg/RImageJ/R/IJWindowManager.R	                        (rev 0)
+++ pkg/RImageJ/R/IJWindowManager.R	2010-10-11 10:25:48 UTC (rev 14)
@@ -0,0 +1 @@
+delayedAssign("IJWindowManager", .jnew("ij/WindowManager"))

Modified: pkg/RImageJ/R/onLoad.R
===================================================================
--- pkg/RImageJ/R/onLoad.R	2010-10-09 05:52:53 UTC (rev 13)
+++ pkg/RImageJ/R/onLoad.R	2010-10-11 10:25:48 UTC (rev 14)
@@ -9,5 +9,5 @@
 	#       rely on genericDialog still do not work. The only solution I [PhG]
 	#       have found until now is to start RImageJ from within JGR.
 	.jpackage(pkgname)
-	cat("ImageJ version: ", IJ$getVersion(), "\n", sep = "")
+	packageStartupMessage("ImageJ version: ", IJ$getVersion(), "\n", sep = "")
 }

Modified: pkg/RImageJ/man/IJ.Rd
===================================================================
--- pkg/RImageJ/man/IJ.Rd	2010-10-09 05:52:53 UTC (rev 13)
+++ pkg/RImageJ/man/IJ.Rd	2010-10-11 10:25:48 UTC (rev 14)
@@ -2,19 +2,19 @@
 \alias{IJ}
 \docType{data}
 
-\title{
-IJ object
-}
+\title{ IJ object }
 
 \description{
   This represents an object of class \code{ij.IJ} created when the RImageJ
   package is loaded.
 }
 
-\usage{IJ}
+\usage{
+IJ
+}
 
 \format{
-  This is a java object, instance of the class \code{ij.IJ}, that is created
+  This is a Java object, instance of the class \code{ij.IJ}, that is created
   when the package is loaded.
 }
 
@@ -25,21 +25,27 @@
 }
 
 \references{
-  The java documentation of the class IJ:
+  The Java documentation of the class IJ:
   \url{http://rsbweb.nih.gov/ij/developer/api/ij/IJ.html}
   
   ImageJ macro language:
   \url{http://rsbweb.nih.gov/ij/developer/macro/macros.html}
 }
 
+\seealso{ \code{\link{IJWindowManager}} }
+
 \examples{
 \dontrun{
+## Load a JPEG image in ImageJ and show it
 logo <- system.file("images", "R.jpg", package = "RImageJ")
 image <- IJ$openImage(logo)
 image$show()
+## Manipulate this image in ImageJ
 IJ$run("8-bit")
 IJ$run("Invert")
+## ... and close it
 image$close()
 }
 }
+
 \keyword{utilities}

Added: pkg/RImageJ/man/IJWindowManager.Rd
===================================================================
--- pkg/RImageJ/man/IJWindowManager.Rd	                        (rev 0)
+++ pkg/RImageJ/man/IJWindowManager.Rd	2010-10-11 10:25:48 UTC (rev 14)
@@ -0,0 +1,37 @@
+\name{IJWindowManager}
+\alias{IJWindowManager}
+\docType{data}
+
+\title{ IJ WindowManager object }
+
+\description{
+  This represents an object of class \code{ij.WindowManager} created when the
+  RImageJ package is loaded. This Java class manages all ImageJ windows.
+}
+
+\usage{
+IJWindowManager
+}
+
+\format{
+  This is a Java object, instance of the class \code{ij.WindowManager}, that is
+  created when the package is loaded.
+}
+
+\references{
+  The Java documentation of the class WindowManager:
+  \url{http://rsbweb.nih.gov/ij/developer/api/ij/WindowManager.html}
+}
+
+\seealso{ \code{\link{IJ}} }
+
+\examples{
+\dontrun{
+## Get the number of currently opened ImageJ windows
+IJWindowManager$getImageCount()
+## Close all currently opened ImageJ windows 
+IJWindowManager$closeAllWindows()
+}
+}
+
+\keyword{utilities}

Modified: pkg/RImageJ/man/RImageJ-package.Rd
===================================================================
--- pkg/RImageJ/man/RImageJ-package.Rd	2010-10-09 05:52:53 UTC (rev 13)
+++ pkg/RImageJ/man/RImageJ-package.Rd	2010-10-11 10:25:48 UTC (rev 14)
@@ -5,7 +5,7 @@
 \title{ R bindings for ImageJ }
 
 \description{
-  Bindings between R and the java based image processing and analysis platform
+  Bindings between R and the Java based image processing and analysis platform
   ImageJ.
 }
 
@@ -13,8 +13,8 @@
   \tabular{ll}{
     Package: \tab RImageJ\cr
     Type: \tab Package\cr
-    Version: \tab 0.2-144\cr
-    Date: \tab 2010-10-09\cr
+    Version: \tab 0.2-145\cr
+    Date: \tab 2010-10-11\cr
     License: \tab GPL-3\cr
     LazyLoad: \tab yes\cr
   }

Modified: pkg/RImageJ/man/as.raster.Rd
===================================================================
--- pkg/RImageJ/man/as.raster.Rd	2010-10-09 05:52:53 UTC (rev 13)
+++ pkg/RImageJ/man/as.raster.Rd	2010-10-11 10:25:48 UTC (rev 14)
@@ -23,14 +23,14 @@
   Contributed by Paul Murrell \url{http://www.stat.auckland.ac.nz/~paul/}
 }
 
-\seealso{
-  \link[grDevices]{as.raster}, \link[graphics]{raster}
-}
+\seealso{ \code{\link[grDevices]{as.raster}}, \code{\link[graphics]{raster}} }
 
 \examples{
 \dontrun{
+## Load an image in ImageJ
 logo <- system.file("images", "R.jpg", package = "RImageJ")
 image <- IJ$openImage(logo)
+## Use this image in a R plot
 plot(c(100, 250), c(300, 450), type = "n", xlab = "", ylab = "")
 raster(image, 100, 300, 150, 350, interpolate = FALSE)
 raster(image, 100, 400, 150, 450)



More information about the Rimagej-commits mailing list