Search in sources :

Example 1 with AppearanceController

use of org.gephi.appearance.api.AppearanceController in project gephi by gephi.

the class AppearanceUIController method getModel.

public AppearanceUIModel getModel(Workspace workspace) {
    AppearanceUIModel m = workspace.getLookup().lookup(AppearanceUIModel.class);
    if (m == null) {
        AppearanceController ac = Lookup.getDefault().lookup(AppearanceController.class);
        AppearanceModel appearanceModel = ac.getModel(workspace);
        m = new AppearanceUIModel(this, appearanceModel);
        workspace.add(m);
    }
    return m;
}
Also used : AppearanceModel(org.gephi.appearance.api.AppearanceModel) AppearanceController(org.gephi.appearance.api.AppearanceController)

Aggregations

AppearanceController (org.gephi.appearance.api.AppearanceController)1 AppearanceModel (org.gephi.appearance.api.AppearanceModel)1