User Tools

Site Tools


api:dk11:java:tatukgis.jdk.tgis_layer



TGIS_Layer class

DK for Java | tatukgis.jdk.TGIS_Layer | Classes | Constructors | Fields | Methods | Properties | Events

General layer class. Must be derived to provide file access.

Available also on: Delphi | .NET | ActiveX | Python.

Syntax

// Java
public class TGIS_Layer extends TGIS_LayerAbstract {
};
// Oxygene
type
  TGIS_Layer = public class( TGIS_LayerAbstract )
  end;

Inheritance

→ TGIS_BaseObjectDisposable → TGIS_LayerAbstract

Constructors

Inherited Overrides Protected
Name Visibility Description
TGIS_Layer() public Creates a layer with default parameters.
TGIS_Layer(java.lang.String) public Creates a layer and sets the Path property.

Fields

Inherited Protected
Name Visibility Description
FActive protected True if the layer is active.
FAddition protected Additional integer property value.
FAge protected Layer age value storing the last modification timestamp.
FBasemap protected True if the layer is interpreted as a basemap.
FBasemapDraw protected True if the layer is currently being drawn inside a basemap thread.
FCachedPaint protected False if layer must be painted directly (bypassing cache).
FCaption protected Layer caption.
FCodePage protected Code page in which text is stored.
FCodePageForced protected Code page forced by the project file or property setting.
FCollapsed protected True if the layer is collapsed in the legend hierarchy.
FComments protected Additional comments.
FConfigFile protected Configuration file handle.
FConfigFile2 protected Configuration file handle.
FConfigName protected Configuration file name.
FCS protected Layer CRS (Coordinate Reference System) object.
FCustomData protected List of custom string data associated with the layer.
FDormantMode protected Dormant mode for the layer.
FDriver protected Layer driver.
FExtent protected Layer extent in map coordinates.
FExtent3D protected Three-dimensional layer extent in map coordinates.
FFileCopyright protected Additional textual information about layer copyright.
FFileInfo protected Additional textual information about the layer, such as compression, pixel count, and copyright.
FGUID protected Unique layer identifier.
FHideFromLegend protected True if layer should not be visible in a legend.
FIcon protected Layer icon displayed in the legend.
FInPaint protected True while the layer is in the paint process.
FIsLocked protected True if the layer is in the locked state.
FIsModified protected True if the layer structure or geometry has been modified.
FIsOpened protected True if the layer has been opened.
FIsPrepared protected True if the layer has been prepared.
FIsReadOnly protected Read-only flag.
FMaxTileSize protected Maximum allowed tile size for the layer.
FMultiUserMode protected Multiuser access mode for the layer.
FName protected Layer name.
FOnBusy protected Busy event fired regularly during long-running operations.
FOnPaintLayer protected PaintLayer event fired during Paint and related drawing operations.
FOnPassword protected Fired when opening a layer to resolve required user name or password values.
FOnRead protected Fired for each file read request.
FOnWrite protected Fired for each file write request.
forceCachedMode protected Set to True to force drawing through the cached bitmap path.
FOverlappedExtentMargin protected Overlapped extent margin.
FParamsList protected List of parameter sets grouped by section.
FParentLayer protected Parent layer.
FPath protected Layer path.
FProjectedExtent protected Cached projected extent.
FProjectedExtentBase protected Cached projected extent base extent in unprojected layer coordinates.
FProjectedExtentEPSG protected Cached projected extent layer CRS (Coordinate Reference System) context.
FProjectedExtentRotationAngle protected Cached projected extent rotation angle context.
FProjectedExtentRotationPoint protected Cached projected extent rotation point context.
FProjectedExtentViewerEPSG protected Cached projected extent viewer CRS (Coordinate Reference System) context.
FRenderer protected Handle to a renderer used for drawing shapes.
FStatistics protected Statistics engine.
FStream protected Reference to a possible stream backing the layer data source.
FSubLayers protected List of child sublayers contained by this layer.
FSubType protected Sublayer type flags for this layer.
FSupportsAsync protected Indicates whether the layer implements asynchronous operations.
FSupportsAutoStyle protected Indicates whether the layer supports auto styling.
FSupportsTiledPaint protected Indicates whether the layer supports tiled paint.
FTag protected Tag value.
FTagInternal protected Internal Tag value.
FTagPointer protected Pointer tag value.
FTileable protected True if the layer is currently printed or exported using tiles.
FTiledDrawMode protected Current tiled draw mode used while drawing in a basemap thread.
FTransform protected Custom transformation.
FTransparency protected Transparency value.
FUnSupportedOperations protected Set of operations not supported by the layer.
FUseConfig protected True if configuration file support is enabled.
FUserObject protected User object owned by the layer and destroyed when the layer is destroyed or when replaced.
FViewer protected Reference to viewer object.
inDraw protected True while layer drawing is still in progress to avoid circular drawing calls.
paramsCache protected List of cached parameter sections prepared for rendering.
paramsCacheUpdated protected True if cached parameters are ready for rendering.
View3D public 3D representation settings for the layer.

Methods

Inherited Overrides Protected
Name Visibility Description
Alive public Makes the layer non-dormant by restoring resources released by
ApplyAutoStyle public Applies auto-styling to the layer.
ApplyAutoStyle(bool) public Applies auto-styling to the layer.
applyConfigOptions protected Applies layer option settings from a configuration file.
applyConfigProjection(TGIS_ConfigAbstract) protected Applies projection settings from a configuration file.
applyConfigProjection(TGIS_ConfigAbstract, TGIS_Layer) protected Applies projection settings from a configuration file.
ApplyCuttingPolygon public Sets a clipping polygon for the layer.
ChangeHash public Changes the hash used to verify layer modifications.
ClearModified public Clears the IsModified flag for a layer and its sublayers.
doApplyAutoStyle protected Applies the layer-specific automatic styling routine.
Dormant public Makes the layer dormant by releasing resources to reduce memory consumption.
DormantGain public Calculates the approximate memory gain in megabytes that can be achieved by calling Dormant.
Draw public Draws the layer.
DrawEx public Draws the layer within a defined extent.
drawExtent protected Calculates the device drawing and clipping extent.
drawExtentEx protected Calculates the device drawing and clipping extent.
DrawFlash public Draws a flash effect.
DrawSelected public Draws only the selected items on the layer.
DrawSelectedEx public Draws only the selected items on the layer within a defined extent.
DrawSpecial public Draws a layer using the passed renderer.
ForEachSubLayer public Calls the callback for the layer and all of its sublayers.
GetAvailableLayers public Gets the list of layers available in the underlying storage.
GetSubLayer public Retrieves the layer identified by name.
HourglassShake public Notifies about a busy state using an hourglass.
IsGrid public Checks if the layer type is grid.
IsPixel public Checks if the layer type is pixel.
isSectionInVisibilityRange protected Checks whether a parameter section is visible for the current layer Level, ScaleAsFloat, and Zoom settings.
isSublayer protected Checks whether the layer belongs to another layer as a sublayer.
IsSupported public Checks whether the specified operation is supported by the layer.
IsTopology public Checks if the layer type is topology.
IsVector public Checks if the layer type is vector.
IsVector3D public Checks if the layer type is vector 3D.
IsVisible public Checks whether the layer is visible for the specified extent and the current display parameters.
Lock public Locks the layer for batch updates.
lockThread protected Locks the layer for thread-synchronized access.
MarkModified public Sets IsModified flag to true for a layer and its sublayers.
Move public Moves a layer up or down in the viewer zorder list.
MoveEx public Moves a layer up or down in the viewer zorder list (only visible layers).
MustCalculateStatistics public Verifies whether all statistics required to render the layer are available.
MustReproject public Checks whether the layer must be reprojected.
MustSave public Checks whether the layer has unsaved changes.
Open public Opens the layer.
optimizeParamsCache(int) protected Moves the specified section to the top of the cached list.
optimizeParamsCache(int, bool) protected Moves the specified section to the top of the cached list.
Paint public Draws the layer or fires the PaintLayer event if it is assigned.
Prepare public Opens the layer for non-drawing operations.
PrepareForExport public Prepares layer for export.
PrepareParams public Prepares cached rendering parameters for internal use.
prepareParamsCache protected Prepares the cached section list for rendering.
prepareParamsCache(java.lang.String) protected Prepares the cached section list for the specified style.
PreRecognize public Checks whether the layer can recognize and read the specified file.
Project public Applies projection to a single point.
Project3D public Applies projection to a single 3D point.
Project3D_Ref public Applies projection to a single 3D point.
ProjectExtent public Applies a projection on the extent.
Project_Ref public Applies projection to a single point.
RaiseBusyEvent public Fires the layer busy event.
RaiseBusyPrepare public Calls the assigned viewer's BusyPrepare method.
RaiseBusyRelease public Calls the assigned viewer's BusyRelease method.
RaiseBusyShake public Calls the assigned viewer's BusyShake method.
ReadConfig public Reads the layer configuration files.
ReadConfigParam public Reads a layer configuration parameter.
RecalcExtent public Updates the cached layer extent.
RecalcProjectedExtent public Recalculates the projected extent.
ReOpen public Reopens the layer.
RereadConfig public Rereads the layer configuration files.
resetMustReproject protected Resets the MustReproject state.
RevertAll public Reverts the layer to its original content.
RootLayer public Returns the topmost parent layer in the layer hierarchy.
SaveAll public Persists all layer state including data, configuration, and active transforms; releases cached copies.
SaveData public Persists layer data (geometry and attributes) and releases cached copies.
SetCSByEPSG public Sets the coordinate system using an EPSG (European Petroleum Survey Group) code.
SetCSByWKT public Sets the coordinate system from a WKT (Well-Known Text) string containing a GEOGCS or PROJCS definition.
SetCSByWKTFile public Sets the coordinate system from a file containing a WKT (Well-Known Text) string, such as a Shapefile .PRJ file.
setUp protected Performs the first general layer setup step.
setUp2 protected Performs the second general layer setup step.
setUp3 protected Performs the third general layer setup step.
storeConfigOptions protected Stores layer option settings in a configuration file.
transformExtent protected Transforms an extent using the custom transformation.
Unlock public Unlocks the layer after batch updates.
unlockThread protected Releases the lock used for thread-synchronized layer access.
UnprepareForExport public Finalizes export initialized with PrepareForExport.
Unproject public Applies reverse projection (recovers from the projection) on the single point.
Unproject3D public Applies reverse projection to a single 3D point.
Unproject3D_Ref public Applies reverse projection to a single 3D point.
UnprojectExtent public Applies reverse projection (recovers from the projection) on the extent.
Unproject_Ref public Applies reverse projection to a single point.
ViewerReParent public Sets the viewer for the layer and its sublayers.
WriteConfig public Writes the layer configuration files.

Properties

Inherited Protected
Name Visibility Description
Active public True if the layer is visible and can be localized.
Addition public Additional blending value used together with Transparency.
Age public Layer age value or last setup timestamp.
Basemap public True if the layer must be treated as a basemap for background painting.
BasemapDraw public True if the layer is currently being drawn in a basemap thread.
CachedPaint public False if the layer must be painted directly, bypassing the cache.
Caption public Layer caption; if not assigned directly, it will be filled with Name when the layer is added to the viewer.
CodePage public Code page used to store text.
Collapsed public True if the layer is collapsed in the legend, meaning only the layer title is visible.
Comments public Additional user comments associated with the layer.
ConfigFile public Configuration file object associated with the layer.
ConfigName public Configuration file name.
CS public Coordinate Reference System (CRS) assigned to the layer.
CustomData public List of custom user-defined entries saved to and restored from configuration and project files.
DirectMode public True if the layer is direct-mode (bypassing cache).
DormantMode public Memory-management mode for the layer.
Driver public The layer driver name.
Extent public Extent of the layer.
Extent3D public Three-dimensional extent of the layer.
FileCopyrights public Copyright information about the layer.
FileInfo public Additional textual information about the layer, such as compression, pixel count, or copyright details.
GUID public Unique layer identifier.
HideFromLegend public False if the layer should not be visible in the legend.
Icon public Layer icon displayed in the legend.
InPaint public True while the layer is being painted.
IsExportable public True if the layer is exportable.
IsLocked public True if the layer is locked.
IsModified public True if the layer structure or content was modified.
IsOpened public True if the layer is opened and is ready for operations.
IsPersistent public True if the layer is persistent.
IsReadOnly public True if the layer is read-only.
IsTopmost public True if the layer can be treated as the topmost trackable layer.
Layer3D public Mode of 3D layer operations.
MaxTileSize public Maximum allowed tile size for the layer.
MultiUserMode public Multiuser access mode for the layer.
Name public Layer name.
OverlappedExtentMargin public Overlap margin applied to the layer extent.
Params public Active rendering parameter section for the layer, including colors, fills, and related drawing settings.
ParamsList public List of parameter sections attached to the layer, including styling settings and their visibility ranges.
ParentLayer public Parent layer of a sublayer.
Path public Path to the file holding the layer data.
PathWithDriver public Path to the layer data prefixed with the driver name.
ProjectedExtent public Extent of the layer in projected units.
Renderer public Handle to a renderer used for drawing shapes.
Statistics public Layer statistics engine used by the layer.
Stream public Stream providing layer data as an alternative to the file specified by
SubLayers public List of sublayers belonging to the layer.
SubType public Subtype flags describing the layer role within a layer hierarchy.
SupportsAsync public Indicates whether the layer supports asynchronous operations.
SupportsAutoStyle public Indicates whether the layer supports auto styling.
SupportsTiledPaint public Indicates whether the layer supports tiled paint.
Tag public Application-defined integer value with no predefined meaning.
TagInternal public TagInternal has no predefined meaning.
TagPointer public TagPointer has no predefined meaning.
Tileable public True if the layer is currently being printed or exported using tiles.
TiledDrawMode public Indicates whether the layer is currently being drawn by the tiler.
Transform public Custom coordinate transformation applied to the layer.
Transparency public Transparency value for the layer (0..100).
UnSupportedOperations public Set of operations not supported by the layer.
UseConfig public True if the configuration file is active.
UserObject public Associates a user-defined object with the layer.
Viewer public Reference to the viewer that owns or displays this layer.
ZOrder public Layer position relative to all other layers.
ZOrderEx public Layer position relative to other visible layers.

Events

Inherited Protected
Name Visibility Description
BusyEvent public Fired regularly during long-running operations.
PaintLayerEvent public
PasswordEvent public
ReadEvent public Fired on each file read request.
WriteEvent public Fired on each file write request.

Remarks

PURPOSE: Provides the abstract base implementation for GIS layers, including lifecycle management, rendering support, coordinate-system handling, configuration, and sublayer hierarchy.

BEHAVIOR: The class manages common layer state such as path, viewer association, extents, styling parameters, locking, dormant mode, and modification tracking. Descendants implement the actual data access and format-specific behavior.

CONSTRAINTS: This class is abstract and cannot provide file access on its own. Use a supported descendant class for a concrete layer implementation.

References

2026/10/31 23:10

Page Tools