class CapabilitiesRenderer extends Object
| Modifier and Type | Field and Description |
|---|---|
(package private) static Map<Character,String> | CAP_REPLACEMENTSLink HTML for the capability letters used by both views |
(package private) static Map<Character,String> | SYBIL_REPLACEMENTSCAP_REPLACEMENTS plus the letters only the Sybil view links |
(package private) static char[] | TIER_LINK_LETTERSTier link letters, in the order they are suffixed |
| Constructor and Description |
|---|
CapabilitiesRenderer() |
| Modifier and Type | Method and Description |
|---|---|
(package private) static String | applyTierState(String caps,
char tier,
char suffix,
boolean suffixAll)Applies the router tier state to linkified caps: removes the bare tier
letter, marks the tier class, and appends the reachability suffix to
the capability links. |
(package private) static String | capTooltip(RouterContext ctx)Tooltip suffix shared by all capability links. |
(package private) static String | linkify(String caps,
Map<Character,String> replacements)Replaces each capability letter with its link HTML, leaving unknown
letters as-is. |
static final Map<Character,String> CAP_REPLACEMENTS
static final Map<Character,String> SYBIL_REPLACEMENTS
static final char[] TIER_LINK_LETTERS
static String applyTierState(String caps, char tier, char suffix, boolean suffixAll)
caps - the linkified capability stringtier - the tier letter D, E, or G, or 0 for nonesuffix - the reachability letter R or U, or 0 for no suffixsuffixAll - if true, suffix every capability link, otherwise only the tier linksstatic String capTooltip(RouterContext ctx)
ctx - the router context for translation