org.geotools.styling
Interface Displacement

All Superinterfaces:
Displacement

public interface Displacement
extends Displacement

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

Author:
Ian Turton, CCG
Module:
modules/library/api (gt-api.jar)

Field Summary
static Displacement DEFAULT
          Default Displacement 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.
 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.
 
Methods inherited from interface Displacement
accept, getDisplacementY
 

Field Detail

DEFAULT

static final Displacement DEFAULT
Default Displacement 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.

Specified by:
getDisplacementX in interface Displacement
Returns:
Horizontal offeset

setDisplacementX

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


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.