|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.IlvManagerViewInteractor
ilog.views.maps.interactor.IlvSeeThroughInteractor
public class IlvSeeThroughInteractor
An interactor designed to show a part of a map independently from current
layer visibility states. This way, user can interactively reveals layers beneath an opaque layer.
With this interactor, the user drags a square on the the map that shows the layers registered for
this interactor.
You can configure the interactor by setting the list of layers to be shown and by setting
the size of the area to be drawn.
A IlvSeeThroughConfigurationPanel is provided as a default configuration tool to interactively
select layers in a Swing GUI.
Example of use :
IlvManagerView view = getManagerView(); IlvSeeThroughInteractor interactor = new IlvSeeThroughInteractor(); interactor.addLayer(view.getManager().getManagerLayer(0)); view.setInteractor(interactor);
IlvSeeThroughConfigurationPanel,
Serialized Form| Constructor Summary | |
|---|---|
IlvSeeThroughInteractor()
Constructs and initializes a new instance of the IlvSeeThroughInteractor. |
|
| Method Summary | |
|---|---|
void |
addLayer(IlvManagerLayer layer)
Add a layer to the list of registered layers. |
protected void |
attach(IlvManagerView view)
Called when the interactor is attached to the manager view. |
protected void |
detach()
Called when the interactor is detached from the view. |
protected void |
drawSeeThrough(Graphics g)
Draws the see through tool. |
protected IlvRect |
getDrawingRect()
Returns the rectangle representing the area in which the layers are drawn. |
ArrayList |
getLayers()
Retrieves the list of registered layers. |
int |
getSize()
Retrieves the size of the revealed area. |
protected void |
handleExpose(Graphics g)
Called by the view when the view is drawn, it actually calls the method that draws the see through tool using drawSeeThrough(java.awt.Graphics). |
boolean |
isIncludeRegisteredLayers()
Tells if the registered layer list is included in the drawing or not. |
boolean |
isPermanent()
Returns true if the interactor operates in permanent mode;
false otherwise. |
protected void |
processMouseEvent(MouseEvent e)
Processes the mouse events. |
protected void |
processMouseMotionEvent(MouseEvent e)
Processes the mouse motion events. |
void |
removeLayer(IlvManagerLayer layer)
Remove a layer from the list of registered layers. |
void |
setIncludeRegisteredLayers(boolean set)
Tells the interactor if the list of registered layers are to be drawn or excluded from the drawing. |
void |
setLayers(ArrayList layers)
Register a layer list for this interactor. |
void |
setPermanent(boolean set)
Changes the mode of the interactor. |
void |
setSize(int size)
Sets the size of the magnification area. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IlvSeeThroughInteractor()
IlvSeeThroughInteractor.
The size of the revealed area is set to 128 pixels.
| Method Detail |
|---|
protected void attach(IlvManagerView view)
attach in class IlvManagerViewInteractorview - The manager view.IlvManagerViewInteractor.detach()protected void detach()
detach in class IlvManagerViewInteractorIlvManagerViewInteractor.attach(ilog.views.IlvManagerView)protected void processMouseEvent(MouseEvent e)
processMouseEvent in class IlvManagerViewInteractore - The mouse event.IlvManagerViewInteractor.addMouseListener(java.awt.event.MouseListener)protected void processMouseMotionEvent(MouseEvent e)
processMouseMotionEvent in class IlvManagerViewInteractore - The mouse motion event.IlvManagerViewInteractor.addMouseMotionListener(java.awt.event.MouseMotionListener)public final void setSize(int size)
size - The size to be set, in view coordinate values.getSize()protected void drawSeeThrough(Graphics g)
getDrawingRect() method to
return a rectangle containing the additional drawings.
g - The view graphics.protected void handleExpose(Graphics g)
drawSeeThrough(java.awt.Graphics).
handleExpose in class IlvManagerViewInteractorg - The view graphics.IlvManagerViewInteractor.drawGhost(java.awt.Graphics),
IlvManagerViewInteractor.isXORGhost(),
IlvManagerView.getDefaultXORColor()protected IlvRect getDrawingRect()
public boolean isPermanent()
true if the interactor operates in permanent mode;
false otherwise.
isPermanent in interface IlvPermanentInteractorInterfacepublic void setPermanent(boolean set)
setPermanent in interface IlvPermanentInteractorInterfaceset - the new mode.public void setLayers(ArrayList layers)
isIncludeRegisteredLayers
layers - The list of IlvManagerLayers to register.isIncludeRegisteredLayers(),
setIncludeRegisteredLayers(boolean)public void addLayer(IlvManagerLayer layer)
layer - The IlvManagerLayer to add.public void removeLayer(IlvManagerLayer layer)
layer - The IlvManagerLayer to remove.public ArrayList getLayers()
ArrayList containing registered IlvManagerLayerpublic int getSize()
public boolean isIncludeRegisteredLayers()
true if the layers are included, false otherwise.public void setIncludeRegisteredLayers(boolean set)
set - pass true to include the layers, false to exclude them.
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||