The Ultimate JavaFX, Multi-split, Drag-n-Drop Layout Manager
On YouTube (CLICK!)
Mosaic is an amazing new layout manager which allows you to split your screen however you want with no nesting; Drag dividers in ANY direction; and Drag-N-Drop contents anywhere, and the layout will intelligently morph into a new configuration while snapping to suggested locations!
OH YEAH...
Using Any Java Windowing Toolkit! (i.e. JavaFX, Swing, Apache Pivot etc.)
Discerning Developer: "Sounds cool... How does it do that!!!?"
Mosaic is an engine that furnishes dimensions and locations for objects it is given. So... Step 1: Load it with objects in the same container Step 2: Attach mouse listener to your container (albeit JavaFX Node, Swing or Apach Pivot Container); inside of which; forward events to the Mosaic Engine Step 3: Inside listener, apply location and dimension instructions to the object it tells you to...
Easy peasy!
- Fork or clone repo
- Setup in the IDE of your choice
- Run the:
- ai.cogmission.mosaic.refimpl.javafx.MosaicPaneRefImpl.java
- -- or --
- ai.cogmission.mosaic.refimpl.pivot.MosaicPaneRefImpl.java
- All Dependencies are in "libs" directory.
Take a look at the ai.cogmission.mosaic.refimpl.javafx.MosaicPane.java or ai.cogmission.mosaic.refimpl.pivot.MosaicPane.java file for reference on how to implement your own container that can be managed by the Mosaic Engine.
Better instructions are on the way... (we need your help!)
Contact me at: cognitionmission@gmail.com