org.jhotdraw8.draw.DrawStylesheets 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!
/*
* @(#)DrawStylesheets.java
* Copyright © 2023 The authors and contributors of JHotDraw. MIT License.
*/
package org.jhotdraw8.draw;
import java.net.URL;
import java.util.MissingResourceException;
public class DrawStylesheets {
private DrawStylesheets() {
}
public static String getInspectorsStylesheet() {
String name = "/org/jhotdraw8/draw/inspector/inspector.css";
URL resource = DrawStylesheets.class.getResource(name);
if (resource == null) {
throw new MissingResourceException("Could not find a resource with name=\"" + name + "\".",
DrawStylesheets.class.getName(),
name);
}
return resource.toString();
}
}