Package org.onosproject.ui
Class UiGlyph
- java.lang.Object
-
- org.onosproject.ui.UiGlyph
-
public class UiGlyph extends Object
Represents a glyph to be used in the user interface topology view. Instances of this class are immutable.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringid()Returns the identifier for this glyph.Stringpath()Returns the path for this glyph.StringtoString()Stringviewbox()Returns the viewbox for this glyph.
-
-
-
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 identifierviewbox- glyph viewboxpath- glyph path
-
-