/**
  * Indicates if the label of the node is on border.
  *
  * @return true if the label of this node is on border, false otherwise
  */
 public boolean hasLabelOnBorder() {
   NodeMapping actualMapping = node.getActualMapping();
   if (actualMapping != null) {
     NodeStyleDescription style = actualMapping.getStyle();
     if (style != null) {
       LabelPosition labelPosition = style.getLabelPosition();
       return labelPosition.equals(LabelPosition.BORDER_LITERAL);
     }
   }
   return false;
 }