Class AbstractStyleAttributesInspector<E>

java.lang.Object
org.jhotdraw8.draw.inspector.AbstractStyleAttributesInspector<E>
Type Parameters:
E - the element type
Direct Known Subclasses:
StyleAttributesInspector

public abstract class AbstractStyleAttributesInspector<E> extends Object
Intentionally does not implement the inspector interface, so that subclasses can use this inspector on different subject types.
  • Property Details

  • Field Details

  • Constructor Details

    • AbstractStyleAttributesInspector

      public AbstractStyleAttributesInspector()
    • AbstractStyleAttributesInspector

      public AbstractStyleAttributesInspector(URL fxmlUrl)
  • Method Details

    • forwardUndoableEdit

      protected abstract void forwardUndoableEdit(UndoableEditEvent event)
    • accessorPickerMapProperty

      public javafx.beans.property.ReadOnlyMapProperty<WritableStyleableMapAccessor<?>,Picker<?>> accessorPickerMapProperty()
      Returns:
      the accessorPickerMap property
      See Also:
    • attributeFilter

      public javafx.beans.property.Property<Predicate<QualifiedName>> attributeFilter()
      Attribute filter can be used to show only a specific set of attributes in the inspector.
      Returns:
      attribute filter
    • collectHelpTexts

      protected void collectHelpTexts(Collection<E> figures)
    • createPicker

      protected <T> Picker<T> createPicker(WritableStyleableMapAccessor<T> acc)
    • fireInvalidated

      protected abstract void fireInvalidated(E f)
      This method is invoked when this inspector has changed properties of the specified element.
      Parameters:
      f - an element
    • get

      protected abstract @Nullable Object get(E f, WritableStyleableMapAccessor<Object> finalSelectedAccessor)
    • getAccessor

      protected abstract @Nullable WritableStyleableMapAccessor<?> getAccessor(SelectorModel<E> fsm, E f, String propertyNamespace, String propertyName)
    • getAccessorPickerMap

      public javafx.collections.ObservableMap<WritableStyleableMapAccessor<?>,Picker<?>> getAccessorPickerMap()
      Gets the value of the accessorPickerMap property.
      Property description:
      Returns:
      the value of the accessorPickerMap property
      See Also:
    • getAttributeFilter

      public Predicate<QualifiedName> getAttributeFilter()
    • setAttributeFilter

      public void setAttributeFilter(Predicate<QualifiedName> attributeFilter)
    • getConverter

      protected abstract @Nullable org.jhotdraw8.base.converter.Converter<?> getConverter(SelectorModel<E> selectorModel, E f, String namespace, String name)
    • getEntities

      protected abstract Iterable<E> getEntities()
    • getNode

      public javafx.scene.Node getNode()
    • getRoot

      protected abstract @Nullable E getRoot()
    • getSelection

      public javafx.collections.ObservableSet<E> getSelection()
    • getStyleManager

      protected abstract @Nullable StylesheetsManager<E> getStyleManager()
    • getTextArea

      protected javafx.scene.control.TextArea getTextArea()
    • init

      protected void init(URL fxmlUrl)
    • invalidateTextArea

      protected void invalidateTextArea(javafx.beans.Observable observable)
    • isShowing

      public boolean isShowing()
      Gets the value of the showing property.
      Property description:
      Returns:
      the value of the showing property
      See Also:
    • setShowing

      public void setShowing(boolean newValue)
      Sets the value of the showing property.
      Property description:
      Parameters:
      newValue - the value for the showing property
      See Also:
    • onCaretPositionChanged

      protected void onCaretPositionChanged(javafx.beans.Observable o, Number oldv, Number newv)
    • recreateHandles

      protected abstract void recreateHandles()
    • remove

      protected abstract void remove(E f, WritableStyleableMapAccessor<Object> finalSelectedAccessor)
    • set

      protected abstract void set(E f, WritableStyleableMapAccessor<Object> finalSelectedAccessor, Object o)
    • setHelpText

      protected abstract void setHelpText(String helpText)
    • showSelection

      protected abstract void showSelection()
      This method shows the selection in the drawing view, by scrolling the selected elements into the view and "jiggling" the handles.

      This method is called when the user hits the "select" button.

    • showingProperty

      public javafx.beans.property.BooleanProperty showingProperty()
      Returns:
      the showing property
      See Also:
    • updateLookupTable

      protected void updateLookupTable(javafx.beans.Observable o)
    • updateShownValues

      protected void updateShownValues(javafx.beans.Observable o)
    • updateTextArea

      protected void updateTextArea()
    • getCssParserFactory

      public @Nullable Supplier<CssParser> getCssParserFactory()
      Gets the value of the cssParserFactory property.
      Property description:
      Returns:
      the value of the cssParserFactory property
      See Also:
    • getCssParserFactoryOrDefault

      public Supplier<CssParser> getCssParserFactoryOrDefault()
    • setCssParserFactory

      public void setCssParserFactory(@Nullable Supplier<CssParser> cssParserFactory)
      Sets the value of the cssParserFactory property.
      Property description:
      Parameters:
      cssParserFactory - the value for the cssParserFactory property
      See Also:
    • cssParserFactoryProperty

      public javafx.beans.property.ObjectProperty<Supplier<CssParser>> cssParserFactoryProperty()
      Returns:
      the cssParserFactory property
      See Also: