    All Packages  Class Hierarchy  This Package  Previous  Next  Index

# Class ncsa.horizon.viewer.GraphicsSelectionImpl

    java.lang.Object
       |
       +----ncsa.horizon.viewer.GraphicsSelectionImpl

public class GraphicsSelectionImpl
extends Object

##

GraphicsSelectionImpl(Component)

##

draw(Graphics)
  draw the selection widgets
getBoxSelection()
getLineSelection()
getPixelSelection()
getSettingButton()
isBoxSelectionVisible()
isLineSelectionVisible()
isPixelSelectionVisible()
setBoxSelection(int, int, int, int)
setLineSelection(int, int, int, int)
setPixelSelection(int, int)
setSliceSelection(Slice, ImageDisplayMap)
  set the selected region via a Slice and an ImageDisplayMap for translating the Slice to display space.
setVoxelSelection(Voxel, ImageDisplayMap)
  set the selected pixel via a Voxel and an ImageDisplayMap for translating the Voxel to display space.
showBoxSelection(boolean)
showLineSelection(boolean)
showPixelSelection(boolean)
toggleBoxSelection()
toggleLineSelection()
togglePixelSelection()

##

GraphicsSelectionImpl

      public GraphicsSelectionImpl(Component parent)

##

draw

      public void draw(Graphics g)

  draw the selection widgets
  Parameters:
    g - the Graphics of the component on which the widgets are drawn.

getBoxSelection

      public synchronized Rectangle getBoxSelection()

getLineSelection

      public synchronized Line getLineSelection()

getPixelSelection

      public synchronized Point getPixelSelection()

getSettingButton

      public Button getSettingButton()

isBoxSelectionVisible

      public boolean isBoxSelectionVisible()

isLineSelectionVisible

      public boolean isLineSelectionVisible()

isPixelSelectionVisible

      public boolean isPixelSelectionVisible()

setBoxSelection

      public synchronized void setBoxSelection(int x1,
                                               int y1,
                                               int x2,
                                               int y2)

setLineSelection

      public synchronized void setLineSelection(int x1,
                                                int y1,
                                                int x2,
                                                int y2)

setPixelSelection

      public synchronized void setPixelSelection(int x,
                                                 int y)

setSliceSelection

      public synchronized void setSliceSelection(Slice slice,
                                                 ImageDisplayMap pixelMap)

  set the selected region via a Slice and an ImageDisplayMap for translating the Slice to display space.

setVoxelSelection

      public synchronized void setVoxelSelection(Voxel voxel,
                                                 ImageDisplayMap pixelMap)

  set the selected pixel via a Voxel and an ImageDisplayMap for translating the Voxel to display space.

showBoxSelection

      public void showBoxSelection(boolean b)

showLineSelection

      public void showLineSelection(boolean b)

showPixelSelection

      public void showPixelSelection(boolean b)

toggleBoxSelection

      public void toggleBoxSelection()

toggleLineSelection

      public void toggleLineSelection()

togglePixelSelection

      public void togglePixelSelection()

    All Packages  Class Hierarchy  This Package  Previous  Next  Index