link start!

This commit is contained in:
cherubin
2026-03-17 13:31:18 -07:00
commit 08abe87cfb
5910 changed files with 386288 additions and 0 deletions
@@ -0,0 +1,33 @@
package org.apache.batik.css.engine;
import org.apache.batik.css.engine.value.Value;
import org.apache.batik.util.ParsedURL;
import org.w3c.dom.Element;
public interface CSSContext {
void checkLoadExternalResource(ParsedURL parsedURL, ParsedURL parsedURL2) throws SecurityException;
float getBlockHeight(Element element);
float getBlockWidth(Element element);
float getBolderFontWeight(float f);
CSSEngine getCSSEngineForElement(Element element);
Value getDefaultFontFamily();
float getLighterFontWeight(float f);
float getMediumFontSize();
float getPixelToMillimeter();
float getPixelUnitToMillimeter();
Value getSystemColor(String str);
boolean isDynamic();
boolean isInteractive();
}
@@ -0,0 +1,5 @@
package org.apache.batik.css.engine;
public interface CSSEngineListener {
void propertiesChanged(CSSEngineEvent cSSEngineEvent);
}
@@ -0,0 +1,7 @@
package org.apache.batik.css.engine;
public interface CSSEngineUserAgent {
void displayError(Exception exception);
void displayMessage(String str);
}
@@ -0,0 +1,7 @@
package org.apache.batik.css.engine;
public interface CSSNavigableDocument {
void addCSSNavigableDocumentListener(CSSNavigableDocumentListener cSSNavigableDocumentListener);
void removeCSSNavigableDocumentListener(CSSNavigableDocumentListener cSSNavigableDocumentListener);
}
@@ -0,0 +1,23 @@
package org.apache.batik.css.engine;
import org.w3c.dom.Attr;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
public interface CSSNavigableDocumentListener {
void attrModified(Element element, Attr attr, short s, String str, String str2);
void characterDataModified(Node node);
void nodeInserted(Node node);
void nodeToBeRemoved(Node node);
void overrideStylePropertyChanged(CSSStylableElement cSSStylableElement, String str, String str2, String str3);
void overrideStylePropertyRemoved(CSSStylableElement cSSStylableElement, String str);
void overrideStyleTextChanged(CSSStylableElement cSSStylableElement, String str);
void subtreeModified(Node node);
}
@@ -0,0 +1,17 @@
package org.apache.batik.css.engine;
import org.w3c.dom.Node;
public interface CSSNavigableNode {
Node getCSSFirstChild();
Node getCSSLastChild();
Node getCSSNextSibling();
Node getCSSParentNode();
Node getCSSPreviousSibling();
boolean isHiddenFromSelectors();
}
@@ -0,0 +1,20 @@
package org.apache.batik.css.engine;
import org.apache.batik.util.ParsedURL;
import org.w3c.dom.Element;
public interface CSSStylableElement extends Element {
ParsedURL getCSSBase();
String getCSSClass();
StyleMap getComputedStyleMap(String str);
StyleDeclarationProvider getOverrideStyleDeclarationProvider();
String getXMLId();
boolean isPseudoInstanceOf(String str);
void setComputedStyleMap(String str, StyleMap styleMap);
}
@@ -0,0 +1,5 @@
package org.apache.batik.css.engine;
public interface CSSStyleSheetNode {
StyleSheet getCSSStyleSheet();
}
@@ -0,0 +1,7 @@
package org.apache.batik.css.engine;
public interface Rule {
short getType();
String toString(CSSEngine cSSEngine);
}
@@ -0,0 +1,7 @@
package org.apache.batik.css.engine;
public interface StyleDeclarationProvider {
StyleDeclaration getStyleDeclaration();
void setStyleDeclaration(StyleDeclaration styleDeclaration);
}
@@ -0,0 +1,13 @@
package org.apache.batik.css.engine.sac;
import java.util.Set;
import org.w3c.css.sac.Condition;
import org.w3c.dom.Element;
public interface ExtendedCondition extends Condition {
void fillAttributeSet(Set set);
int getSpecificity();
boolean match(Element element, String str);
}
@@ -0,0 +1,13 @@
package org.apache.batik.css.engine.sac;
import java.util.Set;
import org.w3c.css.sac.Selector;
import org.w3c.dom.Element;
public interface ExtendedSelector extends Selector {
void fillAttributeSet(Set set);
int getSpecificity();
boolean match(Element element, String str);
}
@@ -0,0 +1,20 @@
package org.apache.batik.css.engine.value;
import org.apache.batik.css.engine.CSSEngine;
import org.w3c.css.sac.LexicalUnit;
import org.w3c.dom.DOMException;
public interface ShorthandManager {
public interface PropertyHandler {
void property(String str, LexicalUnit lexicalUnit, boolean z);
}
String getPropertyName();
boolean isAdditiveProperty();
boolean isAnimatableProperty();
void setValues(CSSEngine cSSEngine, PropertyHandler propertyHandler, LexicalUnit lexicalUnit, boolean z) throws DOMException;
}
@@ -0,0 +1,39 @@
package org.apache.batik.css.engine.value;
import org.w3c.dom.DOMException;
public interface Value {
Value getBlue() throws DOMException;
Value getBottom() throws DOMException;
String getCssText();
short getCssValueType();
float getFloatValue() throws DOMException;
Value getGreen() throws DOMException;
String getIdentifier() throws DOMException;
Value getLeft() throws DOMException;
int getLength() throws DOMException;
String getListStyle() throws DOMException;
short getPrimitiveType();
Value getRed() throws DOMException;
Value getRight() throws DOMException;
String getSeparator() throws DOMException;
String getStringValue() throws DOMException;
Value getTop() throws DOMException;
Value item(int i) throws DOMException;
}
@@ -0,0 +1,29 @@
package org.apache.batik.css.engine.value;
import org.apache.batik.css.engine.CSSEngine;
import org.apache.batik.css.engine.CSSStylableElement;
import org.apache.batik.css.engine.StyleMap;
import org.w3c.css.sac.LexicalUnit;
import org.w3c.dom.DOMException;
public interface ValueManager {
Value computeValue(CSSStylableElement cSSStylableElement, String str, CSSEngine cSSEngine, int i, StyleMap styleMap, Value value);
Value createFloatValue(short s, float f) throws DOMException;
Value createStringValue(short s, String str, CSSEngine cSSEngine) throws DOMException;
Value createValue(LexicalUnit lexicalUnit, CSSEngine cSSEngine) throws DOMException;
Value getDefaultValue();
String getPropertyName();
int getPropertyType();
boolean isAdditiveProperty();
boolean isAnimatableProperty();
boolean isInheritedProperty();
}
@@ -0,0 +1,18 @@
package org.apache.batik.css.engine.value.svg;
import org.apache.batik.css.engine.value.Value;
import org.w3c.dom.DOMException;
public interface SVGValue extends Value {
float getColor(int i) throws DOMException;
String getColorProfile() throws DOMException;
short getColorType() throws DOMException;
int getNumberOfColors() throws DOMException;
short getPaintType() throws DOMException;
String getUri() throws DOMException;
}