com.metsci.glimpse.painter.info
Class MinimapLayout
java.lang.Object
com.metsci.glimpse.layout.GlimpseLayout
com.metsci.glimpse.layout.GlimpseAxisLayout2D
com.metsci.glimpse.painter.info.MinimapLayout
- All Implemented Interfaces:
- GlimpseTarget, GlimpseMouseListener, GlimpseMouseMotionListener, GlimpseMouseWheelListener, Mouseable, GlimpsePainter
public class MinimapLayout
- extends GlimpseAxisLayout2D
A GlimpseLayout
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
Methods inherited from class com.metsci.glimpse.layout.GlimpseAxisLayout2D |
clearCache, getAxis, getAxis, getAxis, getAxisFactory, isAxisFactorySet, isAxisSet, setAxis, setAxis, setAxis, setAxisFactory |
Methods inherited from class com.metsci.glimpse.layout.GlimpseLayout |
addGlimpseMouseAllListener, addGlimpseMouseListener, addGlimpseMouseMotionListener, addGlimpseMouseWheelListener, addLayout, addLayout, addPainter, dispose, getGlimpseMouseListeners, getGlimpseMouseMotionListeners, getGlimpseMouseWheelListeners, getLayoutManager, getName, getTargetBounds, getTargetChildren, invalidateLayout, isDisposed, isEventConsumer, isEventGenerator, isVisible, layoutTo, layoutTo, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, paintTo, removeAllGlimpseListeners, removeGlimpseMouseAllListener, removeGlimpseMouseListener, removeGlimpseMouseMotionListener, removeGlimpseMouseWheelListener, removeLayout, setEventConsumer, setEventGenerator, setLayoutData, setLayoutManager, setLookAndFeel, setName, setVisible, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MinimapLayout
public MinimapLayout()
addPainter
public void addPainter(GlimpsePainter painter)
- Overrides:
addPainter
in class GlimpseLayout
removePainter
public void removePainter(GlimpsePainter painter)
- Overrides:
removePainter
in class GlimpseLayout
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)
Copyright © 2012 Metron, Inc.. All Rights Reserved.