ClusterPointStyle¶
Namespace: ThinkGeo.Core
Represents the ClusterPointStyle class.
public class ClusterPointStyle : Style
Inheritance object → Style → ClusterPointStyle
Properties¶
DefaultPointStyle¶
Gets or sets the DefaultPointStyle.
public PointStyle DefaultPointStyle { get; set; }
Property Value¶
ClusteredPointStyle¶
Gets or sets the ClusteredPointStyle.
public PointStyle ClusteredPointStyle { get; set; }
Property Value¶
DefaultTextStyle¶
Gets or sets the DefaultTextStyle.
public TextStyle DefaultTextStyle { get; set; }
Property Value¶
CustomStyles¶
Gets or sets the CustomStyles.
public Collection<Style> CustomStyles { get; }
Property Value¶
CellSize¶
Gets or sets the CellSize.
public int CellSize { get; set; }
Property Value¶
ClusterCellLinesVisible¶
Gets or sets the ClusterCellLinesVisible.
public bool ClusterCellLinesVisible { get; set; }
Property Value¶
MinimumFeaturesPerCellToCluster¶
Gets or sets the MinimumFeaturesPerCellToCluster.
public int MinimumFeaturesPerCellToCluster { get; set; }
Property Value¶
Name¶
This property gets and set the name of the style.
public string Name { get; set; }
Property Value¶
string
This property gets the name of the style.
Remarks:
This name is not used by the system; it is only for the developer. However, it can be used if you generate your own legend.
IsActive¶
This property gets and sets the active status of the style.
public bool IsActive { get; set; }
Property Value¶
bool
This property gets the active status of the style.
Remarks:
If the style is not active then it will not draw.
RequiredColumnNames¶
This property gets the collection of fields that are required for the style.
public Collection<string> RequiredColumnNames { get; }
Property Value¶
Remarks:
This property gets the collection of fields that are required for the style. These are in addition to any other columns you specify in styles that inherit from this one. For example, if you have use a ValueStyle and it requires a column name for the value comparison, then that column does not need to be in this collection. You only use the RequiredColumnNames for columns you need beyond those required by specific inherited styles.
Filters¶
Gets the list of SQL-style filters applied to this style.
public Collection<string> Filters { get; }
Property Value¶
LabelDisplayMode¶
Gets the current label display mode that determines whether labels, shapes, or both are rendered.
public LabelDisplayMode LabelDisplayMode { get; }
Property Value¶
Constructors¶
ClusterPointStyle()¶
Initializes a new instance of the ClusterPointStyle class.
public ClusterPointStyle()
ClusterPointStyle(PointStyle)¶
Initializes a new instance of the ClusterPointStyle class.
public ClusterPointStyle(PointStyle defaultPointStyle)
Parameters¶
defaultPointStyle PointStyle
ClusterPointStyle(PointStyle, TextStyle)¶
Initializes a new instance of the ClusterPointStyle class.
public ClusterPointStyle(PointStyle defaultPointStyle, TextStyle defaultTextStyle)
Parameters¶
defaultPointStyle PointStyle
defaultTextStyle TextStyle
ClusterPointStyle(PointStyle, TextStyle, PointStyle)¶
Initializes a new instance of the ClusterPointStyle class.
public ClusterPointStyle(PointStyle defaultPointStyle, TextStyle defaultTextStyle, PointStyle clusteredPointStyle)
Parameters¶
defaultPointStyle PointStyle
defaultTextStyle TextStyle
clusteredPointStyle PointStyle
Methods¶
DrawCore(IEnumerable<Feature>, GeoCanvas, Collection<SimpleCandidate>, Collection<SimpleCandidate>)¶
Provides the overridable implementation that draws onto and appends any label candidates to .
protected void DrawCore(IEnumerable<Feature> features, GeoCanvas canvas, Collection<SimpleCandidate> labelsInThisLayer, Collection<SimpleCandidate> labelsInAllLayers)
Parameters¶
features IEnumerable<Feature>
The features.
canvas GeoCanvas
The to draw to.
labelsInThisLayer Collection<SimpleCandidate>
The labels in this layer.
labelsInAllLayers Collection<SimpleCandidate>
A shared collection that receives label candidates generated during drawing.
Returns¶
GetRequiredColumnNamesCore()¶
Provides the overridable implementation that returns required column names from the underlying data source.
protected Collection<string> GetRequiredColumnNamesCore()
Returns¶
Collection<string>
The result of the operation.
OnDrawingClusterdFeature(DrawingClusteredFeatureClusterPointStyleEventArgs)¶
Performs on drawing clusterd feature.
protected void OnDrawingClusterdFeature(DrawingClusteredFeatureClusterPointStyleEventArgs e)
Parameters¶
e DrawingClusteredFeatureClusterPointStyleEventArgs
The e.
Returns¶
GetSubStylesCore()¶
Provides the overridable implementation that returns sub styles.
protected Collection<Style> GetSubStylesCore()
Returns¶
Collection<Style>
The result of the operation.
Events¶
DrawingClusteredFeature¶
Occurs when the DrawingClusteredFeature event is raised.
public event EventHandler<DrawingClusteredFeatureClusterPointStyleEventArgs> DrawingClusteredFeature;