index xrefs 2006/08/08 17:41:28

ChemoJunMoleculeCatalogueVoid

ChemoJun050 (2006/08/08) Copyright 2002-2006 National Institute of Informatics, Research Organization of Information and Systems.

category:

inheritance:

instance variables:

class instance variables:

class variables:

pool variables:

instance methods:

  1. baseNameString [private] xrefs
    	^String new
  2. bounds: newBounds [bounds accessing] xrefs
     
    	displayBox := newBounds
  3. defaultImage [defaults] xrefs
    	| aPixmap anImage graphicsContext |
    	JunControlUtility 
    		assert: [aPixmap := Pixmap extent: self class defaultThumbnailExtent * 2]
    		do: 
    			[graphicsContext := aPixmap graphicsContext.
    			graphicsContext
    				paint: self class defaultEmptyColor;
    				displayRectangle: aPixmap bounds.
    			anImage := aPixmap asImage]
    		ensure: [aPixmap close].
    	^anImage
  4. defaultThumbnail [defaults] xrefs
    	| aPixmap anImage graphicsContext |
    	JunControlUtility 
    		assert: [aPixmap := Pixmap extent: self class defaultThumbnailExtent]
    		do: 
    			[graphicsContext := aPixmap graphicsContext.
    			graphicsContext
    				paint: self class defaultEmptyColor;
    				displayRectangle: aPixmap bounds.
    			anImage := aPixmap asImage]
    		ensure: [aPixmap close].
    	^anImage
  5. displayOn: graphicsContext [displaying] xrefs
     
    	(self bounds intersects: graphicsContext clippingBounds) 
    		ifTrue: 
    			[self thumbnail ifNil: 
    					[graphicsContext paint: self class defaultEmptyColor.
    					graphicsContext displayRectangle: self bounds]
    				ifNotNil: [:it | it displayOn: graphicsContext at: self bounds origin]]
  6. extent [accessing] xrefs
    	^self thumbnail ifNil: [self class defaultThumbnailExtent]
    		ifNotNil: [:it | it extent]
  7. filename [accessing] xrefs
    	^nil
  8. filename: ignore [accessing] xrefs
     
    	^self
  9. height [accessing] xrefs
    	^self extent y
  10. image [accessing] xrefs
    	^nil
  11. initialize [initialize-release] xrefs
    	super initialize.
    	displayBox := nil
  12. isNotVoid [testing] xrefs
    	^self isVoid not
  13. isVoid [testing] xrefs
    	^true
  14. moleculeObject [accessing] xrefs
    	^nil
  15. postCopy [copying] xrefs
    	super postCopy.
    	displayBox := displayBox copy
  16. preferredBounds [bounds accessing] xrefs
    	displayBox ifNil: [displayBox := Point zero extent: Point zero].
    	^displayBox
  17. printOn: aStream [printing] xrefs
     
    	self toLispList printOn: aStream
  18. thumbnail [accessing] xrefs
    	^nil
  19. thumbnail: ignore [accessing] xrefs
     
    	^self
  20. toLispList [lisp support] xrefs
    	| aList |
    	aList := JunLispCons cell.
    	aList head: self class name.
    	^aList
  21. width [accessing] xrefs
    	^self extent x

class methods:

  1. copyright [copyright] xrefs
    	^'ChemoJun050 (2006/08/08) Copyright 2002-2006 National Institute of Informatics, Research Organization of Information and Systems.'
  2. defaultCatalogueClass [defaults] xrefs
    	^ChemoJunMoleculeCatalogue
  3. defaultEmptyColor [defaults] xrefs
    	^ColorValue veryLightGray
  4. defaultMoleculeObjectClass [defaults] xrefs
    	^ChemoJunMoleculeObject
  5. defaultMoleculePresentation [defaults] xrefs
    	^#moleculeAsBallAndStick
  6. defaultMoleculeViewerClass [defaults] xrefs
    	^ChemoJunMoleculeViewer
  7. defaultThumbnailExtent [defaults] xrefs
    	^128 @ 128
  8. example1 [examples] xrefs
    	"ChemoJunMoleculeCatalogueVoid example1."
    
    	| catalogueVoid |
    	catalogueVoid := ChemoJunMoleculeCatalogueVoid new.
    	JunImageDisplayModel show: catalogueVoid thumbnail.
    	^catalogueVoid
  9. fromLispList: aList [lisp support] xrefs
     
    	| aClass catalogueVoid |
    	aClass := Smalltalk at: aList head.
    	catalogueVoid := aClass new.
    	^catalogueVoid
  10. system [copyright] xrefs
    	^'ChemoJun'
  11. version [copyright] xrefs
    	^'050'

index xrefs