be.ac.ulg.montefiore.run.totem.visualtopo.graph
Class LinkLabeller

java.lang.Object
  extended by be.ac.ulg.montefiore.run.totem.visualtopo.graph.LinkLabeller
All Implemented Interfaces:
edu.uci.ics.jung.graph.decorators.EdgeStringer

public class LinkLabeller
extends java.lang.Object
implements edu.uci.ics.jung.graph.decorators.EdgeStringer

A small class that allows to draw a label below a link.

Creation date: 15-Feb-2005

Author:
Olivier Materne (O.Materne@student.ulg.ac.be)

Field Summary
static int LINK_BW
           
static int LINK_METRIC
           
static int LINK_RESERVED_BW
           
static int LINK_TE_METRIC
           
static int NO_LABEL
           
 
Method Summary
static LinkLabeller getInstance()
          get an instance of the LinkLabeller
 java.lang.String getLabel(edu.uci.ics.jung.graph.ArchetypeEdge e)
          This methode compute and return the label that will be associate with the Edge
 void select(int select)
          Select which kind of information will be displayed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NO_LABEL

public static final int NO_LABEL
See Also:
Constant Field Values

LINK_BW

public static final int LINK_BW
See Also:
Constant Field Values

LINK_RESERVED_BW

public static final int LINK_RESERVED_BW
See Also:
Constant Field Values

LINK_METRIC

public static final int LINK_METRIC
See Also:
Constant Field Values

LINK_TE_METRIC

public static final int LINK_TE_METRIC
See Also:
Constant Field Values
Method Detail

getInstance

public static LinkLabeller getInstance()
get an instance of the LinkLabeller

Returns:
a LinkLabeller

select

public void select(int select)
Select which kind of information will be displayed

Parameters:
select -

getLabel

public java.lang.String getLabel(edu.uci.ics.jung.graph.ArchetypeEdge e)
This methode compute and return the label that will be associate with the Edge

Specified by:
getLabel in interface edu.uci.ics.jung.graph.decorators.EdgeStringer
Parameters:
e - an ArchetypeEdge
Returns:
returns the label to be showed below the Edge


Copyright © 2004-2007 Research Unit in Networking, All Rights Reserved.