Class FigureSelectorModel

java.lang.Object
org.jhotdraw8.css.model.AbstractSelectorModel<Figure>
org.jhotdraw8.draw.css.model.FigureSelectorModel
All Implemented Interfaces:
SelectorModel<Figure>

public class FigureSelectorModel extends AbstractSelectorModel<Figure>
FigureSelectorModel.
Author:
Werner Randelshofer
  • Field Details

  • Constructor Details

    • FigureSelectorModel

      public FigureSelectorModel()
  • Method Details

    • hasId

      public boolean hasId(Figure element, String id)
    • getId

      public String getId(Figure element)
    • hasType

      public boolean hasType(Figure element, @Nullable String namespacePattern, String type)
    • getType

      public @Nullable QualifiedName getType(Figure element)
    • hasStyleClass

      public boolean hasStyleClass(Figure element, String clazz)
    • getStyleClasses

      public ReadOnlySet<String> getStyleClasses(Figure element)
    • getPseudoClasses

      public ReadOnlySet<String> getPseudoClasses(Figure element)
    • hasAttribute

      public boolean hasAttribute(Figure element, @Nullable String namespace, String attributeName)
    • attributeValueEquals

      public boolean attributeValueEquals(Figure element, @Nullable String namespacePattern, String attributeName, String requestedValue)
    • attributeValueStartsWith

      public boolean attributeValueStartsWith(Figure element, @Nullable String namespacePattern, String attributeName, String substring)
    • getReadableAttributeAccessor

      protected @Nullable ReadOnlyStyleableMapAccessor<Object> getReadableAttributeAccessor(Figure element, @Nullable String namespace, String attributeName)
    • getReadOnlyAttributeValueAsString

      protected @Nullable String getReadOnlyAttributeValueAsString(Figure element, @Nullable String namespace, String attributeName)
    • attributeValueEndsWith

      public boolean attributeValueEndsWith(Figure element, @Nullable String namespacePattern, String attributeName, String substring)
    • attributeValueContains

      public boolean attributeValueContains(Figure element, @Nullable String namespacePattern, String attributeName, String substring)
    • attributeValueContainsWord

      public boolean attributeValueContainsWord(Figure element, @Nullable String namespacePattern, String attributeName, String word)
    • hasPseudoClass

      public boolean hasPseudoClass(Figure element, String pseudoClass)
    • getParent

      public Figure getParent(Figure element)
    • getPreviousSibling

      public @Nullable Figure getPreviousSibling(Figure element)
    • getAttributeNames

      public Set<QualifiedName> getAttributeNames(Figure element)
    • getComposedAttributeNames

      public Set<QualifiedName> getComposedAttributeNames(Figure element)
    • getDecomposedAttributeNames

      public Set<QualifiedName> getDecomposedAttributeNames(Figure element)
    • getAttributeAsString

      public @Nullable String getAttributeAsString(Figure element, @Nullable String namespacePattern, String attributeName)
    • getAttributeAsString

      public @Nullable String getAttributeAsString(Figure element, @Nullable javafx.css.StyleOrigin origin, @Nullable String namespacePattern, String attributeName)
    • getAttribute

      public @Nullable List<CssToken> getAttribute(Figure element, @Nullable javafx.css.StyleOrigin origin, @Nullable String namespacePattern, String attributeName)
    • getConverter

      public @Nullable org.jhotdraw8.base.converter.Converter<?> getConverter(Figure element, @Nullable String namespace, String attributeName)
    • getAccessor

      public @Nullable WritableStyleableMapAccessor<?> getAccessor(Figure element, @Nullable String namespace, String attributeName)
    • getWritableMetaMap

      protected Map<QualifiedName,List<WritableStyleableMapAccessor<Object>>> getWritableMetaMap(Figure elem)
    • setAttribute

      public void setAttribute(Figure elem, javafx.css.StyleOrigin origin, @Nullable String namespace, String name, @Nullable ReadOnlyList<CssToken> value)
    • intern

      protected @Nullable Object intern(@Nullable Object convertedValue)
    • isInitialRevertOrUnset

      protected boolean isInitialRevertOrUnset(@Nullable ReadOnlyList<CssToken> value)
      FIXME All selector models must support the keywords "initial","inherit","revert","unset".
      Parameters:
      value - the token
      Returns:
      true if the value is "initial".
    • reset

      public void reset(Figure elem)