Module MaterialFX

Class MFXSnapshotWrapper

java.lang.Object
io.github.palexdev.materialfx.beans.MFXSnapshotWrapper

public class MFXSnapshotWrapper extends Object
Class used in various controls as a workaround for showing a node two or more times on the scene graph.

Makes a screenshot of a node with transparent background. Then getGraphic() should be used to get an ImageView node which contains the screenshot.

A little side note: since it is a screenshot the image may appear a little blurry compared to the real graphic, however it should be acceptable and I believe this is still better than having no graphic at all.
  • Constructor Details

    • MFXSnapshotWrapper

      public MFXSnapshotWrapper(Node node)
  • Method Details

    • getGraphic

      public Node getGraphic()