Class VRDisplayFX2AWT

java.lang.Object
videoRangePanel.layoutFX.VRDisplayFX2AWT
All Implemented Interfaces:
VRPane

public class VRDisplayFX2AWT extends Object implements VRPane
A wrapper to allow an FX pane to be become part of the tab p[ane.
Author:
macst
  • Field Details

    • vRDisplayFX

      public VRDisplayFX vRDisplayFX
      The VRDisplay.
  • Constructor Details

    • VRDisplayFX2AWT

      public VRDisplayFX2AWT(VRControl vrControl)
  • Method Details

    • repaint

      public void repaint()
      Description copied from interface: VRPane
      Refresh the image
      Specified by:
      repaint in interface VRPane
    • getImageWidth

      public int getImageWidth()
      Specified by:
      getImageWidth in interface VRPane
    • getImageHeight

      public int getImageHeight()
      Specified by:
      getImageHeight in interface VRPane
    • imageToScreen

      public Point imageToScreen(Point p1)
      Description copied from interface: VRPane
      Calculate the location on an image given screen co-ordinates.
      Specified by:
      imageToScreen in interface VRPane
      Parameters:
      p1 - - location on image
      Returns:
      the location on the screen.
    • screenToImage

      public Point screenToImage(Point p1)
      Description copied from interface: VRPane
      Calculate the screen location given the locations on the image
      Specified by:
      screenToImage in interface VRPane
      Parameters:
      p1 - - location on screen
      Returns:
      the location on the image in pixels
    • newImage

      public void newImage()
      Description copied from interface: VRPane
      Called whenever a new image is loaded.
      Specified by:
      newImage in interface VRPane
    • getPane

      public VRDisplayFX getPane()
    • update

      public void update(int updateType)
    • openImageFile

      public boolean openImageFile(File file)
      Load a an image of media file
      Parameters:
      file - - the file to load
      Returns:
      true if the file loads successfully