org.geotools.styling
Interface Displacement

All Known Implementing Classes:
DisplacementImpl

public interface Displacement

A Displacement gives X and Y offset displacements to use for rendering a text label near a point.

Author:
Ian Turton, CCG
Module:

Field Summary
static Displacement DEFAULT
          Default Displacment instance.
static Displacement NULL
          Null Displacement instance.
 
Method Summary
 void accept(StyleVisitor visitor)
           
 Expression getDisplacementX()
          Returns an expression that computes a pixel offset from the geometry point.
 Expression getDisplacementY()
          Returns an expression that computes a pixel offset from the geometry point.
 void setDisplacementX(Expression x)
          Sets the expression that computes a pixel offset from the geometry point.
 void setDisplacementY(Expression y)
          Sets the expression that computes a pixel offset from the geometry point.
 

Field Detail

DEFAULT

static final Displacement DEFAULT
Default Displacment instance.


NULL

static final Displacement NULL
Null Displacement instance.

Method Detail

getDisplacementX

Expression getDisplacementX()
Returns an expression that computes a pixel offset from the geometry point. This offset point is where the text's anchor point gets located. If this expression is null, the default offset of zero is used.

Returns:
Horizontal offeset

setDisplacementX

void setDisplacementX(Expression x)
Sets the expression that computes a pixel offset from the geometry point.


getDisplacementY

Expression getDisplacementY()
Returns an expression that computes a pixel offset from the geometry point. This offset point is where the text's anchor point gets located. If this expression is null, the default offset of zero is used.

Returns:
DOCUMENT ME!

setDisplacementY

void setDisplacementY(Expression y)
Sets the expression that computes a pixel offset from the geometry point.


accept

void accept(StyleVisitor visitor)


Copyright © 1996-2009 Geotools. All Rights Reserved.