Module org.jhotdraw8.draw
Package org.jhotdraw8.draw.inspector
Class AbstractStyleAttributesInspector<E>
java.lang.Object
org.jhotdraw8.draw.inspector.AbstractStyleAttributesInspector<E>
- Type Parameters:
E- the element type
- Direct Known Subclasses:
StyleAttributesInspector
Intentionally does not implement the inspector interface, so
that subclasses can use this inspector on different subject
types.
-
Property Summary
PropertiesTypePropertyDescriptionjavafx.beans.property.ReadOnlyMapProperty<WritableStyleableMapAccessor<?>, Picker<?>> javafx.beans.property.BooleanProperty -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThis placeholder is displayed to indicate that multiple values have been specified for this property.protected final javafx.beans.property.BooleanPropertystatic final StringThe name of theshowingProperty().protected final UndoableEditHelperstatic final StringThis placeholder is displayed to indicate that no value has been specified for this property. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavafx.beans.property.ReadOnlyMapProperty<WritableStyleableMapAccessor<?>, Picker<?>> javafx.beans.property.Property<Predicate<QualifiedName>> Attribute filter can be used to show only a specific set of attributes in the inspector.protected voidcollectHelpTexts(Collection<E> figures) protected <T> Picker<T> protected abstract voidfireInvalidated(E f) This method is invoked when this inspector has changed properties of the specified element.protected abstract voidprotected abstract @Nullable Objectget(E f, WritableStyleableMapAccessor<Object> finalSelectedAccessor) protected abstract @Nullable WritableStyleableMapAccessor<?> getAccessor(SelectorModel<E> fsm, E f, String propertyNamespace, String propertyName) javafx.collections.ObservableMap<WritableStyleableMapAccessor<?>, Picker<?>> Gets the value of theaccessorPickerMapproperty.protected abstract @Nullable org.jhotdraw8.base.converter.Converter<?> getConverter(SelectorModel<E> selectorModel, E f, String namespace, String name) Gets the value of thecssParserFactoryproperty.javafx.scene.NodegetNode()protected abstract @Nullable EgetRoot()javafx.collections.ObservableSet<E> protected abstract @Nullable StylesheetsManager<E> protected javafx.scene.control.TextAreaprotected voidprotected voidinvalidateTextArea(javafx.beans.Observable observable) booleanGets the value of theshowingproperty.protected voidonCaretPositionChanged(javafx.beans.Observable o, Number oldv, Number newv) protected abstract voidprotected abstract voidremove(E f, WritableStyleableMapAccessor<Object> finalSelectedAccessor) protected abstract voidset(E f, WritableStyleableMapAccessor<Object> finalSelectedAccessor, Object o) voidsetAttributeFilter(Predicate<QualifiedName> attributeFilter) voidsetCssParserFactory(@Nullable Supplier<CssParser> cssParserFactory) Sets the value of thecssParserFactoryproperty.protected abstract voidsetHelpText(String helpText) voidsetShowing(boolean newValue) Sets the value of theshowingproperty.javafx.beans.property.BooleanPropertyprotected abstract voidThis method shows the selection in the drawing view, by scrolling the selected elements into the view and "jiggling" the handles.protected voidupdateLookupTable(javafx.beans.Observable o) protected voidupdateShownValues(javafx.beans.Observable o) protected void
-
Property Details
-
accessorPickerMap
public javafx.beans.property.ReadOnlyMapProperty<WritableStyleableMapAccessor<?>,Picker<?>> accessorPickerMapProperty- See Also:
-
showing
public javafx.beans.property.BooleanProperty showingProperty- See Also:
-
cssParserFactory
- See Also:
-
-
Field Details
-
SHOWING_PROPERTY
The name of theshowingProperty().- See Also:
-
UNSPECIFIED_VALUE_PLACEHOLDER
This placeholder is displayed to indicate that no value has been specified for this property.The placeholder should be a comment, e.g. "/* unspecified value * /", or white space, e.g. " ", or one of the keywords
CssTokenType.IDENT_INITIAL,CssTokenType.IDENT_INHERIT,CssTokenType.IDENT_REVERT,CssTokenType.IDENT_UNSET,- See Also:
-
MULTIPLE_VALUES_PLACEHOLDER
This placeholder is displayed to indicate that multiple values have been specified for this property.The placeholder should be a comment, e.g. "/* multiple values * /", or white space, e.g. " ".
- See Also:
-
showing
protected final javafx.beans.property.BooleanProperty showing -
undoHelper
-
-
Constructor Details
-
AbstractStyleAttributesInspector
public AbstractStyleAttributesInspector() -
AbstractStyleAttributesInspector
-
-
Method Details
-
forwardUndoableEdit
-
accessorPickerMapProperty
public javafx.beans.property.ReadOnlyMapProperty<WritableStyleableMapAccessor<?>,Picker<?>> accessorPickerMapProperty()- Returns:
- the
accessorPickerMapproperty - See Also:
-
attributeFilter
Attribute filter can be used to show only a specific set of attributes in the inspector.- Returns:
- attribute filter
-
collectHelpTexts
-
createPicker
-
fireInvalidated
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 theaccessorPickerMapproperty.- Property description:
- Returns:
- the value of the
accessorPickerMapproperty - See Also:
-
getAttributeFilter
-
setAttributeFilter
-
getConverter
protected abstract @Nullable org.jhotdraw8.base.converter.Converter<?> getConverter(SelectorModel<E> selectorModel, E f, String namespace, String name) -
getEntities
-
getNode
public javafx.scene.Node getNode() -
getRoot
-
getSelection
-
getStyleManager
-
getTextArea
protected javafx.scene.control.TextArea getTextArea() -
init
-
invalidateTextArea
protected void invalidateTextArea(javafx.beans.Observable observable) -
isShowing
public boolean isShowing()Gets the value of theshowingproperty.- Property description:
- Returns:
- the value of the
showingproperty - See Also:
-
setShowing
public void setShowing(boolean newValue) Sets the value of theshowingproperty.- Property description:
- Parameters:
newValue- the value for theshowingproperty- See Also:
-
onCaretPositionChanged
-
recreateHandles
protected abstract void recreateHandles() -
remove
-
set
protected abstract void set(E f, WritableStyleableMapAccessor<Object> finalSelectedAccessor, Object o) -
setHelpText
-
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
showingproperty - See Also:
-
updateLookupTable
protected void updateLookupTable(javafx.beans.Observable o) -
updateShownValues
protected void updateShownValues(javafx.beans.Observable o) -
updateTextArea
protected void updateTextArea() -
getCssParserFactory
Gets the value of thecssParserFactoryproperty.- Property description:
- Returns:
- the value of the
cssParserFactoryproperty - See Also:
-
getCssParserFactoryOrDefault
-
setCssParserFactory
Sets the value of thecssParserFactoryproperty.- Property description:
- Parameters:
cssParserFactory- the value for thecssParserFactoryproperty- See Also:
-
cssParserFactoryProperty
- Returns:
- the
cssParserFactoryproperty - See Also:
-