All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jhotdraw8.draw.inspector.AbstractInspector Maven / Gradle / Ivy

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;
    }


}