Search in sources :

Example 1 with Flavor

use of org.onosproject.ui.topo.LinkHighlight.Flavor in project onos by opennetworkinglab.

the class TrafficLink method highlightForFlowCount.

private LinkHighlight highlightForFlowCount() {
    Flavor flavor = flows > 0 ? PRIMARY_HIGHLIGHT : SECONDARY_HIGHLIGHT;
    LinkHighlight hlite = new LinkHighlight(linkId(), flavor).setLabel(formatFlows(flows));
    return addCustomMods(hlite);
}
Also used : LinkHighlight(org.onosproject.ui.topo.LinkHighlight) Flavor(org.onosproject.ui.topo.LinkHighlight.Flavor)

Aggregations

LinkHighlight (org.onosproject.ui.topo.LinkHighlight)1 Flavor (org.onosproject.ui.topo.LinkHighlight.Flavor)1