link start!
This commit is contained in:
@@ -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;
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package org.apache.batik.css.parser;
|
||||
|
||||
import java.io.IOException;
|
||||
import org.w3c.css.sac.CSSException;
|
||||
import org.w3c.css.sac.LexicalUnit;
|
||||
import org.w3c.css.sac.Parser;
|
||||
import org.w3c.css.sac.SACMediaList;
|
||||
import org.w3c.css.sac.SelectorList;
|
||||
|
||||
public interface ExtendedParser extends Parser {
|
||||
SACMediaList parseMedia(String str) throws CSSException, IOException;
|
||||
|
||||
boolean parsePriority(String str) throws CSSException, IOException;
|
||||
|
||||
LexicalUnit parsePropertyValue(String str) throws CSSException, IOException;
|
||||
|
||||
void parseRule(String str) throws CSSException, IOException;
|
||||
|
||||
SelectorList parseSelectors(String str) throws CSSException, IOException;
|
||||
|
||||
void parseStyleDeclaration(String str) throws CSSException, IOException;
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
package org.apache.batik.css.parser;
|
||||
|
||||
public interface LexicalUnits {
|
||||
public static final int ANY = 13;
|
||||
public static final int AT_KEYWORD = 29;
|
||||
public static final int CDC = 22;
|
||||
public static final int CDO = 21;
|
||||
public static final int CHARSET_SYMBOL = 30;
|
||||
public static final int CM = 37;
|
||||
public static final int COLON = 16;
|
||||
public static final int COMMA = 6;
|
||||
public static final int COMMENT = 18;
|
||||
public static final int DASHMATCH = 25;
|
||||
public static final int DEG = 47;
|
||||
public static final int DIMENSION = 34;
|
||||
public static final int DIVIDE = 10;
|
||||
public static final int DOT = 7;
|
||||
public static final int EM = 36;
|
||||
public static final int EOF = 0;
|
||||
public static final int EQUAL = 3;
|
||||
public static final int EX = 35;
|
||||
public static final int FONT_FACE_SYMBOL = 31;
|
||||
public static final int FUNCTION = 52;
|
||||
public static final int GRAD = 49;
|
||||
public static final int HASH = 27;
|
||||
public static final int HZ = 41;
|
||||
public static final int IDENTIFIER = 20;
|
||||
public static final int IMPORTANT_SYMBOL = 23;
|
||||
public static final int IMPORT_SYMBOL = 28;
|
||||
public static final int IN = 39;
|
||||
public static final int INCLUDES = 26;
|
||||
public static final int INTEGER = 24;
|
||||
public static final int KHZ = 50;
|
||||
public static final int LEFT_BRACE = 14;
|
||||
public static final int LEFT_BRACKET = 11;
|
||||
public static final int LEFT_CURLY_BRACE = 1;
|
||||
public static final int MEDIA_SYMBOL = 32;
|
||||
public static final int MINUS = 5;
|
||||
public static final int MM = 38;
|
||||
public static final int MS = 40;
|
||||
public static final int PAGE_SYMBOL = 33;
|
||||
public static final int PC = 44;
|
||||
public static final int PERCENTAGE = 42;
|
||||
public static final int PLUS = 4;
|
||||
public static final int PRECEDE = 9;
|
||||
public static final int PT = 45;
|
||||
public static final int PX = 46;
|
||||
public static final int RAD = 48;
|
||||
public static final int REAL = 54;
|
||||
public static final int RIGHT_BRACE = 15;
|
||||
public static final int RIGHT_BRACKET = 12;
|
||||
public static final int RIGHT_CURLY_BRACE = 2;
|
||||
public static final int S = 43;
|
||||
public static final int SEMI_COLON = 8;
|
||||
public static final int SPACE = 17;
|
||||
public static final int STRING = 19;
|
||||
public static final int UNICODE_RANGE = 53;
|
||||
public static final int URI = 51;
|
||||
}
|
||||
Reference in New Issue
Block a user