Created
February 19, 2013 15:55
-
-
Save iromu/4987105 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private Node createPage(int pageIndex) { | |
ProgressiveImageView iv = null; | |
try { | |
String s = files.get(pageIndex).toUri().toURL().toExternalForm(); | |
String p = placeholders.get(pageIndex).toUri().toURL().toExternalForm(); | |
iv = new ProgressiveImageView(s, p); | |
} catch (MalformedURLException e) { | |
e.printStackTrace();// TODO, I feel too lazy today | |
} | |
iv.setPreserveRatio(true); | |
iv.setSmooth(true); | |
iv.fitWidthProperty().bind(pagination.widthProperty()); | |
iv.fitHeightProperty().bind(pagination.heightProperty()); | |
return iv; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment