Package com.luciad.view.gxy
package com.luciad.view.gxy
Provides two-dimensional views and components supporting the visualization of the former's representation.
This package defines ILcdGXYView
, an ILcdView
to visualize
two-dimensional object geometry, and its main implementations:
TLcdGXYViewJPanel
, a fast general-purpose Swing component;TLcdGXYViewJPanelLightWeight
, a memory-efficient Swing component for specific use cases;TLcdGXYViewCanvas
, a fast general-purpose AWT component;TLcdGXYViewBufferedImage
, an image based implementation for server-side rendering.
The package com.luciad.view.map
provides subclasses of these implementations for viewing objects
in a map context.
Unless stated otherwise, the classes in this package are meant to be used in a single thread, which is often
the event dispatch thread. Multi-threaded painting can be enabled using the package
com.luciad.view.gxy.asynchronous
.
- Since:
- 1.0
-
ClassDescriptionConvenience class to wrap an
ILcdGXYContext
: one only has to overwrite those methods that are required.ALcdGXYEditor
is an abstract class that can be used for implementing theILcdGXYEditor
interface.AnALcdGXYInteractiveLabelProvider
can provide ajava.awt.Component
that can be shown to the user so he can modify the properties of the object.This listener can be used to be notified when interaction is started, stopped or cancelled.This class implements some of the functionality common to mostILcdGXYLabelPainter2
s.AnALcdGXYLabelStamp
is an object that performs the actual painting of a label.ALcdGXYPainter
is an abstract class that can be used for implementing theILcdGXYPainter
interface.BeanInfo class for ALcdGXYPainter.Provides default implementations for some of theILcdGXYPen
methods.Indicates the rendering quality of the pen.ILcdAWTPath
is an interface defining a path in AWT coordinates.ILcdGeneralPath
is an interface defining a general path in world coordinates.ILcdGXYContext
defines the context to be used by anILcdGXYPainter
(respectively anILcdGXYEditor
) for drawing (editing) on anILcdGXYView
anObject
belonging to anILcdModel
.Interprets user interaction on anILcdGXYView
.This extension ofILcdGXYLayer
adds extra methods to allow querying and changing what labels get painted and where the labels are placed.Handles editing of an object through interactions with the objects representations in anILcdGXYView
.ILcdGXYEditorProvider<T extends ILcdGXYEditor>Provides anILcdGXYLayer
with anILcdGXYEditor
to edit the objects in the layers model.Interface that models a label editor allowing the user to move the labels on the map, for example graphically by using his mouse.This is the interface for all classes that define how to get a validILcdGXYLabelEditor
for editing the labels of anObject
.Provider ofTLcdGXYLabelObstacle
s: locations where label placement should be avoided.A label painter allows to paint and query the view bounds of a domain object's label representation.Extension ofILcdGXYMultiLabelPainter
that allows free label placement next to the discrete label placement offered by the super interface.This is the interface for all classes that define how to get a validILcdGXYLabelPainter
for painting the labels of anObject
.A provider of label priorities.Provides the combined representation in anILcdGXYView
of all objects in anILcdModel
.This interface models a decoder forILcdGXYLayer
objects.This interface models an encoder forILcdGXYLayer
objects.Deprecated.label algorithm providers offer more flexibility for labeling layersDeprecated.UseILcdLayerTreeNode
insteadA layer subset list defines a set of domain objects that are present in one or more layers.AILcdGXYMultiLabelPainter
can paint multiple labels per object.A provider of label priorities that is able to distinguish between an object's labels and sublabels.Locates and paints the representation of an object on anILcdGXYView
.ILcdGXYPainterProvider<T extends ILcdGXYPainter>Provides anILcdGXYLayer
with anILcdGXYPainter
to represent the objects in the layers model.AnILcdGXYPainterStyle
tells anILcdGXYPainter
how to set up the drawing properties of aGraphics
(e.g. Color, Stroke, etc) before painting anObject
in a given mode andILcdGXYContext
.Provides low-level operations for painting and editing on anILcdGXYView
.
SeeALcdGXYPen.create(com.luciad.model.ILcdModelReference)
for default factory methods.Deprecated.as of version 3.0.AnILcdView
to visualize two-dimensional object geometry, based on AWTGraphics
and organized inILcdGXYLayer
objects.Deprecated.ILcdGXYViewLabelPlacer offers more powerful and flexible decluttering functionalityThis interface defines all transformations between model coordinates and AWT view coordinates.This interface defines all transformations between world coordinates and AWT view coordinates.Provides a validILcdGXYViewXYWorldTransformation
for anILcdGXYView
.Marker interface indicating a layer whose labels should not be deconflicted byILcdView
implementations.This interface defines a parametric representation of a path.AnILcdGXYView
that supports rotation, adding it as an extra parameter (next to the scale and origin mapping) to the view-world transformation.This class provides an implementation of anILcdAWTPath
.Specifies how the interior of a shape is determined for self-intersecting polygons, i.e. how to calculate whether a point is outside or inside the shape.Composite implementation ofILcdGXYLayerFactory
.ILcdGXYLayerDecoder
,ILcdGXYLayerEncoder
andILcdGXYLayerFactory
forILcdGXYLayer
s whoseILcdModel
contains featured points (bothILcdPoint
andILcdFeatured
).ILcdGXYLayerDecoder
,ILcdGXYLayerEncoder
andILcdGXYLayerFactory
forILcdGXYLayer
s whoseILcdModel
contains featured polygons (bothILcdPolygon
andILcdFeatured
).ILcdGXYLayerDecoder
,ILcdGXYLayerEncoder
andILcdGXYLayerFactory
forILcdGXYLayer
s whoseILcdModel
contains featured polylines (bothILcdPolyline
andILcdFeatured
).When triggered thisILcdAction
changes the origin and scale of a givenILcdGXYView
to either fit to the model bounds set or, in case the bounds set is null to fit to the combined bounds of all the objects contained in the layer set.Action to fit all selected objects of a view within the view clip.Implementation ofILcdGXYPainterStyle
that represents a line style, with a color and line width that can be different in regular and selected mode.This class provides an implementation of anILcdGeneralPath
.AStroke
implementation that can be used to draw one or more patterns repetitively along a path.Composite implementation of theILcdGXYLabelObstacleProvider
interface.This is an implementation ofILcdGXYContext
.This label location contains two extra fields used to identify the position of a label on an awt path.This label painter paints curved text strings along a path.Extension ofTLcdGXYLabelPainter
that retrieves the label content through theILcdDataObject
interface instead of usingobject.toString()
.Extension ofTLcdGXYPolygonLabelPainter
that retrieves the label content through theILcdDataObject
interface instead of usingobject.toString()
.Extension ofTLcdGXYPolylineLabelPainter
that retrieves the label content through theILcdDataObject
interface instead of usingobject.toString()
.ThisILcdGXYLayer
is a layer wrapper that paints the wrapped layer as color-coded densities.Deprecated.The functionality offered by this class has been replaced with a properILcdGXYLabelEditor
.This is an implementation ofILcdGXYEditorProvider
that returns for anObject
anILcdGXYEditor
that has been registered for its class.Extension ofTLcdGXYLabelPainter
that retrieves the label content through theILcdFeatured
interface instead of usingobject.toString()
.Extension ofTLcdGXYPolygonLabelPainter
that retrieves the label content through theILcdFeatured
interface instead of usingobject.toString()
.Extension ofTLcdGXYPolylineLabelPainter
that retrieves the label content through theILcdFeatured
interface instead of usingobject.toString()
.When triggered (execute) this command changes the origin and scale of a givenILcdGXYView
to fit into given world bounds.A label painter that adds halo effects to labels.An extension ofTLcdGXYHaloLabelPainter
that supportsILcdGXYLabelPainter2
.ILcdGXYPainterStyle
that fills areas by hatching them with a given line width and color.The fill pattern.An obstacle: a location where label placement should be avoided.TLcdGXYLabelPainter
is an implementation ofILcdGXYLabelPainter2
that paints textual labels.This aBeanInfo
for theTLcdGXYLabelPainter
class.This is aPropertyEditor
for theTLcdGXYLabelPainter
class.Default implementation of theILcdGXYEditableLabelsLayer
interface.BeanInfo class for TLcdGXYLayer.A greedy layer label painter based on the label locations provided by each label'slabel painter
.Deprecated.UseTLcdGXYLayerTreeNode
insteadThis is an implementation of theILcdGXYLayerSubsetList
interface.AnILcdLayerTreeNode
forILcdGXYLayer
s.Layer factory to create layer nodes with sub-layers (ILcdLayerTreeNode
's) for models with sub-models (ILcdModelTreeNode
's).TLcdGXYMultiFontLabelPainter
is an implementation ofILcdGXYLabelPainter2
that paints textual labels using multiple fonts or colors.This is an implementation of theILcdGXYPainterStyle
interface.ThisILcdGXYPainterStyle
applies a given font, and either a color or a selectionColor.A painter provider that allowsregistering
painters for specific types of shapes.
By default, the provider is empty.A BeanInfo for theTLcdGXYPainterProvider
class.This class can play the role of a Customizer, or the role of a custom editor for aTLcdGXYPainterProvider
.APropertyEditor
for theTLcdGXYPainterProvider
class.ILcdGXYPen
for painting and editing elementary shapes defined in a geodetic model reference or grid reference with very high performance.TLcdGXYPolygonStampLabelPainter
that displays the polygon's toString() method as a text label.BeanInfo class forTLcdGXYPolygonLabelPainter
.Polygon label painter and label editor that positions the center of labels inside the polygon.TLcdGXYPolylineStampLabelPainter
that displays a point list's toString() method as a text label.This aBeanInfo
for theTLcdGXYPolylineLabelPainter
class.Point list label painter and label editor that positions labels on or along line segments.When triggered (actionPerformed), thisILcdAction
sets a givenILcdGXYController
on a givenILcdGXYView
.This is aBeanInfo
for theTLcdGXYSetControllerAction
class.A painter and editor for all supported shape types.This implementation ofILcdGXYLabelPainter2
delegates the actual painting to aALcdGXYLabelStamp
.ILcdGXYView
implementation based on an off-screen image.
It does not depend on AWT or Swing components, and can be used on the server side (for example, in a Servlet) for generating images to be sent to light-weight clients.An implementation of theILcdGXYView
interface as ajava.awt.Canvas
.Makes the representations of all Objects that belong to one or moreILcdGXYLayer
s fit into the containingILcdGXYView
.BeanInfo class forTLcdGXYViewFitAction
.An implementation of theILcdGXYView
interface as ajavax.swing.JPanel
.ILcdGXYView
implementation that consumes less memory thanTLcdGXYViewJPanel
.Deprecated.ILcdGXYViewLabelPlacer offers more powerful and flexible decluttering functionalityThis aBeanInfo
for theTLcdGXYViewLabelPainter
class.This an implementation of theILcdGXYViewModelTransformation
interface.This is aILcdAction
(i.e. an ActionListener) for panning aILcdGXYView
of [deltaX,deltaY] in screen coordinates.An implementation of theILcdGXYView
interface as ajava.awt.Panel
.This PlanarImage implements an off-screen view.This an implementation of theILcdGXYViewXYWorldTransformation
interface.This is aILcdAction
(i.e. an ActionListener) for zooming aILcdGXYView
of a given zoom factor.ILcdGXYLayerDecoder
,ILcdGXYLayerEncoder
andILcdGXYLayerFactory
forILcdGXYLayer
s whoseILcdModel
contains multi level rasters (ILcdMultilevelRaster
).ILcdGXYLayerDecoder
,ILcdGXYLayerEncoder
andILcdGXYLayerFactory
forILcdGXYLayer
s whoseILcdModel
contains (single level) rasters (ILcdRaster
).ThisILcdAction
will save the content of anILcdGXYView
set as a property into a GIF File.This is an implementation of theILcdGXYEditorProvider
interface that returns always the sameILcdGXYEditor
.This is an implementation of theILcdGXYPainterProvider
interface that returns always the sameILcdGXYPainter
.ILcdGXYPainterStyle
based onjava.awt.Stroke
.This line style builder makes it possible to create pre-defined stroke based line styles.Describes how lines are ended.Describes how segments are joined.