Package dataPlotsFX
Class FXIconLoder
java.lang.Object
dataPlotsFX.FXIconLoder
Utility functions to load image files into Canvases to use as icons in 
 displays, etc. 
 Typical usage is icon = FXIconLoder.createIcon("Resources/BeamformIcon20.png", 20, 20);
- Author:
 - dg50
 
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionstatic javafx.scene.canvas.CanvascreateIcon(String imageResource) Create an icon the same size as the original image, no scaling.static javafx.scene.canvas.CanvascreateIcon(String imageResource, int width, int height) Create a canvas with the image scaled / squashed / stretched to a set size.static javafx.scene.image.ImagecreateImage(String imageResource) Create a image from a resource . 
- 
Constructor Details
- 
FXIconLoder
public FXIconLoder() 
 - 
 - 
Method Details
- 
createIcon
Create an icon the same size as the original image, no scaling.- Parameters:
 imageResource- Image resource- Returns:
 - Canvas of the same size as the image.
 
 - 
createIcon
Create a canvas with the image scaled / squashed / stretched to a set size.- Parameters:
 imageResource- Image resourcewidth- required width after scalingheight- required height after scaling- Returns:
 - Canvas of the determined size.
 
 - 
createImage
Create a image from a resource .- Parameters:
 imageResource- Image resource- Returns:
 - Canvas of the determined size.
 
 
 -