ilog.views.maps.graphic
Class IlvMapSelectionFactory

java.lang.Object
  extended by ilog.views.maps.graphic.IlvMapSelectionFactory
All Implemented Interfaces:
IlvSelectionFactory

public class IlvMapSelectionFactory
extends Object
implements IlvSelectionFactory

A map selection factory. Usually mapping objects are not editable. This selection factory allows some objects to be editable by setting a IlvMapSelectionFactory.IlvMapEditable property on them.

Since:
JViews 7.5
See Also:
IlvSelectionFactory

Nested Class Summary
static class IlvMapSelectionFactory.IlvMapEditable
          A named property telling that an IlvGraphic is editable.
 
Constructor Summary
IlvMapSelectionFactory()
          Creates a new IlvMapSelectionFactory.
 
Method Summary
 String getDefaultInteractorString()
          Returns the name of the class that is used as polypoints edition.
static boolean isEditable(IlvGraphic g)
          Tells if the given IlvGraphic is editable or not.
 IlvSelection makeSelection(IlvGraphic obj)
          Returns an IlvSelection.
 void setDefaultInteractorString(String is)
          Sets the name of the class that will be used as the polypoints edition.
static void setEditable(IlvGraphic g, boolean edit)
          Add or remove graphic object from the editable table.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IlvMapSelectionFactory

public IlvMapSelectionFactory()
Creates a new IlvMapSelectionFactory.

Method Detail

isEditable

public static boolean isEditable(IlvGraphic g)
Tells if the given IlvGraphic is editable or not.

Parameters:
g - The ilvGraphic to check.
Returns:
true if the graphic s editable, false otherwise.

setEditable

public static void setEditable(IlvGraphic g,
                               boolean edit)
Add or remove graphic object from the editable table. Objects present in this table will be fully editable by the selection.

Parameters:
g - The object to add into the editable table.
edit - true to add an object into the table, false to remove it from the table.

makeSelection

public IlvSelection makeSelection(IlvGraphic obj)
Returns an IlvSelection. If the object is editable, a IlvPolyPointsSelection is returned. Otherwise, a IlvMapSelectione is returned.

Specified by:
makeSelection in interface IlvSelectionFactory
Parameters:
obj - The object to make a selection for.
Returns:
The corresponding IlvSelection

getDefaultInteractorString

public String getDefaultInteractorString()
Returns the name of the class that is used as polypoints edition.

Returns:
the name of the class that is used as polypoints edition. The default value is "ilog.views.maps.graphic.IlvMapPolyPointEdition".
Since:
JViews 7.5

setDefaultInteractorString

public void setDefaultInteractorString(String is)
Sets the name of the class that will be used as the polypoints edition.

Parameters:
is - The new interactor class name.
Since:
JViews 7.5


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.