コード例 #1
0
 private static ComponentType getArrow(ArrowConfiguration config) {
   ComponentType result = arrows.get(config);
   if (result == null) {
     result = new ComponentType(config.name(), config);
     arrows.put(config, result);
   }
   return result;
 }
コード例 #2
0
 public ComponentType withPart(ArrowPart part) {
   checkArrow();
   return ComponentType.getArrow(arrowConfiguration.withPart(part));
 }
コード例 #3
0
 public ComponentType withDotted() {
   checkArrow();
   return ComponentType.getArrow(arrowConfiguration.withDotted());
 }
コード例 #4
0
 public ComponentType withHead(ArrowHead head) {
   checkArrow();
   return ComponentType.getArrow(arrowConfiguration.withHead(head));
 }
コード例 #5
0
 public static ComponentType getArrow(ArrowDirection direction) {
   final ArrowConfiguration config = ArrowConfiguration.withDirection(direction);
   return getArrow(config);
 }