Class LightboxGenerator

  • All Implemented Interfaces:
    java.awt.event.ActionListener, java.awt.event.WindowListener, java.lang.Runnable, java.util.EventListener

    public class LightboxGenerator
    extends AlgorithmBase
    The class creates a RGB image of a 3d image in a Lightbox type format.
    Version:
    0.1 May 12, 2009
    Author:
    morseaj
    • Field Detail

      • startSlice

        private final int startSlice
      • endSlice

        private final int endSlice
      • newHeight

        private final int newHeight
        Height of new image in pixels
      • newWidth

        private final int newWidth
        Width of new image in pixels
      • rows

        private final int rows
      • columns

        private final int columns
      • borderR

        private final byte borderR
      • borderG

        private final byte borderG
      • borderB

        private final byte borderB
      • display

        private final boolean display
      • thickness

        private final int thickness
    • Constructor Detail

      • LightboxGenerator

        public LightboxGenerator​(ModelImage image,
                                 int startSlice,
                                 int endSlice,
                                 double percentSize,
                                 int rows,
                                 int columns,
                                 int borderR,
                                 int borderG,
                                 int borderB,
                                 boolean display,
                                 int borderThickness)
        Constructor for Lightbox Image Files that will be used to create a lightBox image.
        Parameters:
        image - 3D image to be created in lightbox format
        startSlice - first slice to be used
        endSlice - last slice to be used
        percentSize - shrink images by percent
        rows - number of rows in lightbox
        columns - number of columns in lightbox
        borderR - R value for border
        borderG - G value for border
        borderB - B value for border
        display - should lightbox image be shown in frame once created?
        borderThickness - border thickness in pixels
    • Method Detail

      • finalize

        public void finalize()
        Prepares this class for cleanup.
        Overrides:
        finalize in class AlgorithmBase
      • getImage

        public ModelImage getImage()
        returns the newly created image
      • runAlgorithm

        public void runAlgorithm()
        Accessor that returns the number of image slices saved.
        Specified by:
        runAlgorithm in class AlgorithmBase