java.lang.Object
org.jhotdraw8.draw.inspector.AbstractStyleAttributesInspector<Figure>
org.jhotdraw8.draw.inspector.StyleAttributesInspector
- All Implemented Interfaces:
Inspector<DrawingView>
public class StyleAttributesInspector
extends AbstractStyleAttributesInspector<Figure>
implements Inspector<DrawingView>
FXML Controller class
- Author:
- Werner Randelshofer
-
Property Summary
PropertiesProperties inherited from class org.jhotdraw8.draw.inspector.AbstractStyleAttributesInspector
accessorPickerMap, cssParserFactory, showing -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final javafx.beans.property.ObjectProperty<DrawingView> Fields inherited from class org.jhotdraw8.draw.inspector.AbstractStyleAttributesInspector
MULTIPLE_VALUES_PLACEHOLDER, showing, SHOWING_PROPERTY, undoHelper, UNSPECIFIED_VALUE_PLACEHOLDERFields inherited from interface org.jhotdraw8.draw.inspector.Inspector
SHOWING_PROPERTY, SUBJECT_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidThis method is invoked when this inspector has changed properties of the specified element.protected voidprotected @Nullable Objectget(Figure f, WritableStyleableMapAccessor<Object> finalSelectedAccessor) protected @Nullable WritableStyleableMapAccessor<?> getAccessor(SelectorModel<Figure> selectorModel, Figure f, String propertyNamespace, String propertyName) protected @Nullable org.jhotdraw8.base.converter.Converter<?> getConverter(SelectorModel<Figure> selectorModel, Figure f, String namespace, String name) protected @Nullable Drawingprotected @Nullable DrawingModelprotected @Nullable FiguregetRoot()protected @Nullable StylesheetsManager<Figure> protected voidonDrawingViewChanged(javafx.beans.value.ObservableValue<? extends DrawingView> observable, @Nullable DrawingView oldValue, @Nullable DrawingView newValue) Can be overridden by subclasses.protected voidprotected voidremove(Figure f, WritableStyleableMapAccessor<Object> finalSelectedAccessor) protected voidset(Figure f, WritableStyleableMapAccessor<Object> finalSelectedAccessor, Object o) protected voidsetHelpText(String helpText) protected voidThis method shows the selection in the drawing view, by scrolling the selected elements into the view and "jiggling" the handles.javafx.beans.property.ObjectProperty<DrawingView> Methods inherited from class org.jhotdraw8.draw.inspector.AbstractStyleAttributesInspector
accessorPickerMapProperty, attributeFilter, collectHelpTexts, createPicker, cssParserFactoryProperty, getAccessorPickerMap, getAttributeFilter, getCssParserFactory, getCssParserFactoryOrDefault, getNode, getSelection, getTextArea, init, invalidateTextArea, isShowing, onCaretPositionChanged, setAttributeFilter, setCssParserFactory, setShowing, showingProperty, updateLookupTable, updateShownValues, updateTextAreaMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jhotdraw8.draw.inspector.Inspector
getNode, getSubject, isShowing, setShowing, setSubject, showingProperty
-
Property Details
-
subject
- Specified by:
subjectPropertyin interfaceInspector<DrawingView>- Returns:
- the
subjectproperty - See Also:
-
-
Field Details
-
subject
-
-
Constructor Details
-
StyleAttributesInspector
public StyleAttributesInspector()
-
-
Method Details
-
subjectProperty
- Specified by:
subjectPropertyin interfaceInspector<DrawingView>- Returns:
- the
subjectproperty - See Also:
-
fireInvalidated
Description copied from class:AbstractStyleAttributesInspectorThis method is invoked when this inspector has changed properties of the specified element.- Specified by:
fireInvalidatedin classAbstractStyleAttributesInspector<Figure>- Parameters:
f- an element
-
get
protected @Nullable Object get(Figure f, WritableStyleableMapAccessor<Object> finalSelectedAccessor) - Specified by:
getin classAbstractStyleAttributesInspector<Figure>
-
getAccessor
protected @Nullable WritableStyleableMapAccessor<?> getAccessor(SelectorModel<Figure> selectorModel, Figure f, String propertyNamespace, String propertyName) - Specified by:
getAccessorin classAbstractStyleAttributesInspector<Figure>
-
getConverter
protected @Nullable org.jhotdraw8.base.converter.Converter<?> getConverter(SelectorModel<Figure> selectorModel, Figure f, String namespace, String name) - Specified by:
getConverterin classAbstractStyleAttributesInspector<Figure>
-
getDrawing
-
getDrawingModel
-
getEntities
- Specified by:
getEntitiesin classAbstractStyleAttributesInspector<Figure>
-
getRoot
- Specified by:
getRootin classAbstractStyleAttributesInspector<Figure>
-
getStyleManager
- Specified by:
getStyleManagerin classAbstractStyleAttributesInspector<Figure>
-
onDrawingViewChanged
protected void onDrawingViewChanged(javafx.beans.value.ObservableValue<? extends DrawingView> observable, @Nullable DrawingView oldValue, @Nullable DrawingView newValue) Can be overridden by subclasses. This implementation is empty.- Parameters:
observable-oldValue- the old drawing viewnewValue- the new drawing view
-
remove
- Specified by:
removein classAbstractStyleAttributesInspector<Figure>
-
set
- Specified by:
setin classAbstractStyleAttributesInspector<Figure>
-
setHelpText
- Specified by:
setHelpTextin classAbstractStyleAttributesInspector<Figure>
-
showSelection
protected void showSelection()Description copied from class:AbstractStyleAttributesInspectorThis 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.
- Specified by:
showSelectionin classAbstractStyleAttributesInspector<Figure>
-
recreateHandles
protected void recreateHandles()- Specified by:
recreateHandlesin classAbstractStyleAttributesInspector<Figure>
-
forwardUndoableEdit
- Specified by:
forwardUndoableEditin classAbstractStyleAttributesInspector<Figure>
-