public class LinePlacementImpl extends Object implements LinePlacement, Cloneable
Constructor and Description |
---|
LinePlacementImpl() |
LinePlacementImpl(FilterFactory factory) |
LinePlacementImpl(FilterFactory factory,
boolean aligned,
boolean repeated,
boolean generalized,
Expression gap,
Expression initialGap) |
LinePlacementImpl(LinePlacement placement) |
Modifier and Type | Method and Description |
---|---|
void |
accept(StyleVisitor visitor) |
Object |
accept(StyleVisitor visitor,
Object data)
calls the visit method of a StyleVisitor
|
Object |
clone()
Creates and returns a copy of this object.
|
boolean |
equals(Object obj) |
Expression |
getGap()
Gap gives the distance between two graphics.
|
Expression |
getInitialGap()
InitialGap specifies how far away the first graphic will be drawn relative to the start of
the rendering line
|
Expression |
getPerpendicularOffset()
Getter for property perpendicularOffset.
|
int |
hashCode() |
boolean |
isAligned()
Correct method name violation from GeoAPI.
|
boolean |
IsAligned()
Labels can either be aligned to the line geometry if IsAligned is "true" (the default) or are
drawn horizontally.
|
boolean |
isGeneralizeLine()
GeneralizeLine allows the actual geometry, be it a linestring or polygon to be generalized
for label placement.
|
boolean |
isRepeated()
If IsRepeated is "true", the label will be repeatedly drawn along the line with InitialGap
and Gap defining the spaces at the beginning and between labels.
|
void |
setAligned(boolean aligned) |
void |
setFilterFactory(FilterFactory factory)
Deprecated.
|
void |
setGap(Expression gap) |
void |
setGeneralized(boolean generalized) |
void |
setInitialGap(Expression initialGap) |
void |
setPerpendicularOffset(Expression perpendicularOffset)
Setter for property perpendicularOffset.
|
void |
setRepeated(boolean repeated) |
public LinePlacementImpl()
public LinePlacementImpl(LinePlacement placement)
public LinePlacementImpl(FilterFactory factory)
public LinePlacementImpl(FilterFactory factory, boolean aligned, boolean repeated, boolean generalized, Expression gap, Expression initialGap)
@Deprecated public void setFilterFactory(FilterFactory factory)
public Expression getPerpendicularOffset()
getPerpendicularOffset
in interface LinePlacement
public void setPerpendicularOffset(Expression perpendicularOffset)
perpendicularOffset
- New value of property perpendicularOffset.public Expression getInitialGap()
LinePlacement
getInitialGap
in interface LinePlacement
public Expression getGap()
LinePlacement
getGap
in interface LinePlacement
public boolean isRepeated()
LinePlacement
isRepeated
in interface LinePlacement
public boolean IsAligned()
LinePlacement
IsAligned
in interface LinePlacement
public boolean isAligned()
LinePlacement
public boolean isGeneralizeLine()
LinePlacement
isGeneralizeLine
in interface LinePlacement
public Object accept(StyleVisitor visitor, Object data)
LinePlacement
accept
in interface LabelPlacement
accept
in interface LinePlacement
visitor
- the style visitorpublic void accept(StyleVisitor visitor)
public Object clone()
Cloneable
clone
in class Object
Object.clone()
public void setRepeated(boolean repeated)
public void setGeneralized(boolean generalized)
public void setAligned(boolean aligned)
public void setGap(Expression gap)
public void setInitialGap(Expression initialGap)
Copyright © 1996–2019 Geotools. All rights reserved.