public class LayerGroup extends AbstractLayer implements Parent<Layer>, Iterable<Layer>
ICON_LAYER, sync| Constructor and Description |
|---|
LayerGroup() |
LayerGroup(String name) |
| Modifier and Type | Method and Description |
|---|---|
protected <V extends Layer> |
addDescendants(List<V> layers,
Class<V> layerClass) |
void |
addLayer(int index,
Layer layer) |
boolean |
addLayer(Layer layer) |
LayerGroup |
addLayerGroup() |
LayerGroup |
addLayerGroup(int index,
String name) |
LayerGroup |
addLayerGroup(String name) |
protected <V extends Layer> |
addLayers(List<V> layers,
Class<V> layerClass) |
void |
addPath(List<Layer> path) |
protected <V extends Layer> |
addVisibleDescendants(List<V> layers,
Class<V> layerClass,
double scale) |
protected <V extends Layer> |
addVisibleLayers(List<V> layers,
Class<V> layerClass,
double scale) |
void |
clear() |
boolean |
containsLayer(Layer layer) |
static LayerGroup |
create(Map<String,Object> properties) |
void |
delete() |
protected void |
doRefresh() |
protected void |
doRefreshAll() |
protected boolean |
doSaveSettings(File directory) |
BoundingBox |
getBoundingBox() |
BoundingBox |
getBoundingBox(boolean visibleLayersOnly) |
List<Layer> |
getChildren() |
<V extends Layer> |
getDescenants(Class<V> layerClass) |
File |
getDirectory() |
GeometryFactory |
getGeometryFactory() |
protected File |
getGroupSettingsDirectory(File directory) |
long |
getId() |
<V extends Layer> |
getLayer(int i) |
<V extends Layer> |
getLayer(String name) |
Layer |
getLayerByPath(List<String> path) |
Layer |
getLayerByPath(String layerPath) |
int |
getLayerCount() |
List<LayerGroup> |
getLayerGroups() |
List<Layer> |
getLayers() |
<V extends Layer> |
getLayers(Class<V> layerClass) |
<V extends Layer> |
getLayers(List<String> names) |
<V extends Layer> |
getLayers(String... names) |
BoundingBox |
getSelectedBoundingBox() |
protected String |
getSettingsFileName() |
<V extends Layer> |
getVisibleDescendants(Class<V> layerClass,
double scale) |
boolean |
hasLayerWithSameName(Layer layer,
String name) |
int |
indexOf(Layer layer) |
void |
initialize(Layer layer) |
boolean |
isEmpty() |
boolean |
isHasSelectedRecords() |
boolean |
isQueryable() |
boolean |
isQuerySupported() |
boolean |
isZoomToLayerEnabled() |
Iterator<Layer> |
iterator() |
protected void |
loadLayer(File file) |
protected void |
loadLayers(Map<String,Object> properties) |
void |
openFile(File file) |
int |
openFile(int index,
File file) |
int |
openFile(int index,
URL url) |
void |
openFile(URL url) |
void |
openFiles(int index,
List<File> files) |
void |
openFiles(List<File> files) |
Layer |
removeLayer(int index) |
boolean |
removeLayer(Object o) |
boolean |
saveAllSettings(File directory) |
boolean |
saveChanges() |
void |
sort() |
Map<String,Object> |
toMap()
Convert the object to a Map of property name, value pairs.
|
addParent, addRenderer, addRenderer, canSaveSettings, checkShowProperties, clone, compareTo, createPanelComponent, createPropertiesPanel, createPropertiesTabCoordinateSystem, createPropertiesTabGeneral, createPropertiesTabGeneralPanelGeneral, createPropertiesTabGeneralPanelSource, createTableViewComponent, deleteWithConfirm, doInitialize, doSaveChanges, fireIndexedPropertyChange, firePropertyChange, getBeanPropertyListener, getChildClasses, getIcon, getLayerGroup, getMaximumScale, getMinimumScale, getName, getParent, getPath, getPathList, getPluginConfig, getProject, getPropertyChangeSupport, getRenderer, getSync, getType, initialize, isClonable, isEditable, isEditable, isEventsEnabled, isExists, isHasChanges, isHasGeometry, isInitialized, isReadOnly, isSelectable, isSelectable, isSelectSupported, isVisible, isVisible, propertyChange, refresh, refreshAll, saveSettings, saveSettings, setEditable, setEventsEnabled, setExists, setGeometryFactory, setIcon, setInitialized, setLayerGroup, setMaximumScale, setMinimumScale, setName, setPluginConfig, setPluginConfig, setPluginConfig, setProperties, setProperty, setQueryable, setQuerySupported, setReadOnly, setRenderer, setSelectable, setSelectSupported, setType, setVisible, showProperties, showProperties, showRendererProperties, showTableView, toggleEditable, toString, zoomToLayerclearProperties, close, getProperties, getProperty, getProperty, removeProperty, setPropertySoft, setPropertyWeakequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclearProperties, getProperties, getProperty, getProperty, removeProperty, setPropertySoft, setPropertyWeakpublic LayerGroup()
public LayerGroup(String name)
public static LayerGroup create(Map<String,Object> properties)
public void addLayer(int index,
Layer layer)
public boolean addLayer(Layer layer)
public LayerGroup addLayerGroup()
public LayerGroup addLayerGroup(int index, String name)
public LayerGroup addLayerGroup(String name)
protected <V extends Layer> void addVisibleDescendants(List<V> layers, Class<V> layerClass, double scale)
protected <V extends Layer> void addVisibleLayers(List<V> layers, Class<V> layerClass, double scale)
public void clear()
public boolean containsLayer(Layer layer)
public void delete()
delete in interface Layerdelete in class AbstractLayerprotected void doRefresh()
doRefresh in class AbstractLayerprotected void doRefreshAll()
doRefreshAll in class AbstractLayerprotected boolean doSaveSettings(File directory)
doSaveSettings in class AbstractLayerpublic BoundingBox getBoundingBox()
getBoundingBox in interface LayergetBoundingBox in class AbstractLayerpublic BoundingBox getBoundingBox(boolean visibleLayersOnly)
getBoundingBox in interface LayergetBoundingBox in class AbstractLayerpublic List<Layer> getChildren()
getChildren in interface Parent<Layer>public File getDirectory()
getDirectory in class AbstractLayerpublic GeometryFactory getGeometryFactory()
getGeometryFactory in interface LayergetGeometryFactory in class AbstractLayerpublic long getId()
getId in interface LayergetId in class AbstractLayerpublic <V extends Layer> V getLayer(int i)
public int getLayerCount()
public List<LayerGroup> getLayerGroups()
public BoundingBox getSelectedBoundingBox()
getSelectedBoundingBox in interface LayergetSelectedBoundingBox in class AbstractLayerprotected String getSettingsFileName()
getSettingsFileName in class AbstractLayerpublic <V extends Layer> List<V> getVisibleDescendants(Class<V> layerClass, double scale)
public int indexOf(Layer layer)
public void initialize(Layer layer)
public boolean isEmpty()
public boolean isHasSelectedRecords()
isHasSelectedRecords in interface LayerisHasSelectedRecords in class AbstractLayerpublic boolean isQueryable()
isQueryable in interface LayerisQueryable in class AbstractLayerpublic boolean isQuerySupported()
isQuerySupported in interface LayerisQuerySupported in class AbstractLayerpublic boolean isZoomToLayerEnabled()
isZoomToLayerEnabled in class AbstractLayerprotected void loadLayer(File file)
public void openFile(File file)
public int openFile(int index,
File file)
public int openFile(int index,
URL url)
public void openFile(URL url)
public Layer removeLayer(int index)
public boolean removeLayer(Object o)
public boolean saveAllSettings(File directory)
public boolean saveChanges()
saveChanges in interface LayersaveChanges in class AbstractLayerpublic void sort()
public Map<String,Object> toMap()
MapSerializerConvert the object to a Map of property name, value pairs. The values can be one of the following supported types. Other values should be converted to one of these values.
toMap in interface MapSerializertoMap in class AbstractLayerCopyright © 2015 Revolution Systems Inc.. All rights reserved.