Class LinearCoordinateSequence

java.lang.Object
org.mapfish.print.map.geotools.grid.LinearCoordinateSequence
All Implemented Interfaces:
Cloneable, org.locationtech.jts.geom.CoordinateSequence

public final class LinearCoordinateSequence extends Object implements org.locationtech.jts.geom.CoordinateSequence, Cloneable
The LinearCoordinateSequence class.
  • Constructor Details

    • LinearCoordinateSequence

      public LinearCoordinateSequence()
  • Method Details

    • setOrigin

      public LinearCoordinateSequence setOrigin(double axis1Origin, double axis2Origin)
      Set the origin point of the sequence.
      Parameters:
      axis1Origin - origin of axis 1
      axis2Origin - origin of axis 2
    • setVariableAxis

      public LinearCoordinateSequence setVariableAxis(int variableAxis)
      Set the axis which will be variable.
      Parameters:
      variableAxis - the axis which will be variable.
    • setNumPoints

      public LinearCoordinateSequence setNumPoints(int numPoints)
      Set the number of points in the sequence.
      Parameters:
      numPoints - the number of points in the sequence.
    • setSpacing

      public LinearCoordinateSequence setSpacing(double spacing)
      Set the space between points.
      Parameters:
      spacing - space between points.
    • setOrdinate0AxisDirection

      public LinearCoordinateSequence setOrdinate0AxisDirection(org.geotools.api.referencing.cs.AxisDirection ordinate0AxisDirection)
      Set the axisDirection of the first ordinate.
      Parameters:
      ordinate0AxisDirection - the axisDirection of the first ordinate.
    • getDimension

      public int getDimension()
      Specified by:
      getDimension in interface org.locationtech.jts.geom.CoordinateSequence
    • setDimension

      public LinearCoordinateSequence setDimension(int dimension)
      Set the number of dimensions.
      Parameters:
      dimension - the number of dimensions for each point.
    • getCoordinate

      public org.locationtech.jts.geom.Coordinate getCoordinate(int i)
      Specified by:
      getCoordinate in interface org.locationtech.jts.geom.CoordinateSequence
    • getCoordinateCopy

      public org.locationtech.jts.geom.Coordinate getCoordinateCopy(int i)
      Specified by:
      getCoordinateCopy in interface org.locationtech.jts.geom.CoordinateSequence
    • getCoordinate

      public void getCoordinate(int index, org.locationtech.jts.geom.Coordinate coord)
      Specified by:
      getCoordinate in interface org.locationtech.jts.geom.CoordinateSequence
    • getX

      public double getX(int index)
      Specified by:
      getX in interface org.locationtech.jts.geom.CoordinateSequence
    • getY

      public double getY(int index)
      Specified by:
      getY in interface org.locationtech.jts.geom.CoordinateSequence
    • getOrdinate

      public double getOrdinate(int index, int ordinateIndex)
      Specified by:
      getOrdinate in interface org.locationtech.jts.geom.CoordinateSequence
    • size

      public int size()
      Specified by:
      size in interface org.locationtech.jts.geom.CoordinateSequence
    • setOrdinate

      public void setOrdinate(int index, int ordinateIndex, double value)
      Specified by:
      setOrdinate in interface org.locationtech.jts.geom.CoordinateSequence
    • toCoordinateArray

      public org.locationtech.jts.geom.Coordinate[] toCoordinateArray()
      Specified by:
      toCoordinateArray in interface org.locationtech.jts.geom.CoordinateSequence
    • expandEnvelope

      public org.locationtech.jts.geom.Envelope expandEnvelope(org.locationtech.jts.geom.Envelope env)
      Specified by:
      expandEnvelope in interface org.locationtech.jts.geom.CoordinateSequence
    • clone

      @Deprecated public Object clone()
      Deprecated.
      Recommend copy()
      This is only here because we need to override the interface.
      Specified by:
      clone in interface org.locationtech.jts.geom.CoordinateSequence
      Overrides:
      clone in class Object
    • copy

      public org.locationtech.jts.geom.CoordinateSequence copy()
      Specified by:
      copy in interface org.locationtech.jts.geom.CoordinateSequence