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
PropertiesTypePropertyDescription@NonNull javafx.beans.property.ReadOnlyMapProperty<WritableStyleableMapAccessor<?>, Picker<?>> @NonNull javafx.beans.property.BooleanProperty -
Field Summary
FieldsModifier and TypeFieldDescriptionThis placeholder is displayed to indicate that multiple values have been specified for this property.protected final @NonNull javafx.beans.property.BooleanPropertystatic final StringThe name of theshowingProperty().protected final @NonNull UndoableEditHelperThis placeholder is displayed to indicate that no value has been specified for this property. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NonNull javafx.beans.property.ReadOnlyMapProperty<WritableStyleableMapAccessor<?>, Picker<?>> @NonNull javafx.beans.property.Property<Predicate<QualifiedName>> Attribute filter can be used to show only a specific set of attributes in the inspector.protected voidcollectHelpTexts(@NonNull Collection<E> figures) protected abstract voidfireInvalidated(E f) This method is invoked when this inspector has changed properties of the specified element.protected abstract voidget(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) javafx.scene.NodegetNode()getRoot()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, @NonNull 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) protected abstract voidsetHelpText(String helpText) voidsetShowing(boolean newValue) Sets the value of theshowingproperty.@NonNull 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 @NonNull javafx.beans.property.ReadOnlyMapProperty<WritableStyleableMapAccessor<?>,Picker<?>> accessorPickerMapProperty- See Also:
-
showing
- 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
-
undoHelper
-
-
Constructor Details
-
AbstractStyleAttributesInspector
public AbstractStyleAttributesInspector() -
AbstractStyleAttributesInspector
-
-
Method Details
-
forwardUndoableEdit
-
accessorPickerMapProperty
public @NonNull 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
-
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
- 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()
-