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 SummaryNested Classes Modifier and Type Class Description static classLinkHighlight.FlavorLink highlighting flavor.
 - 
Field SummaryFields 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 SummaryConstructors Constructor Description LinkHighlight(String linkId, LinkHighlight.Flavor flavor)Constructs a link highlight entity.
 - 
Method SummaryAll 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.AbstractHighlightelementId, keepSubdued, subdued, type
 
- 
 
- 
- 
- 
Constructor Detail- 
LinkHighlightpublic LinkHighlight(String linkId, LinkHighlight.Flavor flavor) Constructs a link highlight entity.- Parameters:
- linkId- the link identifier
- flavor- the highlight flavor
 
 
- 
 - 
Method Detail- 
addModpublic LinkHighlight addMod(Mod mod) Adds a highlighting modification to this link highlight.- Parameters:
- mod- mod to be added
- Returns:
- self, for chaining
 
 - 
setLabelpublic LinkHighlight setLabel(String label) Adds a label to be displayed on the link.- Parameters:
- label- the label text
- Returns:
- self, for chaining
 
 - 
flavorpublic LinkHighlight.Flavor flavor() Returns the highlight flavor.- Returns:
- highlight flavor
 
 - 
cssClassespublic String cssClasses() - Returns:
- CSS classes string
 
 - 
labelpublic String label() Returns the label text.- Returns:
- label text
 
 
- 
 
-