Class MinimapLayout
- java.lang.Object
-
- com.metsci.glimpse.core.layout.GlimpseLayout
-
- com.metsci.glimpse.core.layout.GlimpseAxisLayout2D
-
- com.metsci.glimpse.core.painter.info.MinimapLayout
-
- All Implemented Interfaces:
GlimpseTarget
,GlimpseKeyListener
,Keyable
,GlimpseMouseListener
,GlimpseMouseMotionListener
,GlimpseMouseWheelListener
,Mouseable
,GlimpsePainter
public class MinimapLayout extends GlimpseAxisLayout2D
AGlimpseLayout
which floats inside a larger GlimpseLayout and provides a zoomed out view of the scene inside the larger GlimpseLayout. Clicking inside the minimap allows quick navigation inside the larger layout.- Author:
- ulman
- See Also:
com.metsci.glimpse.examples.retarget.MiniMapExample
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
MinimapLayout.MiniMapBoundsPainter
-
Constructor Summary
Constructors Constructor Description MinimapLayout()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addPainter(GlimpsePainter painter)
void
removePainter(GlimpsePainter painter)
void
setBounds(double minX, double maxX, double minY, double maxY)
void
setPosition(int xOffset, int yOffset, int width, int height)
-
Methods inherited from class com.metsci.glimpse.core.layout.GlimpseAxisLayout2D
clearCache, getAxis, getAxis, getAxis, getAxis, getAxisFactory, isAxisFactorySet, isAxisSet, setAxis, setAxis, setAxis, setAxisFactory
-
Methods inherited from class com.metsci.glimpse.core.layout.GlimpseLayout
addGlimpseKeyListener, addGlimpseMouseAllListener, addGlimpseMouseListener, addGlimpseMouseMotionListener, addGlimpseMouseWheelListener, addLayout, addLayout, addLayout, addLayout, addLayout, addPainter, addPainter, addPainter, addPainter, addPainter, dispose, getGlimpseKeyListeners, getGlimpseMouseListeners, getGlimpseMouseMotionListeners, getGlimpseMouseWheelListeners, getLayoutByKey, getLayoutManager, getLock, getName, getPainterByKey, getTargetBounds, getTargetChildren, invalidateLayout, isDisposed, isEventConsumer, isEventGenerator, isVisible, keyPressed, keyReleased, layoutTo, layoutTo, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, paintTo, removeAll, removeAllGlimpseListeners, removeAllLayouts, removeGlimpseKeyListener, removeGlimpseMouseAllListener, removeGlimpseMouseListener, removeGlimpseMouseMotionListener, removeGlimpseMouseWheelListener, removeLayout, removeLayoutByKey, removePainterByKey, setEventConsumer, setEventGenerator, setLayoutData, setLayoutManager, setLookAndFeel, setName, setVisible, setZOrder, setZOrder, toString
-
-
-
-
Method Detail
-
addPainter
public void addPainter(GlimpsePainter painter)
- Overrides:
addPainter
in classGlimpseLayout
-
removePainter
public void removePainter(GlimpsePainter painter)
- Overrides:
removePainter
in classGlimpseLayout
-
setPosition
public void setPosition(int xOffset, int yOffset, int width, int height)
- Parameters:
xOffset
- The horizontal offset between the minimap and the edge of its container.- if positive: positions the minimap inside the container's left edge
- if negative: positions the minimap inside the container's right edge
- if 0: positions the minimap exactly on the container's left edge
- if -1: positions the minimap exactly on the container's right edge
yOffset
- The vertical offset between the minimap and the edge of its container.- if positive: positions the minimap inside the container's bottom edge
- if negative: positions the minimap inside the container's top edge
- if 0: positions the minimap exactly on the container's bottom edge
- if -1: positions the minimap exactly on the container's top edge
width
- The width of the minimap, including its border.height
- The height of the minimap, including its border.
-
setBounds
public void setBounds(double minX, double maxX, double minY, double maxY)
-
-