- All Known Implementing Classes:
KeyframesRule
CSSKeyframesRule represents a complete set of keyframes for a single
animation.-
Field Summary
Fields inherited from interface io.sf.carte.doc.style.css.CSSRule
COUNTER_STYLE_RULE, CUSTOM_MEDIA_RULE, DOCUMENT_RULE, FONT_FACE_RULE, FONT_FEATURE_VALUES_RULE, IMPORT_RULE, KEYFRAME_RULE, KEYFRAMES_RULE, MARGIN_RULE, MEDIA_RULE, NAMESPACE_RULE, NESTED_DECLARATIONS, PAGE_RULE, PROPERTY_RULE, REGION_STYLE_RULE, STYLE_RULE, SUPPORTS_RULE, UNKNOWN_RULE, VIEWPORT_RULEFields inherited from interface org.w3c.dom.css.CSSRule
CHARSET_RULE -
Method Summary
Modifier and TypeMethodDescriptionvoidappendRule(String rule) Appends a new rule into this keyframes rule collection.voiddeleteRule(String select) Deletes the last declaredCSSKeyframeRulematching the specified keyframe selector from thiskeyframesrule collection.The findRule returns the last declared CSSKeyframeRule matching the specified keyframe selector.Gets the list of keyframe rules.getName()Gets the name of the keyframes.voidSets the name of the keyframes.Methods inherited from interface io.sf.carte.doc.style.css.CSSRule
getMinifiedCssText, getParentRule, getParentStyleSheet, getPrecedingComments, getTrailingComments, setCssText, writeCssTextMethods inherited from interface org.w3c.dom.css.CSSRule
getCssText, getType
-
Method Details
-
getName
String getName()Gets the name of the keyframes.- Returns:
- the name of the keyframes.
-
setName
Sets the name of the keyframes.- Parameters:
name- the name of the keyframes.
-
getCssRules
CSSRuleArrayList getCssRules()Gets the list of keyframe rules.- Returns:
- the list of keyframe rules.
-
appendRule
Appends a new rule into this keyframes rule collection.- Parameters:
rule- The parsable text representing the rule.
-
deleteRule
Deletes the last declaredCSSKeyframeRulematching the specified keyframe selector from thiskeyframesrule collection. If no matching rule exists, the method does nothing.The number and order of the values in the specified keyframe selector must match those of the targeted keyframe rule(s). The match is not sensitive to white space around the values in the list.
- Parameters:
select- The keyframe selector of the rule to be deleted: a comma-separated list of keywords or percentage values between 0% and 100%.
-
findRule
The findRule returns the last declared CSSKeyframeRule matching the specified keyframe selector. If no matching rule exists, the method does nothing.- Parameters:
select- The keyframe selector of the rule to be deleted: a comma-separated list of keywords or percentage values between 0% and 100%.- Returns:
- the found rule, or null if no rule was found.
-