lphystudio.app.treecomponent.NodeDecorator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lphy-studio Show documentation
Show all versions of lphy-studio Show documentation
The GUI for LPhy language.
The newest version!
package lphystudio.app.treecomponent;
import java.awt.*;
/**
* @author Alexei Drummond
*/
public class NodeDecorator {
public double getNodeSize() {
return 1.0;
}
public NodeShape getNodeShape() {
return NodeShape.circle;
}
public Color getNodeColor() {
return Color.black;
}
public boolean drawNodeShape() {
return false;
}
enum NodeShape {circle, square, triangle}
public static final NodeDecorator BLACK_DOT = new NodeDecorator() {
public Color getNodeColor() {
return Color.black;
}
public double getNodeSize() {
return 4;
}
public NodeShape getNodeShape() {
return NodeShape.circle;
}
public boolean drawNodeShape() {
return false;
}
};
public NodeDecorator() {
}
}