public class UniqueSymbolLine extends ConstantColorAndDashesLine implements IUniqueSymbolLine
LineSymbolizer whose parameters are constant, whatever
the input data are. We expect from it :
PenStroke SolidFill, and consequently with a
constant Color.| Constructor and Description |
|---|
UniqueSymbolLine()
Build a new default
UniqueSymbolLine from scratch. |
UniqueSymbolLine(LineParameters lp)
Builds a new
UniqueSymbolLine using the needed parameters gathered in the given LineParameters
instance. |
UniqueSymbolLine(LineSymbolizer symbolizer)
Build a new
UniqueSymbolLine from the given symbolizer. |
UniqueSymbolLine(LineSymbolizer symbolizer,
ConstantPenStrokeLegend legend)
Build a new
UniqueSymbolLine instance from the given symbolizer
and legend. |
| Modifier and Type | Method and Description |
|---|---|
String |
getLegendTypeId()
Returns an Id that will be used to check that a Legend can be edited
with a given edition panel.
|
String |
getLegendTypeName()
Returns a string that describes - for human - the nature of the
thematic analysis made in this Legend.
|
LineParameters |
getLineParameters()
Gets the representation of this
UniqueSymbolLine with the equivalent LineParameters instance. |
ConstantPenStroke |
getPenStroke()
Gets the analysis associated to the inner
PenStroke. |
LegendStructure |
getStrokeLegend()
Gets the
LegendStructure associated to this UniqueSymbolLine. |
void |
setPenStroke(ConstantPenStroke penStroke)
Sets the analysis associated to the inner
PenStroke. |
getLineColor, getStrokeUom, getSymbolizer, setLineColor, setStrokeUomgetMaxScale, getMinScale, getName, setMaxScale, setMinScale, setNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMaxScale, getMinScale, getName, getSymbolizer, setMaxScale, setMinScale, setNamepublic static final String NAME
public UniqueSymbolLine()
UniqueSymbolLine from scratch. It contains a
default LineSymbolizer, which is consequently constant. The
associated LegendStructure structure is built during initialization.public UniqueSymbolLine(LineSymbolizer symbolizer)
UniqueSymbolLine from the given symbolizer. Note that
symbolizer must really be a unique symbol. Otherwise, you'll face ClassCastException.symbolizer - The input symbolizer.ClassCastException - If the Stroke contained in symbolizer can't be recognized
as a ConstantPenStrokeLegend.public UniqueSymbolLine(LineParameters lp)
UniqueSymbolLine using the needed parameters gathered in the given LineParameters
instance.lp - The LineParameters instance we'll use to configure our symbol.public UniqueSymbolLine(LineSymbolizer symbolizer, ConstantPenStrokeLegend legend)
UniqueSymbolLine instance from the given symbolizer
and legend. As the inner analysis is given directly with the symbolizer,
we won't check they match. It is up to the caller to check they do.symbolizer - The input symbolizerlegend - The associated legendpublic LegendStructure getStrokeLegend()
LegendStructure associated to this UniqueSymbolLine.getStrokeLegend in class ConstantColorAndDashesLineLegendStructure describing the inner stroke.public ConstantPenStroke getPenStroke()
IUniqueSymbolLinePenStroke.getPenStroke in interface IUniqueSymbolLinepublic void setPenStroke(ConstantPenStroke penStroke)
IUniqueSymbolLinePenStroke.setPenStroke in interface IUniqueSymbolLinepublic String getLegendTypeName()
LegendgetLegendTypeName in interface Legendpublic String getLegendTypeId()
LegendgetLegendTypeId in interface LegendgetLegendTypeId in class SymbolizerLegendpublic LineParameters getLineParameters()
UniqueSymbolLine with the equivalent LineParameters instance.LineParameters instance equivalent to this UniqueSymbolLine.Copyright © 2015 IRSTV CNRS-FR-2488. All Rights Reserved.