Package org.onosproject.ui
Class UiGlyph
- java.lang.Object
-
- org.onosproject.ui.UiGlyph
-
public class UiGlyph extends java.lang.Object
Represents a glyph to be used in the user interface topology view. Instances of this class are immutable.
-
-
Constructor Summary
Constructors Constructor Description UiGlyph(java.lang.String id, java.lang.String viewbox, java.lang.String path)
Creates a new glyph.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
id()
Returns the identifier for this glyph.java.lang.String
path()
Returns the path for this glyph.java.lang.String
toString()
java.lang.String
viewbox()
Returns the viewbox for this glyph.
-
-
-
Constructor Detail
-
UiGlyph
public UiGlyph(java.lang.String id, java.lang.String viewbox, java.lang.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
-
-
Method Detail
-
id
public java.lang.String id()
Returns the identifier for this glyph.- Returns:
- the identifier
-
viewbox
public java.lang.String viewbox()
Returns the viewbox for this glyph.- Returns:
- the viewbox
-
path
public java.lang.String path()
Returns the path for this glyph.- Returns:
- the path
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-