Class UiGlyph


  • public class UiGlyph
    extends Object
    Represents a glyph to be used in the user interface topology view. Instances of this class are immutable.
    • Constructor Detail

      • UiGlyph

        public UiGlyph​(String id,
                       String viewbox,
                       String path)
        Creates a new glyph. The value of the viewbox parameter is a string of four numbers min-x, min-y, width and height, separated by whitespace and/or a comma. The path parameter specifies how this element is to be drawn inside of the viewbox. The ONOS GUI only uses single paths – not rectangles, strokes, circles, or anything else. One path definition has to be used for the entire glyph.
        Parameters:
        id - glyph identifier
        viewbox - glyph viewbox
        path - glyph path
    • Method Detail

      • id

        public String id()
        Returns the identifier for this glyph.
        Returns:
        the identifier
      • viewbox

        public String viewbox()
        Returns the viewbox for this glyph.
        Returns:
        the viewbox
      • path

        public String path()
        Returns the path for this glyph.
        Returns:
        the path