Package com.vividsolutions.jts.geomgraph

Examples of com.vividsolutions.jts.geomgraph.Label


  public Node(Coordinate coord, EdgeEndStar edges)
  {
    this.coord = coord;
    this.edges = edges;
    label = new Label(0, Location.NONE);
  }
View Full Code Here


  }

  public void setLabel(int argIndex, int onLocation)
  {
    if (label == null) {
      label = new Label(argIndex, onLocation);
    }
    else
      label.setLocation(argIndex, onLocation);
  }
View Full Code Here

   * @param rightLoc
   * @return new instance of SplitEdge
   */
    public static SplitEdge newInstance(final Coordinate firstCoord, final Coordinate secondCoord, final int onLoc, final int leftLoc, final int rightLoc ) {

        final Label label = new Label(onLoc, leftLoc, rightLoc);

        Coordinate[] edgeCoord = new Coordinate[2];
        edgeCoord[0] = firstCoord;
        edgeCoord[1] = secondCoord;
       
View Full Code Here

     * @param leftLoc
     * @param rightLoc
     * @return new instance of SplitEdge
     */
    public static SplitEdge newInstance( Coordinate[] coords, int onLoc, int leftLoc, int rightLoc ) {
        Label label = new Label(onLoc, leftLoc, rightLoc);
        SplitEdge splitEdge = new SplitEdge(coords, label);
       
        return splitEdge;
    }
View Full Code Here

   * @return The locations of the labels.
   */
  private int[] getLabelLocations() {

    int[] locations = new int[3];
    Label label = getLabel();
    locations[Position.ON] = label.getLocation(0, Position.ON);
    locations[Position.LEFT] = label.getLocation(0, Position.LEFT);
    locations[Position.RIGHT] = label.getLocation(0, Position.RIGHT);
    return locations;
  }
View Full Code Here

  public Node(Coordinate coord, EdgeEndStar edges)
  {
    this.coord = coord;
    this.edges = edges;
    label = new Label(0, Location.NONE);
  }
View Full Code Here

  }

  public void setLabel(int argIndex, int onLocation)
  {
    if (label == null) {
      label = new Label(argIndex, onLocation);
    }
    else
      label.setLocation(argIndex, onLocation);
  }
View Full Code Here

TOP

Related Classes of com.vividsolutions.jts.geomgraph.Label

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.