Package org.geotools.styling
Class DisplacementImpl
- Object
-
- DisplacementImpl
-
- All Implemented Interfaces:
Cloneable
,Displacement
,Cloneable
public class DisplacementImpl extends Object implements Cloneable, Displacement
- Author:
- Ian Turton, CCG
-
-
Field Summary
Fields Modifier and Type Field Description static Displacement
DEFAULT
Default Displacement instance.static Displacement
NULL
Null Displacement instance.
-
Constructor Summary
Constructors Constructor Description DisplacementImpl()
DisplacementImpl(Expression dx, Expression dy)
DisplacementImpl(FilterFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(StyleVisitor visitor)
Object
accept(TraversingStyleVisitor visitor, Object data)
calls the visit method of a StyleVisitorObject
clone()
Creates and returns a copy of this object.boolean
equals(Object obj)
Expression
getDisplacementX()
Getter for property displacementX.Expression
getDisplacementY()
Getter for property displacementY.int
hashCode()
void
setDisplacementX(double displacementX)
Set displacement x to the provided literal.void
setDisplacementX(Expression displacementX)
Setter for property displacementX.void
setDisplacementY(double displacementY)
Set displacement y to the provided literal.void
setDisplacementY(Expression displacementY)
Setter for property displacementY.void
setFilterFactory(FilterFactory factory)
-
-
-
Field Detail
-
DEFAULT
public static final Displacement DEFAULT
Default Displacement instance.
-
NULL
public static final Displacement NULL
Null Displacement instance.
-
-
Constructor Detail
-
DisplacementImpl
public DisplacementImpl()
-
DisplacementImpl
public DisplacementImpl(FilterFactory factory)
-
DisplacementImpl
public DisplacementImpl(Expression dx, Expression dy)
-
-
Method Detail
-
setFilterFactory
public void setFilterFactory(FilterFactory factory)
-
setDisplacementX
public void setDisplacementX(Expression displacementX)
Setter for property displacementX.- Specified by:
setDisplacementX
in interfaceDisplacement
- Parameters:
displacementX
- New value of property displacementX.
-
setDisplacementX
public void setDisplacementX(double displacementX)
Set displacement x to the provided literal.- Parameters:
displacementX
- New value of property displacementX.
-
setDisplacementY
public void setDisplacementY(Expression displacementY)
Setter for property displacementY.- Specified by:
setDisplacementY
in interfaceDisplacement
- Parameters:
displacementY
- New value of property displacementY.
-
setDisplacementY
public void setDisplacementY(double displacementY)
Set displacement y to the provided literal.- Parameters:
displacementY
- New value of property displacementX.
-
getDisplacementX
public Expression getDisplacementX()
Getter for property displacementX.- Specified by:
getDisplacementX
in interfaceDisplacement
- Returns:
- Value of property displacementX.
-
getDisplacementY
public Expression getDisplacementY()
Getter for property displacementY.- Specified by:
getDisplacementY
in interfaceDisplacement
- Returns:
- Value of property displacementY.
-
accept
public Object accept(TraversingStyleVisitor visitor, Object data)
Description copied from interface:Displacement
calls the visit method of a StyleVisitor- Specified by:
accept
in interfaceDisplacement
- Parameters:
visitor
- the style visitor
-
accept
public void accept(StyleVisitor visitor)
- Specified by:
accept
in interfaceDisplacement
-
clone
public Object clone()
Description copied from interface:Cloneable
Creates and returns a copy of this object. The precise meaning of "copy" may depend on the class of the object.- Specified by:
clone
in interfaceCloneable
- Overrides:
clone
in classObject
- Returns:
- A copy of this object.
- See Also:
Object.clone()
-
-