Package sc.fiji.snt

Class TracerCanvas

All Implemented Interfaces:
MouseListener, MouseMotionListener, ImageObserver, MenuContainer, Serializable, Cloneable, EventListener, Accessible
Direct Known Subclasses:
MultiPathTracerCanvas

public class TracerCanvas extends MultiDThreePanesCanvas
Provides rendering capabilities for visualizing paths, overlays, and additional interactive elements in an ImageJ canvas.
See Also:
  • Field Details

    • pathAndFillManager

      protected PathAndFillManager pathAndFillManager
    • just_near_slices

      protected boolean just_near_slices
    • eitherSide

      protected int eitherSide
    • searchArtists

      protected final Set<SearchArtist> searchArtists
  • Method Details

    • addSearchArtist

      protected void addSearchArtist(SearchArtist s)
    • removeSearchArtist

      protected void removeSearchArtist(SearchArtist s)
    • drawOverlay

      protected void drawOverlay(Graphics2D g)
      Overrides:
      drawOverlay in class MultiDThreePanesCanvas
    • resetBackBuffer

      protected void resetBackBuffer()
    • paint

      public void paint(Graphics g)
      Overrides:
      paint in class ij.gui.ImageCanvas
    • getPlane

      public int getPlane()
      Returns the MultiDThreePanes plane associated with this canvas.
      Returns:
      Either MultiDThreePanes.XY_PLANE, XZ_PLANE, or ZY_PLANE
    • getEitherSide

      public int getEitherSide()
      Returns:
      the depth-band radius (in slices either side of the current slice) used when isJustNearSlices() is true.
    • isJustNearSlices

      public boolean isJustNearSlices()
      Returns:
      whether per-slice depth-band rendering is currently enabled (i.e. paths only render near the active slice).
    • nodeDiameter

      protected double nodeDiameter()
      Returns the diameter of path nodes rendered at current magnification.
      Returns:
      the baseline rendering diameter of a path node
    • setNodeDiameter

      protected void setNodeDiameter(double diameter)
      Sets the baseline for rendering diameter of path nodes
      Parameters:
      diameter - the diameter to be used when rendering path nodes. Set it to -1 for adopting the default value. Set it to zero to suppress node rendering
    • setDefaultTransparency

      protected void setDefaultTransparency(int percentage)
    • setOutOfBoundsTransparency

      protected void setOutOfBoundsTransparency(int percentage)
    • getDefaultTransparency

      protected int getDefaultTransparency()
    • getOutOfBoundsTransparency

      protected int getOutOfBoundsTransparency()