src/org/tiefaces/components/websheet/utility/ChartUtility.java
private static String getAnchorAssociateChartId(
            final CTTwoCellAnchor ctanchor) {

        if (ctanchor.getGraphicFrame() == null) {
            return null;
        }

        Node parentNode = ctanchor.getGraphicFrame().getGraphic()
                .getGraphicData().getDomNode();

        NodeList childNodes = parentNode.getChildNodes();
        for (int i = 0; i < childNodes.getLength(); i++) {
            Node childNode = childNodes.item(i);
            if ((childNode != null)
                    && ("c:chart".equalsIgnoreCase(childNode.getNodeName()))
                    && (childNode.hasAttributes())) {
                String rId = getChartIdFromChildNodeAttributes(
                        childNode.getAttributes());
                if (rId != null) {
                    return rId;
                }
            }
        }
        return null;
    }
private static String getAnchorAssociateChartId(
            final CTTwoCellAnchor ctanchor) {

        if (ctanchor.getGraphicFrame() == null) {
            return null;
        }

        Node parentNode = ctanchor.getGraphicFrame().getGraphic()
                .getGraphicData().getDomNode();

        NodeList childNodes = parentNode.getChildNodes();
        for (int i = 0; i < childNodes.getLength(); i++) {
            Node childNode = childNodes.item(i);
            if ((childNode != null)
                    && ("c:chart".equalsIgnoreCase(childNode.getNodeName()))
                    && (childNode.hasAttributes())) {
                String rId = getChartIdFromChildNodeAttributes(
                        childNode.getAttributes());
                if (rId != null) {
                    return rId;
                }
            }
        }
        return null;
    }
private static String getAnchorAssociateChartId ( final CTTwoCellAnchor ctanchor ) { if ( ctanchor . getGraphicFrame ( ) == null ) { return null ; } Node parentNode = ctanchor . getGraphicFrame ( ) . getGraphic ( ) . getGraphicData ( ) . getDomNode ( ) ; NodeList childNodes = parentNode . getChildNodes ( ) ; for ( int i = 0 ; i < childNodes . getLength ( ) ; i ++ ) { Node childNode = childNodes . item ( i ) ; if ( ( childNode != null ) && ( "c:chart" . equalsIgnoreCase ( childNode . getNodeName ( ) ) ) && ( childNode . hasAttributes ( ) ) ) { String rId = getChartIdFromChildNodeAttributes ( childNode . getAttributes ( ) ) ; if ( rId != null ) { return rId ; } } } return null ; }
Gets the anchor associate chart id.

@param ctanchor
the ctanchor
@return the anchor associate chart id
Gets the anchor associate chart id .