Interface Displacement

  • All Superinterfaces:
    Displacement
    All Known Implementing Classes:
    DisplacementImpl

    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
    • 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.