public class ToolbarAttractorStrategy
extends java.lang.Object
implements bibliothek.gui.dock.station.screen.magnet.AttractorStrategy
AttractorStrategy
reads the current
ToolbarStrategy.STRATEGY
and assumes that two Dockable
s which
both are toolbar parts
attract each other.Constructor and Description |
---|
ToolbarAttractorStrategy() |
Modifier and Type | Method and Description |
---|---|
bibliothek.gui.dock.station.screen.magnet.AttractorStrategy.Attraction |
attract(bibliothek.gui.dock.ScreenDockStation parent,
bibliothek.gui.Dockable moved,
bibliothek.gui.Dockable fixed) |
protected bibliothek.gui.dock.station.screen.magnet.AttractorStrategy.Attraction |
attraction(bibliothek.gui.dock.ScreenDockStation parent,
bibliothek.gui.Dockable moved,
bibliothek.gui.Dockable fixed)
Calculates the result of
attract(ScreenDockStation, Dockable, Dockable) . |
bibliothek.gui.dock.station.screen.magnet.AttractorStrategy.Attraction |
stick(bibliothek.gui.dock.ScreenDockStation parent,
bibliothek.gui.Dockable moved,
bibliothek.gui.Dockable fixed) |
public bibliothek.gui.dock.station.screen.magnet.AttractorStrategy.Attraction attract(bibliothek.gui.dock.ScreenDockStation parent, bibliothek.gui.Dockable moved, bibliothek.gui.Dockable fixed)
attract
in interface bibliothek.gui.dock.station.screen.magnet.AttractorStrategy
public bibliothek.gui.dock.station.screen.magnet.AttractorStrategy.Attraction stick(bibliothek.gui.dock.ScreenDockStation parent, bibliothek.gui.Dockable moved, bibliothek.gui.Dockable fixed)
stick
in interface bibliothek.gui.dock.station.screen.magnet.AttractorStrategy
protected bibliothek.gui.dock.station.screen.magnet.AttractorStrategy.Attraction attraction(bibliothek.gui.dock.ScreenDockStation parent, bibliothek.gui.Dockable moved, bibliothek.gui.Dockable fixed)
attract(ScreenDockStation, Dockable, Dockable)
. Subclasses may
use this method to calculate
stick(ScreenDockStation, Dockable, Dockable)
as well.parent
- the parent of moved
and fixed
moved
- the Dockable
that was movedfixed
- the Dockable
that was not moved