org.geotools.styling
Interface Displacement

All Superinterfaces:
org.opengis.style.Displacement

public interface Displacement
extends org.opengis.style.Displacement

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

Version:
$Id: Displacement.java 32919 2009-05-03 14:18:31Z jive $
Author:
Ian Turton, CCG

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

Field Detail

DEFAULT

static final Displacement DEFAULT
Default Displacement instance.


NULL

static final Displacement NULL
Null Displacement instance.

Method Detail

getDisplacementX

org.opengis.filter.expression.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 org.opengis.style.Displacement
Returns:
Horizontal offeset

setDisplacementX

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


setDisplacementY

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


accept

void accept(StyleVisitor visitor)


Copyright © 1996-2010 Geotools. All Rights Reserved.