public abstract class AbstractLayer extends AbstractObjectWithProperties implements Layer, PropertyChangeListener, PropertyChangeSupportProxy, EventsEnabler, ProjectFramePanel
| Modifier and Type | Field and Description |
|---|---|
static ImageIcon |
ICON_LAYER |
protected Object |
sync |
| Constructor and Description |
|---|
AbstractLayer() |
AbstractLayer(Map<String,? extends Object> properties) |
AbstractLayer(String name) |
AbstractLayer(String name,
Map<String,? extends Object> properties) |
clearProperties, close, getProperties, getProperty, getProperty, removeProperty, setPropertySoft, setPropertyWeakequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclearProperties, getProperties, getProperty, getProperty, removeProperty, setPropertySoft, setPropertyWeakpublic AbstractLayer()
public AbstractLayer(String name)
public int addRenderer(LayerRenderer<?> child)
public int addRenderer(LayerRenderer<?> child, int index)
public boolean canSaveSettings(File directory)
protected boolean checkShowProperties()
public AbstractLayer clone()
public int compareTo(Layer layer)
compareTo in interface Comparable<Layer>public Component createPanelComponent()
createPanelComponent in interface ProjectFramePanelpublic TabbedValuePanel createPropertiesPanel()
createPropertiesPanel in interface Layerprotected JPanel createPropertiesTabCoordinateSystem(TabbedValuePanel tabPanel)
protected BasePanel createPropertiesTabGeneral(TabbedValuePanel tabPanel)
protected ValueField createPropertiesTabGeneralPanelGeneral(BasePanel parent)
protected ValueField createPropertiesTabGeneralPanelSource(BasePanel parent)
protected Component createTableViewComponent()
public void deleteWithConfirm()
protected boolean doInitialize()
protected void doRefresh()
protected void doRefreshAll()
protected boolean doSaveChanges()
protected boolean doSaveSettings(File directory)
protected void fireIndexedPropertyChange(String propertyName, int index, Object oldValue, Object newValue)
public void firePropertyChange(String propertyName, Object oldValue, Object newValue)
public PropertyChangeListener getBeanPropertyListener()
public BoundingBox getBoundingBox()
getBoundingBox in interface Layerpublic BoundingBox getBoundingBox(boolean visibleLayersOnly)
getBoundingBox in interface Layerpublic Collection<Class<?>> getChildClasses()
getChildClasses in interface Layerpublic File getDirectory()
public GeometryFactory getGeometryFactory()
getGeometryFactory in interface Layerpublic Icon getIcon()
getIcon in interface LayergetIcon in interface ProjectFramePanelpublic LayerGroup getLayerGroup()
getLayerGroup in interface Layerpublic long getMaximumScale()
getMaximumScale in interface Layerpublic long getMinimumScale()
getMinimumScale in interface Layerpublic String getName()
getName in interface LayergetName in interface ProjectFramePanelpublic <V extends LayerGroup> V getParent()
getParent in interface Child<LayerGroup>public String getPath()
Layerpublic List<Layer> getPathList()
getPathList in interface Layerpublic Project getProject()
getProject in interface Layerpublic PropertyChangeSupport getPropertyChangeSupport()
getPropertyChangeSupport in interface PropertyChangeSupportProxypublic <L extends LayerRenderer<? extends Layer>> L getRenderer()
getRenderer in interface Layerpublic BoundingBox getSelectedBoundingBox()
getSelectedBoundingBox in interface Layerprotected String getSettingsFileName()
public Object getSync()
public final void initialize()
initialize in interface Layerpublic boolean isClonable()
isClonable in interface Layerpublic boolean isEditable()
isEditable in interface Layerpublic boolean isEditable(double scale)
isEditable in interface Layerpublic boolean isEventsEnabled()
isEventsEnabled in interface EventsEnablerpublic boolean isHasChanges()
isHasChanges in interface Layerpublic boolean isHasGeometry()
isHasGeometry in interface Layerpublic boolean isHasSelectedRecords()
isHasSelectedRecords in interface Layerpublic boolean isInitialized()
isInitialized in interface Layerpublic boolean isQueryable()
isQueryable in interface Layerpublic boolean isQuerySupported()
isQuerySupported in interface Layerpublic boolean isReadOnly()
isReadOnly in interface Layerpublic boolean isSelectable()
isSelectable in interface Layerpublic boolean isSelectable(double scale)
isSelectable in interface Layerpublic boolean isSelectSupported()
isSelectSupported in interface Layerpublic boolean isZoomToLayerEnabled()
public void propertyChange(PropertyChangeEvent event)
propertyChange in interface PropertyChangeListenerpublic void refreshAll()
refreshAll in interface Layerpublic boolean saveChanges()
saveChanges in interface Layerpublic boolean saveSettings()
public boolean saveSettings(File directory)
saveSettings in interface Layerpublic void setEditable(boolean editable)
setEditable in interface Layerpublic boolean setEventsEnabled(boolean eventsEnabled)
setEventsEnabled in interface EventsEnablerpublic void setExists(boolean exists)
protected void setGeometryFactory(GeometryFactory geometryFactory)
public void setIcon(Icon icon)
protected void setInitialized(boolean initialized)
public void setLayerGroup(LayerGroup layerGroup)
setLayerGroup in interface Layerpublic void setMaximumScale(long maximumScale)
LayersetMaximumScale in interface Layerpublic void setMinimumScale(long minimumScale)
LayersetMinimumScale in interface Layerpublic void setPluginConfig(String pluginName, MapSerializer serializer)
public void setProperties(Map<String,? extends Object> properties)
setProperties in interface ObjectWithPropertiessetProperties in class AbstractObjectWithPropertiespublic void setProperty(String name, Object value)
setProperty in interface ObjectWithPropertiessetProperty in class AbstractObjectWithPropertiespublic void setQueryable(boolean queryable)
setQueryable in interface Layerprotected void setQuerySupported(boolean querySupported)
public void setReadOnly(boolean readOnly)
setReadOnly in interface Layerpublic void setRenderer(LayerRenderer<? extends Layer> renderer)
setRenderer in interface Layerpublic void setSelectable(boolean selectable)
setSelectable in interface Layerpublic void setSelectSupported(boolean selectSupported)
protected void setType(String type)
public void setVisible(boolean visible)
setVisible in interface Layerpublic void showProperties()
showProperties in interface Layerpublic void showProperties(String tabName)
showProperties in interface Layerpublic void showRendererProperties(LayerRenderer<?> renderer)
showRendererProperties in interface Layerpublic <C extends Component> C showTableView()
showTableView in interface Layerpublic void toggleEditable()
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 MapSerializerpublic void zoomToLayer()
Copyright © 2015 Revolution Systems Inc.. All rights reserved.