Package org.onosproject.ui.topo
Class LinkHighlight
- java.lang.Object
 - 
- org.onosproject.ui.topo.AbstractHighlight
 - 
- org.onosproject.ui.topo.LinkHighlight
 
 
 
- 
public class LinkHighlight extends AbstractHighlight
Denotes the highlighting to be applied to a link.LinkHighlight.Flavoris a closed set of NO-, PRIMARY-, or SECONDARY- highlighting.Modis an open ended set of additional modifications (CSS classes) that may also be applied. Note thatMOD_OPTICALandMOD_ANIMATEDare pre-defined mods. Label text may be set, which will also be displayed on the link. 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLinkHighlight.FlavorLink highlighting flavor. 
- 
Field Summary
Fields Modifier and Type Field Description static ModMOD_ANIMATEDDenotes a link to be tagged with animated traffic ("marching ants").static ModMOD_OPTICALDenotes a link to be tagged as an optical link. 
- 
Constructor Summary
Constructors Constructor Description LinkHighlight(String linkId, LinkHighlight.Flavor flavor)Constructs a link highlight entity. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LinkHighlightaddMod(Mod mod)Adds a highlighting modification to this link highlight.StringcssClasses()LinkHighlight.Flavorflavor()Returns the highlight flavor.Stringlabel()Returns the label text.Set<Mod>mods()Returns the highlight modifications.LinkHighlightsetLabel(String label)Adds a label to be displayed on the link.- 
Methods inherited from class org.onosproject.ui.topo.AbstractHighlight
elementId, keepSubdued, subdued, type 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
LinkHighlight
public LinkHighlight(String linkId, LinkHighlight.Flavor flavor)
Constructs a link highlight entity.- Parameters:
 linkId- the link identifierflavor- the highlight flavor
 
 - 
 
- 
Method Detail
- 
addMod
public LinkHighlight addMod(Mod mod)
Adds a highlighting modification to this link highlight.- Parameters:
 mod- mod to be added- Returns:
 - self, for chaining
 
 
- 
setLabel
public LinkHighlight setLabel(String label)
Adds a label to be displayed on the link.- Parameters:
 label- the label text- Returns:
 - self, for chaining
 
 
- 
flavor
public LinkHighlight.Flavor flavor()
Returns the highlight flavor.- Returns:
 - highlight flavor
 
 
- 
cssClasses
public String cssClasses()
- Returns:
 - CSS classes string
 
 
- 
label
public String label()
Returns the label text.- Returns:
 - label text
 
 
 - 
 
 -