org.jhotdraw8.draw.inspector.AbstractInspector Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of org.jhotdraw8.draw Show documentation
Show all versions of org.jhotdraw8.draw Show documentation
JHotDraw8 Drawing Framework
The newest version!
/*
* @(#)AbstractInspector.java
* Copyright © 2023 The authors and contributors of JHotDraw. MIT License.
*/
package org.jhotdraw8.draw.inspector;
import javafx.beans.property.BooleanProperty;
import javafx.beans.property.ObjectProperty;
import javafx.beans.property.SimpleBooleanProperty;
import javafx.beans.property.SimpleObjectProperty;
/**
* AbstractInspector.
*
* @param the subject type
* @author Werner Randelshofer
*/
public abstract class AbstractInspector implements Inspector {
protected final ObjectProperty subject = new SimpleObjectProperty<>(this, SUBJECT_PROPERTY);
protected final BooleanProperty showing = new SimpleBooleanProperty(this, SHOWING_PROPERTY, true);
public AbstractInspector() {
}
@Override
public ObjectProperty subjectProperty() {
return subject;
}
@Override
public BooleanProperty showingProperty() {
return showing;
}
}