Search in sources :

Example 71 with ImageView

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();
}
Also used : PacketParser(com.exalttech.trex.ui.views.streams.viewer.PacketParser) TrafficProfile(com.exalttech.trex.util.TrafficProfile) PacketInfo(com.exalttech.trex.ui.models.PacketInfo) PacketHex(com.exalttech.trex.ui.views.streams.viewer.PacketHex) ImageView(javafx.scene.image.ImageView) Image(javafx.scene.image.Image)

Example 72 with ImageView

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);
}
Also used : ImageView(javafx.scene.image.ImageView)

Aggregations

ImageView (javafx.scene.image.ImageView)72 Image (javafx.scene.image.Image)32 Popup (io.bitsquare.gui.main.overlays.popups.Popup)13 Label (javafx.scene.control.Label)13 Insets (javafx.geometry.Insets)12 Callback (javafx.util.Callback)11 ChangeListener (javafx.beans.value.ChangeListener)10 File (java.io.File)9 IOException (java.io.IOException)9 Button (javafx.scene.control.Button)9 AnchorPane (javafx.scene.layout.AnchorPane)9 FxmlView (io.bitsquare.gui.common.view.FxmlView)8 FXML (javafx.fxml.FXML)8 Inject (javax.inject.Inject)8 ActivatableViewAndModel (io.bitsquare.gui.common.view.ActivatableViewAndModel)7 ObservableValue (javafx.beans.value.ObservableValue)7 javafx.scene.control (javafx.scene.control)7 GridPane (javafx.scene.layout.GridPane)7 VBox (javafx.scene.layout.VBox)7 UserThread (io.bitsquare.common.UserThread)6