|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.deegree_impl.graphics.sld.LinePlacement_Impl
Incarnation of an sld:LinePlacement-element.
Contains some deegree-specific extensions:
| Field Summary | |
private ParameterValueType |
gap
|
private ParameterValueType |
lineWidth
|
private ParameterValueType |
perpendicularOffset
|
| Fields inherited from interface org.deegree.graphics.sld.LinePlacement |
TYPE_ABOVE, TYPE_ABSOLUTE, TYPE_AUTO, TYPE_BELOW, TYPE_CENTER |
| Constructor Summary | |
LinePlacement_Impl(ParameterValueType perpendicularOffset,
ParameterValueType lineWidth,
ParameterValueType gap)
|
|
| Method Summary | |
java.lang.String |
exportAsXML()
exports the content of the Font as XML formated String |
int |
getGap(Feature feature)
Defines the distance between two captions on the line string. |
double |
getLineWidth(Feature feature)
Provides the thickness of the styled line (needed as information for the correct positioning of labels above and below the line string). |
double |
getPerpendicularOffset(Feature feature)
The PerpendicularOffset element of a LinePlacement gives the perpendicular distance away from a line to draw a label. |
int |
getPlacementType(Feature feature)
Returns the placement type (one of the constants defined in LinePlacement). |
void |
setGap(int gap)
Defines the distance between two captions on the line string. |
void |
setLineWidth(double lineWidth)
Provides the thickness of the styled line (needed as information for the correct positioning of labels above and below the line string). |
void |
setPerpendicularOffset(double perpendicularOffset)
|
void |
setPlacementType(int placementType)
Sets the placement type (one of the constants defined in LinePlacement). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private ParameterValueType perpendicularOffset
private ParameterValueType lineWidth
private ParameterValueType gap
| Constructor Detail |
public LinePlacement_Impl(ParameterValueType perpendicularOffset,
ParameterValueType lineWidth,
ParameterValueType gap)
| Method Detail |
public double getPerpendicularOffset(Feature feature)
throws FilterEvaluationException
deegree-specific extension: if the element has one of the values: 'center', 'above', 'below', 'auto', the return value is invalid
getPerpendicularOffset in interface LinePlacementfeature - specifies the Feature to be used for evaluation
of the underlying 'sld:ParameterValueType'
FilterEvaluationException - if the evaluation failspublic void setPerpendicularOffset(double perpendicularOffset)
setPerpendicularOffset in interface LinePlacementperpendicularOffset -
public int getPlacementType(Feature feature)
throws FilterEvaluationException
getPlacementType in interface LinePlacementfeature -
FilterEvaluationExceptionpublic void setPlacementType(int placementType)
setPlacementType in interface LinePlacementplacementType -
public double getLineWidth(Feature feature)
throws FilterEvaluationException
getLineWidth in interface LinePlacementfeature -
FilterEvaluationExceptionpublic void setLineWidth(double lineWidth)
setLineWidth in interface LinePlacementlineWidth - the lineWidth to be set
public int getGap(Feature feature)
throws FilterEvaluationException
getGap in interface LinePlacementfeature -
FilterEvaluationExceptionpublic void setGap(int gap)
setGap in interface LinePlacementgap - the gap to be setpublic java.lang.String exportAsXML()
exportAsXML in interface Marshallable
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||