xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Gainty <mgai...@hotmail.com>
Subject RE: Merging Documents
Date Tue, 28 Sep 2010 18:37:46 GMT

the only restriction i could see is that the imported node must be instanceOf AbstractNode

        if (importedNode instanceof AbstractNode) {
            // Only fire the UserDataHandler if the imported node is from
            // Batik's DOM implementation.

is the node you're importing instanceOf AbstractNode?
Martin Gainty 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten
wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist
unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet
keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen
wir keine Haftung fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire
prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe
quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information
seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les
email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune
responsabilité pour le contenu fourni.

> Date: Tue, 28 Sep 2010 09:38:34 -0700
> From: kwilson4813@gmail.com
> To: batik-users@xmlgraphics.apache.org
> Subject: Merging Documents
> Some background:
> I'm trying to come up with a good way to enable and disable multiple layers,
> by reading in new documents (they are all the same size and created from one
> master image).  I want to be able to add and remove layers on demand using
> check boxes.  I am running into performance issues.  I have had some success
> with the steps listed below, but is there a better way to do this?
> I have been able to merge 2 documents, by getting the document element from
> one document, importing the node to the root node of the first document, and
> then appending the imported node to the root of the first document.
> I'm unable to append the imported node to another container within the first
> document, however.  I want to be able to remove it easily and I think having
> other containers hold the documents could accomplish this.  Yet another
> issue I've run into is adding clickable elements to the document.  When more
> documents are appended the elements eventually become nearly unclickable
> because they are behind so many other elements.  This is all beyond my
> batik/svg experience.
> -- 
> View this message in context: http://old.nabble.com/Merging-Documents-tp29830410p29830410.html
> Sent from the Batik - Users mailing list archive at Nabble.com.
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
View raw message