Methods Summary |
---|
public static boolean | checkExtensions(java.lang.String[] requiredExtensions)There are currently no supported extensions in Perseus
return false;
|
public static boolean | checkFeatures(java.lang.String[] requiredFeatures)The list of supported features:
http://www.w3.org/TR/SVG11/feature#CoreAttribute
http://www.w3.org/TR/SVG11/feature#BasicStructure
http://www.w3.org/TR/SVG11/feature#BasicPaintAttribute
http://www.w3.org/TR/SVG11/feature#BasicGraphicsAttribute
http://www.w3.org/TR/SVG11/feature#XlinkAttribute
http://www.w3.org/TR/SVG11/feature#ConditionalProcessing
http://www.w3.org/TR/SVG11/feature#Shape
http://www.w3.org/TR/SVG11/feature#Image
http://www.w3.org/TR/SVG11/feature#BasicText
http://www.w3.org/TR/SVG11/feature#BasicFont
http://www.w3.org/TR/SVGMobile/Tiny/feature#base
The list of unsupported features:
http://www.w3.org/TR/SVG11/feature#Hyperlinking
http://www.w3.org/TR/SVG11/feature#Animation
http://www.w3.org/TR/SVG11/feature#Extensibility
http://www.w3.org/TR/SVGMobile/Tiny/feature#interactivity
http://www.w3.org/TR/SVGMobile/Tiny/feature#all
for (int i = 0; i < requiredFeatures.length; i++) {
// Check that the feature is supported
if (!isFeatureSupported(requiredFeatures[i])) {
return false;
}
}
return true;
|
public static boolean | checkLanguage(java.lang.String[] systemLanguage)The user language preference is controlled by this class
for (int i = 0; i < systemLanguage.length; i++) {
if (USER_LANGUAGE == systemLanguage[i]) {
return true;
}
}
return false;
|
public static boolean | isFeatureSupported(java.lang.String requiredFeature)
for (int i = 0; i < SUPPORTED_FEATURES.length; i++) {
if (requiredFeature == SUPPORTED_FEATURES[i]) {
return true;
}
}
return false;
|