use of javafx.scene.image.ImageView in project trex-stateless-gui by cisco-system-traffic-generator.
the class PacketBuilderHomeController method initialize.
@Override
public void initialize(URL url, ResourceBundle rb) {
trafficProfile = new TrafficProfile();
packetHex = new PacketHex(hexPane);
nextStreamBtn.setGraphic(new ImageView(new Image("/icons/next_stream.png")));
prevStreamBtn.setGraphic(new ImageView(new Image("/icons/prev_stream.png")));
packetInfo = new PacketInfo();
parser = new PacketParser();
}
use of javafx.scene.image.ImageView in project jgnash by ccavanaugh.
the class JasperViewerDialogController method setPage.
private void setPage(final int index) {
double contentsHeight = pagePane.getBoundsInLocal().getHeight();
double viewportHeight = scrollPane.getViewportBounds().getHeight();
ImageView iv = (ImageView) pagePane.getChildren().get(index);
scrollPane.setVvalue(iv.getBoundsInParent().getMinY() / (contentsHeight - viewportHeight));
setPageIndex(index);
}
Aggregations