Package videoRangePanel.layoutFX
Class VRDisplayFX2AWT
java.lang.Object
videoRangePanel.layoutFX.VRDisplayFX2AWT
- All Implemented Interfaces:
VRPane
A wrapper to allow an FX pane to be become part of the tab p[ane.
- Author:
- macst
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
int
getPane()
imageToScreen
(Point p1) Calculate the location on an image given screen co-ordinates.void
newImage()
Called whenever a new image is loaded.boolean
openImageFile
(File file) Load a an image of media filevoid
repaint()
Refresh the imagescreenToImage
(Point p1) Calculate the screen location given the locations on the imagevoid
update
(int updateType)
-
Field Details
-
vRDisplayFX
The VRDisplay.
-
-
Constructor Details
-
VRDisplayFX2AWT
-
-
Method Details
-
repaint
public void repaint()Description copied from interface:VRPane
Refresh the image -
getImageWidth
public int getImageWidth()- Specified by:
getImageWidth
in interfaceVRPane
-
getImageHeight
public int getImageHeight()- Specified by:
getImageHeight
in interfaceVRPane
-
imageToScreen
Description copied from interface:VRPane
Calculate the location on an image given screen co-ordinates.- Specified by:
imageToScreen
in interfaceVRPane
- Parameters:
p1
- - location on image- Returns:
- the location on the screen.
-
screenToImage
Description copied from interface:VRPane
Calculate the screen location given the locations on the image- Specified by:
screenToImage
in interfaceVRPane
- 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. -
getPane
-
update
public void update(int updateType) -
openImageFile
Load a an image of media file- Parameters:
file
- - the file to load- Returns:
- true if the file loads successfully
-