PlotLane.java

  1. /*
  2.  * Copyright (C) 2008, Shawn O. Pearce <spearce@spearce.org> and others
  3.  *
  4.  * This program and the accompanying materials are made available under the
  5.  * terms of the Eclipse Distribution License v. 1.0 which is available at
  6.  * https://www.eclipse.org/org/documents/edl-v10.php.
  7.  *
  8.  * SPDX-License-Identifier: BSD-3-Clause
  9.  */

  10. package org.eclipse.jgit.revplot;

  11. import java.io.Serializable;

  12. /**
  13.  * A line space within the graph.
  14.  * <p>
  15.  * Commits are strung onto a lane. For many UIs a lane represents a column.
  16.  */
  17. public class PlotLane implements Serializable {
  18.     private static final long serialVersionUID = 1L;

  19.     int position;

  20.     /**
  21.      * Logical location of this lane within the graphing plane.
  22.      *
  23.      * @return location of this lane, 0 through the maximum number of lanes.
  24.      */
  25.     public int getPosition() {
  26.         return position;
  27.     }
  28. }