org.pepsoft.worldpainter.brushes.AbstractBrush Maven / Gradle / Ivy
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.pepsoft.worldpainter.brushes;
/**
*
* @author pepijn
*/
public abstract class AbstractBrush implements Brush, Cloneable {
public AbstractBrush(String name) {
this.name = name;
}
@Override
public final String getName() {
return name;
}
@Override
public int getEffectiveRadius() {
return getRadius();
}
@Override
public AbstractBrush clone() {
try {
return (AbstractBrush) super.clone();
} catch (CloneNotSupportedException e) {
throw new RuntimeException(e);
}
}
private final String name;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy