org.eclipse.emf.emfstore.internal.client.ui.views.historybrowserview.graph
Class PlotLane

java.lang.Object
  extended by org.eclipse.emf.emfstore.internal.client.ui.views.historybrowserview.graph.PlotLane
All Implemented Interfaces:
Serializable

public class PlotLane
extends Object
implements Serializable

A line space within the graph.

Commits are strung onto a lane. For many UIs a lane represents a column. Originally taken from org.eclipse.egit.ui.internal.history.

See Also:
Serialized Form

Constructor Summary
PlotLane()
           
 
Method Summary
 void dispose()
          Disposes the lane and frees all reserved resources.
 boolean equals(Object o)
           
 org.eclipse.swt.graphics.Color getLightColor()
           
 int getPosition()
          Logical location of this lane within the graphing plane.
 org.eclipse.swt.graphics.Color getSaturatedColor()
           
 int hashCode()
           
 void setLightColor(org.eclipse.swt.graphics.Color lightColor)
          Sets the light color of this lane getLightColor().
 void setPosition(int position)
          Sets the logical position of this lane.
 void setSaturatedColor(org.eclipse.swt.graphics.Color color)
          Sets this lane's main color.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlotLane

public PlotLane()
Method Detail

getPosition

public int getPosition()
Logical location of this lane within the graphing plane.

Returns:
location of this lane, 0 through the maximum number of lanes.

setPosition

public void setPosition(int position)
Sets the logical position of this lane. See getPosition().

Parameters:
position - The new position of this lane.

dispose

public void dispose()
Disposes the lane and frees all reserved resources.


setSaturatedColor

public void setSaturatedColor(org.eclipse.swt.graphics.Color color)
Sets this lane's main color.

Parameters:
color - The lane's color.

getSaturatedColor

public org.eclipse.swt.graphics.Color getSaturatedColor()
Returns:
The lane's main color.

setLightColor

public void setLightColor(org.eclipse.swt.graphics.Color lightColor)
Sets the light color of this lane getLightColor().

Parameters:
lightColor - The new light color f this commit.

getLightColor

public org.eclipse.swt.graphics.Color getLightColor()
Returns:
The lane's lighter color, used e.g. for expanded tree lanes.

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object


Copyright © 2015. All Rights Reserved.