Example #1
0
  public void buildPointHost() {
    m_pointHost = null;

    /*if (!GlyphAction.isPointVisible()) {
        return;
    } // if*/

    int i;
    for (i = 0; i < m_actives.size(); i++) {
      GlyphObject object = (GlyphObject) m_actives.get(i);
      PointAggregate host = null;

      if (object instanceof EContourPoint) {
        EContourPoint point = (EContourPoint) object;
        host = point.getParent();

        if (host instanceof EContourPoint) {
          EContourPoint hostPoint = (EContourPoint) host;
          host = hostPoint.getParent();
        } // if
      } else if (object instanceof EHint) {
        EHint hint = (EHint) object;
        host = hint.getPointHost();
      } // if-else

      if (host == null) {
        continue;
      } // if

      if (m_pointHost == null) {
        m_pointHost = host;
      } else {
        if (m_pointHost != host) {
          m_pointHost = null;
          return;
        } // if
      } // if
    } // while
  }