congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
PlotLane
Code IndexAdd Tabnine to your IDE (free)

How to use
PlotLane
in
org.eclipse.jgit.revplot

Best Java code snippets using org.eclipse.jgit.revplot.PlotLane (Showing top 17 results out of 315)

origin: org.eclipse.jgit/org.eclipse.jgit

/**
 * Create a new {@link PlotLane} appropriate for this particular
 * {@link PlotCommitList}.
 *
 * @return a new {@link PlotLane} appropriate for this particular
 *         {@link PlotCommitList}.
 */
@SuppressWarnings("unchecked")
protected L createLane() {
  return (L) new PlotLane();
}
origin: org.eclipse.jgit/org.eclipse.jgit

private static int laneX(PlotLane myLane) {
  final int p = myLane != null ? myLane.getPosition() : 0;
  return LEFT_PAD + LANE_WIDTH * p;
}
origin: org.eclipse.egit/ui

@Override
public boolean equals(Object o) {
  return super.equals(o) && color.equals(((SWTLane)o).color);
}
origin: org.eclipse.egit/ui

  @Override
  public int hashCode() {
    return super.hashCode() ^ color.hashCode();
  }
}
origin: org.eclipse.jgit/org.eclipse.jgit

private static void addBlockedPosition(BitSet blockedPositions,
    final PlotCommit rObj) {
  if (rObj != null) {
    PlotLane lane = rObj.getLane();
    // Positions may be blocked by a commit on a lane.
    if (lane != null)
      blockedPositions.set(lane.getPosition());
    // Positions may also be blocked by forking off and merging lanes.
    // We don't consider passing lanes, because every passing lane forks
    // off and merges at it ends.
    for (PlotLane l : rObj.forkingOffLanes)
      blockedPositions.set(l.getPosition());
    for (PlotLane l : rObj.mergingLanes)
      blockedPositions.set(l.getPosition());
  }
}
origin: sonia.jgit/org.eclipse.jgit

/**
 * @return a new Lane appropriate for this particular PlotList.
 */
@SuppressWarnings("unchecked")
protected L createLane() {
  return (L) new PlotLane();
}
origin: org.eclipse.jgit/org.eclipse.jgit

@SuppressWarnings("unchecked")
private void closeLane(PlotLane lane) {
  if (activeLanes.remove(lane)) {
    recycleLane((L) lane);
    laneLength.remove(lane);
    freePositions.add(Integer.valueOf(lane.getPosition()));
  }
}
origin: berlam/github-bucket

/**
 * Create a new {@link PlotLane} appropriate for this particular
 * {@link PlotCommitList}.
 *
 * @return a new {@link PlotLane} appropriate for this particular
 *         {@link PlotCommitList}.
 */
@SuppressWarnings("unchecked")
protected L createLane() {
  return (L) new PlotLane();
}
origin: org.eclipse.jgit/org.eclipse.jgit

if (blockedPositions.get(laneToUse.getPosition())) {
        .getPosition()));
    laneToUse.position = newPos;
origin: sonia.jgit/org.eclipse.jgit

private static int laneX(final PlotLane myLane) {
  final int p = myLane != null ? myLane.getPosition() : 0;
  return LEFT_PAD + LANE_WIDTH * p;
}
origin: berlam/github-bucket

private static int laneX(PlotLane myLane) {
  final int p = myLane != null ? myLane.getPosition() : 0;
  return LEFT_PAD + LANE_WIDTH * p;
}
origin: berlam/github-bucket

private static void addBlockedPosition(BitSet blockedPositions,
    final PlotCommit rObj) {
  if (rObj != null) {
    PlotLane lane = rObj.getLane();
    // Positions may be blocked by a commit on a lane.
    if (lane != null)
      blockedPositions.set(lane.getPosition());
    // Positions may also be blocked by forking off and merging lanes.
    // We don't consider passing lanes, because every passing lane forks
    // off and merges at it ends.
    for (PlotLane l : rObj.forkingOffLanes)
      blockedPositions.set(l.getPosition());
    for (PlotLane l : rObj.mergingLanes)
      blockedPositions.set(l.getPosition());
  }
}
origin: sonia.jgit/org.eclipse.jgit

private static void addBlockedPosition(BitSet blockedPositions,
    final PlotCommit rObj) {
  if (rObj != null) {
    PlotLane lane = rObj.getLane();
    // Positions may be blocked by a commit on a lane.
    if (lane != null)
      blockedPositions.set(lane.getPosition());
    // Positions may also be blocked by forking off and merging lanes.
    // We don't consider passing lanes, because every passing lane forks
    // off and merges at it ends.
    for (PlotLane l : rObj.forkingOffLanes)
      blockedPositions.set(l.getPosition());
    for (PlotLane l : rObj.mergingLanes)
      blockedPositions.set(l.getPosition());
  }
}
origin: sonia.jgit/org.eclipse.jgit

@SuppressWarnings("unchecked")
private void closeLane(PlotLane lane) {
  if (activeLanes.remove(lane)) {
    recycleLane((L) lane);
    laneLength.remove(lane);
    freePositions.add(Integer.valueOf(lane.getPosition()));
  }
}
origin: berlam/github-bucket

@SuppressWarnings("unchecked")
private void closeLane(PlotLane lane) {
  if (activeLanes.remove(lane)) {
    recycleLane((L) lane);
    laneLength.remove(lane);
    freePositions.add(Integer.valueOf(lane.getPosition()));
  }
}
origin: sonia.jgit/org.eclipse.jgit

if (blockedPositions.get(laneToUse.getPosition())) {
        .getPosition()));
    laneToUse.position = newPos;
origin: berlam/github-bucket

if (blockedPositions.get(laneToUse.getPosition())) {
        .getPosition()));
    laneToUse.position = newPos;
org.eclipse.jgit.revplotPlotLane

Javadoc

A line space within the graph.

Commits are strung onto a lane. For many UIs a lane represents a column.

Most used methods

  • <init>
  • getPosition
    Logical location of this lane within the graphing plane.
  • equals
  • hashCode

Popular in Java

  • Finding current android device location
  • notifyDataSetChanged (ArrayAdapter)
  • onCreateOptionsMenu (Activity)
  • addToBackStack (FragmentTransaction)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • ImageIO (javax.imageio)
  • Top 12 Jupyter Notebook Extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now