|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.faces.component.UIComponent
javax.faces.component.UIComponentBase
javax.faces.component.UIGraphic
ilog.views.faces.component.IlvBasicView
ilog.views.faces.component.IlvFacesView
public class IlvFacesView
This class defines a base view on which you can interact through interactors.
This view has two main modes: regular or tiled mode.
tileSize property value. If this size is greater than 0, the view
is in tiled mode, or in regular mode otherwise.
| Field Summary | |
|---|---|
static Double |
MAX_ZOOM_DEFAULT_VALUE
The maximum zoom level. |
static Double |
MIN_ZOOM_DEFAULT_VALUE
The minimum zoom level. |
static Double |
PAN_FACTOR_DEFAULT_VALUE
The factor used when pan JavaScript actions are called (like panNorth, and so on) |
static Double |
ZOOM_FACTOR_DEFAULT_VALUE
The factor used when zoomIn or zoomOut JavaScript actions are called. |
| Fields inherited from class ilog.views.faces.component.IlvBasicView |
|---|
DEFAULT_OBJECT_FINDER |
| Fields inherited from class javax.faces.component.UIGraphic |
|---|
COMPONENT_FAMILY, COMPONENT_TYPE |
| Fields inherited from class javax.faces.component.UIComponent |
|---|
bindings |
| Fields inherited from interface ilog.views.faces.IlvFrameworkConstants |
|---|
ACTION_NAME, AUTO_REFRESH, BOUNDING_BOX, CONSTRAINED_ON_CONTENTS, INTERACTOR, INTERACTOR_ID, MAX_ZOOM_LEVEL, MIN_ZOOM_LEVEL, NB_BUTTONS, ORIENTATION, ORIENTATION_HORIZONTAL, ORIENTATION_VERTICAL, PAN_FACTOR, STATIC_LAYERS_COUNT, TILE_SIZE, VISIBLE_LAYERS, ZOOM_FACTOR, ZOOM_LEVELS |
| Constructor Summary | |
|---|---|
IlvFacesView()
Creates a new IlvFacesView instance. |
|
| Method Summary | |
|---|---|
IlvRect |
getBoundingBox()
Returns the bounding box of the displayed view in manager coordinate system. |
IlvObjectSelectedFinder |
getDefaultObjectFinder()
Returns the default finder of this view. |
IlvFacesInteractor |
getInteractor()
Returns the interactor currently set on this view. |
String |
getInteractorId()
Returns the interactor identifier currently set on this view. |
double |
getMaxZoomLevel()
Returns the maximum zoom level of the view when the zoom is free. |
double |
getMinZoomLevel()
Returns the minimum zoom level of the view when the zoom is free. |
double |
getPanFactor()
Returns the pan factor used in the client built-in pan actions. |
int |
getStaticLayersCount()
Returns the number of static layers. |
int |
getTileSize()
Returns the tile size. |
IlvManagerView |
getView()
Returns the manager view that will be displayed by the view. |
ArrayList |
getVisibleLayers()
Returns the visible manager layer names. |
double |
getZoomFactor()
Returns the zoom factor used during client zoomIn and zoomOut actions. |
double[] |
getZoomLevels()
Returns the fixed zoom levels displayed by the view. |
boolean |
isConstrainedOnContents()
Returns whether the view is constrained to the manager content bounds or not. |
void |
processValidators(FacesContext context)
|
void |
restoreState(FacesContext context,
Object stateObj)
Restores the state of this component from the stateObj parameter. |
Object |
saveState(FacesContext context)
Returns the state of this component. |
void |
setBoundingBox(IlvRect boundingBox)
Sets the view bounding box. |
void |
setConstrainedOnContents(boolean constrainedOnContents)
Defines whether the view is constrained to the manager content bounds or not. |
void |
setInteractor(IlvFacesInteractor interactor)
The interactor property. |
void |
setInteractorId(String interactorId)
The interactor identifier property. |
void |
setMaxZoomLevel(double maxZoomLevel)
Sets the maximum zoom level. |
void |
setMinZoomLevel(double minZoomLevel)
Sets the minimum zoom level. |
void |
setPanFactor(double panFactor)
The factor used in the client built-in pan actions. |
void |
setStaticLayersCount(int layersCount)
Sets the number of static layers. |
void |
setTileSize(int tileSize)
Sets the size of a tile. |
void |
setView(IlvManagerView view)
Sets the manager view that will be displayed by the view. |
void |
setVisibleLayers(ArrayList visibleLayers)
Sets the visible manager layer names. |
void |
setZoomFactor(double zoomFactor)
Sets the factor used when zoomIn or zoomOut JavaScript actions are called. |
void |
setZoomLevels(double[] zoomLevels)
Sets the fixed zoom levels displayed by the view. |
void |
updateModel(FacesContext context)
This method updates the referenced values with the local values of the component if these values were updated from the client. |
| Methods inherited from class ilog.views.faces.component.IlvBasicView |
|---|
clearDecodedPropertyMap, createFacesComponent, getAttributes, getComponentType, getData, getFamily, getHeight, getMessageBox, getMessageBoxId, getStyle, getStyleClass, getWidth, isDecodedProperty, processUpdates, resetDecodedProperties, setData, setDecodedProperty, setHeight, setMessageBox, setMessageBoxId, setStyle, setStyleClass, setWidth |
| Methods inherited from class javax.faces.component.UIGraphic |
|---|
getUrl, getValue, getValueBinding, getValueExpression, setUrl, setValue, setValueBinding, setValueExpression |
| Methods inherited from class javax.faces.component.UIComponentBase |
|---|
addFacesListener, broadcast, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, invokeOnComponent, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient |
| Methods inherited from class javax.faces.component.UIComponent |
|---|
encodeAll, getContainerClientId |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Double ZOOM_FACTOR_DEFAULT_VALUE
zoomIn or zoomOut JavaScript actions are called.
public static final Double PAN_FACTOR_DEFAULT_VALUE
panNorth, and so on)
public static final Double MAX_ZOOM_DEFAULT_VALUE
zoomLevels property is not used. The default value is 10.
public static final Double MIN_ZOOM_DEFAULT_VALUE
zoomLevels property is not used. The default value is 1 (fit to content).
| Constructor Detail |
|---|
public IlvFacesView()
IlvFacesView instance.
| Method Detail |
|---|
public IlvFacesInteractor getInteractor()
public void setInteractor(IlvFacesInteractor interactor)
interactor - The interactor to set.public String getInteractorId()
public void setInteractorId(String interactorId)
interactorId - The interactor ID to set.public double getZoomFactor()
zoomIn and zoomOut actions.
The zoom is limited by the maxZoomLevel property.
This factor is used, if and only if, the zoom is free, for example, if the zoomLevel property is not set.
public void setZoomFactor(double zoomFactor)
zoomIn or zoomOut JavaScript actions are called.
This factor is used, if and only if, the zoom levels are free, for example, if the zoomLevel property is not set.
zoomFactor - The zoom factor to set.public double getPanFactor()
public void setPanFactor(double panFactor)
panFactor - The panFactor to set.public IlvRect getBoundingBox()
If this property is bound to a String bean property,
this value is converted, if possible, in a valid
IlvRect instance.
public void setBoundingBox(IlvRect boundingBox)
Note that the view may adapt this bounding box according to some constraints, such as fixed zoom levels.
boundingBox - The bounding box in the manager coordinate system.public void setView(IlvManagerView view)
view - The manager view to be displayed.
public IlvManagerView getView()
throws Exception
Exceptionpublic double[] getZoomLevels()
If the zoom levels are not specified, the zoom is only bound by the maxZoomLevel property.
public void setZoomLevels(double[] zoomLevels)
If the zoom levels are not specified, the zoom is only bound by the maxZoomLevel property.
zoomLevels - The zoom levels to set.public double getMaxZoomLevel()
This property is used if, and only if, the zoomLevels property is not used.
The default value is 10.
public void setMaxZoomLevel(double maxZoomLevel)
This property is used if, and only if, the zoomLevels property is not used.
The default value is 10.
maxZoomLevel - The max zoom level to set.public double getMinZoomLevel()
This property is used if, and only if, the zoomLevels property is not used.
The default value is 1.
public void setMinZoomLevel(double minZoomLevel)
This property is used if, and only if, the zoomLevels property is not used.
The default value is 1.
minZoomLevel - The min zoom level to set.public int getTileSize()
By default the tile size is -1, which means that tiled mode is disabled.
public void setTileSize(int tileSize)
The tile size must be carefully chosen for performance reasons.
See the dedicated section of the user manual for more information.
tileSize - The tile size to set.getTileSize()public int getStaticLayersCount()
public void setStaticLayersCount(int layersCount)
layersCount - The number of static layers.getStaticLayersCount()public void setVisibleLayers(ArrayList visibleLayers)
This property controls the manager layers that are visible. If the view is in tiled mode, manipulating only dynamic layer visibility is mandatory. Static layers are meant to be cached and must not be updated.
visibleLayers - The visible layer name list to set.public ArrayList getVisibleLayers()
This property controls the manager layers that are visible. If the view is in tiled mode, manipulating only dynamic layer visibilty is mandatory. Static layers are meant to be cached and must not be updated.
public boolean isConstrainedOnContents()
true.
Note that zoom levels (set by minZoomLevel or zoomLevels) lower than 1 will not be allowed if this property is set to true.
public void setConstrainedOnContents(boolean constrainedOnContents)
true.
Note that zoom levels (set by minZoomLevel or zoomLevels) lower than 1 will not be allowed if this property is set to true.
constrainedOnContents - Defines whether the view is constrained or not.public void processValidators(FacesContext context)
processValidators in class UIComponentBasepublic IlvObjectSelectedFinder getDefaultObjectFinder()
getDefaultObjectFinder in class IlvBasicViewnull.public void updateModel(FacesContext context)
updateModel in class IlvBasicViewcontext - The current faces context.public Object saveState(FacesContext context)
saveState in interface IlvFacesComponentsaveState in interface StateHoldersaveState in class IlvBasicViewcontext - The current faces context.
state of this component.
public void restoreState(FacesContext context,
Object stateObj)
stateObj parameter.
restoreState in interface IlvFacesComponentrestoreState in interface StateHolderrestoreState in class IlvBasicViewcontext - The current faces context.stateObj - The previously saved state of this component.
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||