Package qupath.lib.gui.viewer.overlays
Class TMAGridOverlay
java.lang.Object
qupath.lib.gui.viewer.overlays.AbstractOverlay
qupath.lib.gui.viewer.overlays.TMAGridOverlay
- All Implemented Interfaces:
- PathOverlay
An overlay capable of painting a TMA Grid.
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from class qupath.lib.gui.viewer.overlays.AbstractOverlayAbstractOverlay.LocationStringFunction
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanCheck overlay visibility status.voidpaintOverlay(Graphics2D g, ImageRegion imageRegion, double downsampleFactor, ImageData<BufferedImage> imageData, boolean paintCompletely) Paint the overlay to a graphics object.Methods inherited from class qupath.lib.gui.viewer.overlays.AbstractOverlaygetAlphaComposite, getLocationString, getLocationStringFunction, getOpacity, getOverlayOptions, getPreferredOverlayColor, setAlphaComposite, setLocationStringFunction, setOpacity, setPreferredOverlayColor
- 
Constructor Details- 
TMAGridOverlayConstructor.- Parameters:
- overlayOptions- overlay options to control the display of this overlay.
 
 
- 
- 
Method Details- 
isVisiblepublic boolean isVisible()Description copied from class:AbstractOverlayCheck overlay visibility status. If isVisible() returnsfalse, then calls to paintOverlay() will not do anything.- Overrides:
- isVisiblein class- AbstractOverlay
- Returns:
 
- 
paintOverlaypublic void paintOverlay(Graphics2D g, ImageRegion imageRegion, double downsampleFactor, ImageData<BufferedImage> imageData, boolean paintCompletely) Description copied from interface:PathOverlayPaint the overlay to a graphics object. The graphics object will have a transform applied to it, so the painting should make use of coordinates in the original image space.- Parameters:
- g- Graphics2D object to which drawing should be performed. This should have any transform already applied to it.
- imageRegion- The maximum image region that should be shown.
- downsampleFactor- The downsample factor at which the overlay will be viewed. There is no need for rescaling according to this value since it has already been applied to the- Graphics2Das part of its- AffineTransform, however it may optionally be needed within the method e.g. to correct line thicknesses.
- imageData- the- ImageDataassociated with this overlay. If the overlay is being displayed on a viewer, this is the- ImageDataopen within the viewer. Not all overlays require this, and it may be null.
- paintCompletely- If true, the method is permitted to return without completely painting everything, for performance reasons.
 
 
-