You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by jm...@apache.org on 2013/10/08 16:03:47 UTC

[32/62] [abbrv] [partial] Merged Apache Flex 4.9.0 release branch

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/f690ea2f/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/svggen/font/resources/Messages.properties
----------------------------------------------------------------------
diff --git a/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/svggen/font/resources/Messages.properties b/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/svggen/font/resources/Messages.properties
index b34f13f..29d0131 100644
--- a/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/svggen/font/resources/Messages.properties
+++ b/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/svggen/font/resources/Messages.properties
@@ -1,27 +1,31 @@
-###########################################################################
-# Copyright 1999-2003,2005 The Apache Software Foundation.
-###########################################################################
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-# 
-#      http://www.apache.org/licenses/LICENSE-2.0
-# 
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-###########################################################################
+# -----------------------------------------------------------------------------
+#
+#   Licensed to the Apache Software Foundation (ASF) under one or more
+#   contributor license agreements.  See the NOTICE file distributed with
+#   this work for additional information regarding copyright ownership.
+#   The ASF licenses this file to You under the Apache License, Version 2.0
+#   (the "License"); you may not use this file except in compliance with
+#   the License.  You may obtain a copy of the License at
+#
+#       http://www.apache.org/licenses/LICENSE-2.0
+#
+#   Unless required by applicable law or agreed to in writing, software
+#   distributed under the License is distributed on an "AS IS" BASIS,
+#   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#   See the License for the specific language governing permissions and
+#   limitations under the License.
+#
+# $Id: Messages.properties 475477 2006-11-15 22:44:28Z cam $
+# -----------------------------------------------------------------------------
 
 SVGFont.config.usage = \
-usage: java org.apache.flex.forks.batik.svggen.font.SVGFont <ttf-path> [-l <range-begin>] [-h <range-end>] [-autorange] [-ascii] [-id <id>] [-o <output-path>] [-testcard]
+usage: java org.apache.batik.svggen.font.SVGFont <ttf-path> [-l <range-begin>] [-h <range-end>] [-autorange] [-ascii] [-id <id>] [-o <output-path>] [-testcard]
 
 SVGFont.config.svg.begin = \
 <?xml version="1.0" standalone="no"?> \
 <!DOCTYPE svg PUBLIC "{0}" \
 "{1}" > \
-<svg width="100%" height="100%">
+<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%">
 
 SVGFont.config.svg.test.card.start = \
 <g style="font-family:' 

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/f690ea2f/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/swing/resources/Messages.properties
----------------------------------------------------------------------
diff --git a/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/swing/resources/Messages.properties b/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/swing/resources/Messages.properties
deleted file mode 100644
index a1ca7a6..0000000
--- a/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/swing/resources/Messages.properties
+++ /dev/null
@@ -1,30 +0,0 @@
-###########################################################################
-# Copyright 1999-2003,2005 The Apache Software Foundation.
-###########################################################################
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-# 
-#      http://www.apache.org/licenses/LICENSE-2.0
-# 
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-###########################################################################
-
-#
-# ToolTip formatting
-#
-JSVGCanvas.CanvasUserAgent.ToolTip.titleOnly = \
-<html><body><b><i>{0}</i></b></body></html>
-
-JSVGCanvas.CanvasUserAgent.ToolTip.descOnly = \
-<html><body><tt>{0}</tt></body></html>
-
-JSVGCanvas.CanvasUserAgent.ToolTip.titleAndDesc = \
-<html><body><b><i>{0}</i></b><br><tt>{1}</tt></body></html>
-
-
-

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/f690ea2f/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/swing/resources/batikColor16x16.gif
----------------------------------------------------------------------
diff --git a/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/swing/resources/batikColor16x16.gif b/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/swing/resources/batikColor16x16.gif
deleted file mode 100644
index 446c7fd..0000000
Binary files a/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/swing/resources/batikColor16x16.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/f690ea2f/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/swing/resources/batikColor32x32.gif
----------------------------------------------------------------------
diff --git a/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/swing/resources/batikColor32x32.gif b/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/swing/resources/batikColor32x32.gif
deleted file mode 100644
index b333d77..0000000
Binary files a/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/swing/resources/batikColor32x32.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/f690ea2f/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/swing/resources/batikMono16x16.gif
----------------------------------------------------------------------
diff --git a/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/swing/resources/batikMono16x16.gif b/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/swing/resources/batikMono16x16.gif
deleted file mode 100644
index 514a43e..0000000
Binary files a/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/swing/resources/batikMono16x16.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/f690ea2f/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/swing/resources/batikMono32x32.gif
----------------------------------------------------------------------
diff --git a/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/swing/resources/batikMono32x32.gif b/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/swing/resources/batikMono32x32.gif
deleted file mode 100644
index 8a5b6ff..0000000
Binary files a/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/swing/resources/batikMono32x32.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/f690ea2f/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/swing/svg/resources/Messages.properties
----------------------------------------------------------------------
diff --git a/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/swing/svg/resources/Messages.properties b/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/swing/svg/resources/Messages.properties
deleted file mode 100644
index 6c02edc..0000000
--- a/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/swing/svg/resources/Messages.properties
+++ /dev/null
@@ -1,24 +0,0 @@
-###########################################################################
-# Copyright 1999-2003,2005 The Apache Software Foundation.
-###########################################################################
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-# 
-#      http://www.apache.org/licenses/LICENSE-2.0
-# 
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-###########################################################################
-
-script.alert = \
-Script alert:\n{0}
-
-script.confirm = \
-Script confirm:\n{0}
-
-script.prompt = \
-Script prompt:\n{0}

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/f690ea2f/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/transcoder/image/resources/Messages.properties
----------------------------------------------------------------------
diff --git a/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/transcoder/image/resources/Messages.properties b/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/transcoder/image/resources/Messages.properties
index f7416d9..c755543 100644
--- a/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/transcoder/image/resources/Messages.properties
+++ b/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/transcoder/image/resources/Messages.properties
@@ -1,23 +1,25 @@
-###########################################################################
-# Copyright 1999-2003,2005 The Apache Software Foundation.
-###########################################################################
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-# 
-#      http://www.apache.org/licenses/LICENSE-2.0
-# 
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-###########################################################################
+# -----------------------------------------------------------------------------
+#
+#   Licensed to the Apache Software Foundation (ASF) under one or more
+#   contributor license agreements.  See the NOTICE file distributed with
+#   this work for additional information regarding copyright ownership.
+#   The ASF licenses this file to You under the Apache License, Version 2.0
+#   (the "License"); you may not use this file except in compliance with
+#   the License.  You may obtain a copy of the License at
+#
+#       http://www.apache.org/licenses/LICENSE-2.0
+#
+#   Unless required by applicable law or agreed to in writing, software
+#   distributed under the License is distributed on an "AS IS" BASIS,
+#   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#   See the License for the specific language governing permissions and
+#   limitations under the License.
 #
 # The error messages for the image transcoder.
 #
 # Author: Thierry Kormann
-#
+# $Id: Messages.properties 475477 2006-11-15 22:44:28Z cam $
+# -----------------------------------------------------------------------------
 
 notsvg = \
 The specified XML document fragment is not an SVG document

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/f690ea2f/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/util/gui/resources/CSSMediaPanel.properties
----------------------------------------------------------------------
diff --git a/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/util/gui/resources/CSSMediaPanel.properties b/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/util/gui/resources/CSSMediaPanel.properties
index 3e7c862..00f767d 100644
--- a/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/util/gui/resources/CSSMediaPanel.properties
+++ b/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/util/gui/resources/CSSMediaPanel.properties
@@ -1,10 +1,11 @@
-###############################################################################
+# -----------------------------------------------------------------------------
 #
-#   Copyright 2001  The Apache Software Foundation 
-#
-#   Licensed under the Apache License, Version 2.0 (the "License");
-#   you may not use this file except in compliance with the License.
-#   You may obtain a copy of the License at
+#   Licensed to the Apache Software Foundation (ASF) under one or more
+#   contributor license agreements.  See the NOTICE file distributed with
+#   this work for additional information regarding copyright ownership.
+#   The ASF licenses this file to You under the Apache License, Version 2.0
+#   (the "License"); you may not use this file except in compliance with
+#   the License.  You may obtain a copy of the License at
 #
 #       http://www.apache.org/licenses/LICENSE-2.0
 #
@@ -14,13 +15,11 @@
 #   See the License for the specific language governing permissions and
 #   limitations under the License.
 #
-###############################################################################
-#
 # The resources for the location bar
 #
 # Author: tkormann@ilog.fr
-# $Id: CSSMediaPanel.properties,v 1.3 2004/08/18 07:11:32 vhardy Exp $
-#
+# $Id: CSSMediaPanel.properties 496986 2007-01-17 10:50:57Z cam $
+# -----------------------------------------------------------------------------
 
 OKButton.text     = OK
 OKButton.mnemonic = O
@@ -44,7 +43,7 @@ ClearButton.action   = ClearButtonAction
 
 Panel.title = CSS Media
 
-Media.list = all aural braille embossed handheld print projection screen tty tv 
+Media.list = aural braille embossed handheld print projection screen tty tv 
 AddMediumDialog.title = Add a new CSS medium
 AddMediumDialog.label = Medium Name: 
 

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/f690ea2f/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/util/gui/resources/DOMViewerMessages.properties
----------------------------------------------------------------------
diff --git a/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/util/gui/resources/DOMViewerMessages.properties b/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/util/gui/resources/DOMViewerMessages.properties
deleted file mode 100644
index ab2485e..0000000
--- a/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/util/gui/resources/DOMViewerMessages.properties
+++ /dev/null
@@ -1,56 +0,0 @@
-###############################################################################
-#
-#   Copyright 2000  The Apache Software Foundation 
-#
-#   Licensed under the Apache License, Version 2.0 (the "License");
-#   you may not use this file except in compliance with the License.
-#   You may obtain a copy of the License at
-#
-#       http://www.apache.org/licenses/LICENSE-2.0
-#
-#   Unless required by applicable law or agreed to in writing, software
-#   distributed under the License is distributed on an "AS IS" BASIS,
-#   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-#   See the License for the specific language governing permissions and
-#   limitations under the License.
-#
-###############################################################################
-#
-# Properties for the DOM viewer
-#
-# Author: stephane@hillion.org
-# $Id: DOMViewerMessages.properties,v 1.5 2004/08/18 07:11:32 vhardy Exp $
-#
-
-DOMViewer.title = Document Tree
-DOMViewerPanel.title = DOM Viewer 
-
-CDataPanel.title = CharacterData Node Value
-
-DocumentInfoPanel.title = Document Informations
-
-AttributesPanel.title = Element Attributes 
-CSSValuesPanel.title = Element Cascaded CSS Properties
-
-SplitPane.dividerLocation = 220
-EmptyDocument.text = <Empty document>
-
-AttributesTable.column1 = Name
-AttributesTable.column2 = Value
-
-CSSValuesTable.column1 = Name
-CSSValuesTable.column2 = Value
-
-Element.icon = resources/element.gif
-Comment.icon = resources/comment.gif
-PI.icon = resources/pi.gif
-Text.icon = resources/text.gif
-
-Frame.title  = DOM Viewer
-Frame.width  = 700
-Frame.height = 500
-
-CloseButton.text     = Close
-CloseButton.mnemonic = C
-CloseButton.tooltip  = Close the tree view frame
-CloseButton.action   = CloseButtonAction

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/f690ea2f/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/util/gui/resources/JErrorPane.properties
----------------------------------------------------------------------
diff --git a/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/util/gui/resources/JErrorPane.properties b/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/util/gui/resources/JErrorPane.properties
index 41cb6bb..0677cdd 100644
--- a/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/util/gui/resources/JErrorPane.properties
+++ b/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/util/gui/resources/JErrorPane.properties
@@ -1,10 +1,11 @@
-###############################################################################
+# -----------------------------------------------------------------------------
 #
-#   Copyright 2001-2002  The Apache Software Foundation 
-#
-#   Licensed under the Apache License, Version 2.0 (the "License");
-#   you may not use this file except in compliance with the License.
-#   You may obtain a copy of the License at
+#   Licensed to the Apache Software Foundation (ASF) under one or more
+#   contributor license agreements.  See the NOTICE file distributed with
+#   this work for additional information regarding copyright ownership.
+#   The ASF licenses this file to You under the Apache License, Version 2.0
+#   (the "License"); you may not use this file except in compliance with
+#   the License.  You may obtain a copy of the License at
 #
 #       http://www.apache.org/licenses/LICENSE-2.0
 #
@@ -14,13 +15,11 @@
 #   See the License for the specific language governing permissions and
 #   limitations under the License.
 #
-###############################################################################
-#
 # The resources for the JErrorPane
 #
 # Author: tkormann@ilog.fr
-# $Id: JErrorPane.properties,v 1.5 2004/08/18 07:11:32 vhardy Exp $
-#
+# $Id: JErrorPane.properties 475477 2006-11-15 22:44:28Z cam $
+# -----------------------------------------------------------------------------
 
 Heading.text = SVG Error:
 

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/f690ea2f/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/util/gui/resources/LanguageDialogMessages.properties
----------------------------------------------------------------------
diff --git a/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/util/gui/resources/LanguageDialogMessages.properties b/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/util/gui/resources/LanguageDialogMessages.properties
index 2b83c7d..a477b25 100644
--- a/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/util/gui/resources/LanguageDialogMessages.properties
+++ b/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/util/gui/resources/LanguageDialogMessages.properties
@@ -1,10 +1,11 @@
-###############################################################################
+# -----------------------------------------------------------------------------
 #
-#   Copyright 2000,2003  The Apache Software Foundation 
-#
-#   Licensed under the Apache License, Version 2.0 (the "License");
-#   you may not use this file except in compliance with the License.
-#   You may obtain a copy of the License at
+#   Licensed to the Apache Software Foundation (ASF) under one or more
+#   contributor license agreements.  See the NOTICE file distributed with
+#   this work for additional information regarding copyright ownership.
+#   The ASF licenses this file to You under the Apache License, Version 2.0
+#   (the "License"); you may not use this file except in compliance with
+#   the License.  You may obtain a copy of the License at
 #
 #       http://www.apache.org/licenses/LICENSE-2.0
 #
@@ -14,17 +15,16 @@
 #   See the License for the specific language governing permissions and
 #   limitations under the License.
 #
-################################################################################
 # The resource file for the language dialog.
 #
 # stephane@hillion.org
-# $Id: LanguageDialogMessages.properties,v 1.5 2004/08/18 07:11:32 vhardy Exp $
-#
+# $Id: LanguageDialogMessages.properties 496986 2007-01-17 10:50:57Z cam $
+# -----------------------------------------------------------------------------
 
 Dialog.title  = Language Options
 Panel.title = User Languages Selection
-Languages.title = Available Languages
-User.title = User Languages
+Languages.title = Available languages:
+User.title = User languages:
 
 InfoLabel.text = The user languages are used while processing \
 the SVG switch element.
@@ -168,7 +168,7 @@ fj.icon = resources/flags/flag_fj.gif
 
 fo.text = Faeroese (fo)
 fo.icon = resources/flags/flag_fo.gif
-	
+
 fr.text = French (fr)
 fr.icon = resources/flags/flag_fr.gif
 

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/f690ea2f/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/util/gui/resources/LocationBar.properties
----------------------------------------------------------------------
diff --git a/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/util/gui/resources/LocationBar.properties b/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/util/gui/resources/LocationBar.properties
index 4016880..fb1cae4 100644
--- a/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/util/gui/resources/LocationBar.properties
+++ b/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/util/gui/resources/LocationBar.properties
@@ -1,10 +1,11 @@
-###############################################################################
+# -----------------------------------------------------------------------------
 #
-#   Copyright 2000  The Apache Software Foundation 
-#
-#   Licensed under the Apache License, Version 2.0 (the "License");
-#   you may not use this file except in compliance with the License.
-#   You may obtain a copy of the License at
+#   Licensed to the Apache Software Foundation (ASF) under one or more
+#   contributor license agreements.  See the NOTICE file distributed with
+#   this work for additional information regarding copyright ownership.
+#   The ASF licenses this file to You under the Apache License, Version 2.0
+#   (the "License"); you may not use this file except in compliance with
+#   the License.  You may obtain a copy of the License at
 #
 #       http://www.apache.org/licenses/LICENSE-2.0
 #
@@ -14,13 +15,11 @@
 #   See the License for the specific language governing permissions and
 #   limitations under the License.
 #
-###############################################################################
-#
 # The resources for the location bar
 #
 # Author: stephane@hillion.org
-# $Id: LocationBar.properties,v 1.4 2004/08/18 07:11:32 vhardy Exp $
-#
+# $Id: LocationBar.properties 498555 2007-01-22 08:09:33Z cam $
+# -----------------------------------------------------------------------------
 
 Panel.label = Location:
-Panel.icon  = resources/web.gif
+Panel.icon  = resources/text-html.png

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/f690ea2f/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/util/gui/resources/MemoryMonitorMessages.properties
----------------------------------------------------------------------
diff --git a/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/util/gui/resources/MemoryMonitorMessages.properties b/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/util/gui/resources/MemoryMonitorMessages.properties
index fb63aea..09a51ce 100644
--- a/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/util/gui/resources/MemoryMonitorMessages.properties
+++ b/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/util/gui/resources/MemoryMonitorMessages.properties
@@ -1,10 +1,11 @@
-###############################################################################
+# -----------------------------------------------------------------------------
 #
-#   Copyright 2000-2001  The Apache Software Foundation 
-#
-#   Licensed under the Apache License, Version 2.0 (the "License");
-#   you may not use this file except in compliance with the License.
-#   You may obtain a copy of the License at
+#   Licensed to the Apache Software Foundation (ASF) under one or more
+#   contributor license agreements.  See the NOTICE file distributed with
+#   this work for additional information regarding copyright ownership.
+#   The ASF licenses this file to You under the Apache License, Version 2.0
+#   (the "License"); you may not use this file except in compliance with
+#   the License.  You may obtain a copy of the License at
 #
 #       http://www.apache.org/licenses/LICENSE-2.0
 #
@@ -14,13 +15,11 @@
 #   See the License for the specific language governing permissions and
 #   limitations under the License.
 #
-###############################################################################
-#
 # The resources for the memory monitor components.
 #
 # stephane@hillion.org
-# $Id: MemoryMonitorMessages.properties,v 1.5 2004/08/18 07:11:32 vhardy Exp $
-#
+# $Id: MemoryMonitorMessages.properties 475477 2006-11-15 22:44:28Z cam $
+# -----------------------------------------------------------------------------
 
 Frame.title = Memory Monitor
 Frame.border_title = Memory Usage & History

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/f690ea2f/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/util/gui/resources/ScrollablePopupMenuMessages.properties
----------------------------------------------------------------------
diff --git a/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/util/gui/resources/ScrollablePopupMenuMessages.properties b/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/util/gui/resources/ScrollablePopupMenuMessages.properties
new file mode 100644
index 0000000..c2f4157
--- /dev/null
+++ b/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/util/gui/resources/ScrollablePopupMenuMessages.properties
@@ -0,0 +1,27 @@
+# -----------------------------------------------------------------------------
+#
+#   Licensed to the Apache Software Foundation (ASF) under one or more
+#   contributor license agreements.  See the NOTICE file distributed with
+#   this work for additional information regarding copyright ownership.
+#   The ASF licenses this file to You under the Apache License, Version 2.0
+#   (the "License"); you may not use this file except in compliance with
+#   the License.  You may obtain a copy of the License at
+#
+#       http://www.apache.org/licenses/LICENSE-2.0
+#
+#   Unless required by applicable law or agreed to in writing, software
+#   distributed under the License is distributed on an "AS IS" BASIS,
+#   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#   See the License for the specific language governing permissions and
+#   limitations under the License.
+#
+# $Id$
+# -----------------------------------------------------------------------------
+
+PreferredHeight = 218
+
+ScrollPane.minWidth = 240
+ScrollPane.minHeight = 40
+ScrollPane.maxWidth = 1200
+ScrollPane.maxHeight = 400
+

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/f690ea2f/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/util/gui/resources/URIChooserMessages.properties
----------------------------------------------------------------------
diff --git a/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/util/gui/resources/URIChooserMessages.properties b/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/util/gui/resources/URIChooserMessages.properties
index e85899a..069e269 100644
--- a/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/util/gui/resources/URIChooserMessages.properties
+++ b/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/util/gui/resources/URIChooserMessages.properties
@@ -1,10 +1,11 @@
-###############################################################################
+# -----------------------------------------------------------------------------
 #
-#   Copyright 2000  The Apache Software Foundation 
-#
-#   Licensed under the Apache License, Version 2.0 (the "License");
-#   you may not use this file except in compliance with the License.
-#   You may obtain a copy of the License at
+#   Licensed to the Apache Software Foundation (ASF) under one or more
+#   contributor license agreements.  See the NOTICE file distributed with
+#   this work for additional information regarding copyright ownership.
+#   The ASF licenses this file to You under the Apache License, Version 2.0
+#   (the "License"); you may not use this file except in compliance with
+#   the License.  You may obtain a copy of the License at
 #
 #       http://www.apache.org/licenses/LICENSE-2.0
 #
@@ -14,13 +15,11 @@
 #   See the License for the specific language governing permissions and
 #   limitations under the License.
 #
-###############################################################################
-#
 # URI Chooser properties file
 #
 # Author: stephane@hillion.org
-# $Id: URIChooserMessages.properties,v 1.4 2004/08/18 07:11:32 vhardy Exp $
-#
+# $Id: URIChooserMessages.properties 475477 2006-11-15 22:44:28Z cam $
+# -----------------------------------------------------------------------------
 
 Dialog.title  = Select a path
 Dialog.label  = Choose an URI or a local file:

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/f690ea2f/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/util/gui/resources/UserStyleDialog.properties
----------------------------------------------------------------------
diff --git a/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/util/gui/resources/UserStyleDialog.properties b/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/util/gui/resources/UserStyleDialog.properties
index efd3b60..a78667b 100644
--- a/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/util/gui/resources/UserStyleDialog.properties
+++ b/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/util/gui/resources/UserStyleDialog.properties
@@ -1,25 +1,25 @@
-###########################################################################
-# Copyright 1999-2003,2005 The Apache Software Foundation.
-###########################################################################
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-# 
-#      http://www.apache.org/licenses/LICENSE-2.0
-# 
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-###########################################################################
-
+# -----------------------------------------------------------------------------
+#
+#   Licensed to the Apache Software Foundation (ASF) under one or more
+#   contributor license agreements.  See the NOTICE file distributed with
+#   this work for additional information regarding copyright ownership.
+#   The ASF licenses this file to You under the Apache License, Version 2.0
+#   (the "License"); you may not use this file except in compliance with
+#   the License.  You may obtain a copy of the License at
+#
+#       http://www.apache.org/licenses/LICENSE-2.0
+#
+#   Unless required by applicable law or agreed to in writing, software
+#   distributed under the License is distributed on an "AS IS" BASIS,
+#   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#   See the License for the specific language governing permissions and
+#   limitations under the License.
 #
 # The resource file for the user style dialog.
 #
 # Author: stephane@hillion.org
-# $Id: UserStyleDialog.properties,v 1.3 2005/04/01 02:28:10 deweese Exp $
-#
+# $Id: UserStyleDialog.properties 475477 2006-11-15 22:44:28Z cam $
+# -----------------------------------------------------------------------------
 
 Dialog.title  = Style Options
 

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/f690ea2f/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/util/gui/resources/comment.gif
----------------------------------------------------------------------
diff --git a/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/util/gui/resources/comment.gif b/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/util/gui/resources/comment.gif
deleted file mode 100644
index 24dd205..0000000
Binary files a/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/util/gui/resources/comment.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/f690ea2f/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/util/gui/resources/element.gif
----------------------------------------------------------------------
diff --git a/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/util/gui/resources/element.gif b/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/util/gui/resources/element.gif
deleted file mode 100644
index 2a99412..0000000
Binary files a/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/util/gui/resources/element.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/f690ea2f/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/util/gui/resources/pi.gif
----------------------------------------------------------------------
diff --git a/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/util/gui/resources/pi.gif b/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/util/gui/resources/pi.gif
deleted file mode 100644
index c7e509a..0000000
Binary files a/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/util/gui/resources/pi.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/f690ea2f/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/util/gui/resources/text-html.png
----------------------------------------------------------------------
diff --git a/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/util/gui/resources/text-html.png b/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/util/gui/resources/text-html.png
new file mode 100644
index 0000000..51beaff
Binary files /dev/null and b/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/util/gui/resources/text-html.png differ

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/f690ea2f/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/util/gui/resources/text.gif
----------------------------------------------------------------------
diff --git a/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/util/gui/resources/text.gif b/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/util/gui/resources/text.gif
deleted file mode 100644
index 55df542..0000000
Binary files a/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/util/gui/resources/text.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/f690ea2f/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/util/gui/resources/web.gif
----------------------------------------------------------------------
diff --git a/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/util/gui/resources/web.gif b/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/util/gui/resources/web.gif
deleted file mode 100644
index c476798..0000000
Binary files a/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/util/gui/resources/web.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/f690ea2f/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/util/io/resources/Messages.properties
----------------------------------------------------------------------
diff --git a/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/util/io/resources/Messages.properties b/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/util/io/resources/Messages.properties
index 8636844..f0983c3 100644
--- a/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/util/io/resources/Messages.properties
+++ b/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/util/io/resources/Messages.properties
@@ -1,21 +1,24 @@
-###########################################################################
-# Copyright 1999-2003,2005 The Apache Software Foundation.
-###########################################################################
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-# 
-#      http://www.apache.org/licenses/LICENSE-2.0
-# 
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-###########################################################################
+# -----------------------------------------------------------------------------
+#
+#   Licensed to the Apache Software Foundation (ASF) under one or more
+#   contributor license agreements.  See the NOTICE file distributed with
+#   this work for additional information regarding copyright ownership.
+#   The ASF licenses this file to You under the Apache License, Version 2.0
+#   (the "License"); you may not use this file except in compliance with
+#   the License.  You may obtain a copy of the License at
+#
+#       http://www.apache.org/licenses/LICENSE-2.0
+#
+#   Unless required by applicable law or agreed to in writing, software
+#   distributed under the License is distributed on an "AS IS" BASIS,
+#   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#   See the License for the specific language governing permissions and
+#   limitations under the License.
 #
 # The error messages for the IO utilities.
 #
+# $Id: Messages.properties 475477 2006-11-15 22:44:28Z cam $
+# -----------------------------------------------------------------------------
 
 invalid.char = \
 The input stream represents an invalid {0} stream.

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/f690ea2f/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/util/resources/Messages.properties
----------------------------------------------------------------------
diff --git a/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/util/resources/Messages.properties b/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/util/resources/Messages.properties
index 536817b..91f6e3e 100644
--- a/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/util/resources/Messages.properties
+++ b/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/util/resources/Messages.properties
@@ -1,10 +1,11 @@
-###############################################################################
+# -----------------------------------------------------------------------------
 #
-#   Copyright 2000,2002  The Apache Software Foundation 
-#
-#   Licensed under the Apache License, Version 2.0 (the "License");
-#   you may not use this file except in compliance with the License.
-#   You may obtain a copy of the License at
+#   Licensed to the Apache Software Foundation (ASF) under one or more
+#   contributor license agreements.  See the NOTICE file distributed with
+#   this work for additional information regarding copyright ownership.
+#   The ASF licenses this file to You under the Apache License, Version 2.0
+#   (the "License"); you may not use this file except in compliance with
+#   the License.  You may obtain a copy of the License at
 #
 #       http://www.apache.org/licenses/LICENSE-2.0
 #
@@ -14,11 +15,11 @@
 #   See the License for the specific language governing permissions and
 #   limitations under the License.
 #
-################################################################################
 # The error messages for the utility package
 #
 # Author: Thierry Kormann
-#
+# $Id: Messages.properties 475477 2006-11-15 22:44:28Z cam $
+# -----------------------------------------------------------------------------
 
 #
 # UnitProcessor

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/f690ea2f/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/util/resources/XMLResourceDescriptor.properties
----------------------------------------------------------------------
diff --git a/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/util/resources/XMLResourceDescriptor.properties b/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/util/resources/XMLResourceDescriptor.properties
index f254493..39d6a77 100644
--- a/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/util/resources/XMLResourceDescriptor.properties
+++ b/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/util/resources/XMLResourceDescriptor.properties
@@ -1,20 +1,24 @@
-###########################################################################
-# Copyright 1999-2003,2005 The Apache Software Foundation.
-###########################################################################
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-# 
-#      http://www.apache.org/licenses/LICENSE-2.0
-# 
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-###########################################################################
+# -----------------------------------------------------------------------------
+#
+#   Licensed to the Apache Software Foundation (ASF) under one or more
+#   contributor license agreements.  See the NOTICE file distributed with
+#   this work for additional information regarding copyright ownership.
+#   The ASF licenses this file to You under the Apache License, Version 2.0
+#   (the "License"); you may not use this file except in compliance with
+#   the License.  You may obtain a copy of the License at
+#
+#       http://www.apache.org/licenses/LICENSE-2.0
+#
+#   Unless required by applicable law or agreed to in writing, software
+#   distributed under the License is distributed on an "AS IS" BASIS,
+#   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#   See the License for the specific language governing permissions and
+#   limitations under the License.
 #
 # Author: Thierry Kormann
+#
+# $Id: XMLResourceDescriptor.properties 475477 2006-11-15 22:44:28Z cam $
+# -----------------------------------------------------------------------------
 
-org.xml.sax.driver = org.apache.xerces.parsers.SAXParser
-org.w3c.flex.forks.css.sac.driver = org.apache.flex.forks.batik.css.parser.Parser
+#org.xml.sax.driver = org.apache.xerces.parsers.SAXParser
+org.w3c.css.sac.driver = org.apache.batik.css.parser.Parser

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/f690ea2f/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/xml/scanner/resources/Messages.properties
----------------------------------------------------------------------
diff --git a/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/xml/scanner/resources/Messages.properties b/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/xml/scanner/resources/Messages.properties
index d9de7b3..5cbb008 100644
--- a/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/xml/scanner/resources/Messages.properties
+++ b/modules/thirdparty/batik/resources/org/apache/flex/forks/batik/xml/scanner/resources/Messages.properties
@@ -1,23 +1,25 @@
-###########################################################################
-# Copyright 1999-2003,2005 The Apache Software Foundation.
-###########################################################################
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-# 
-#      http://www.apache.org/licenses/LICENSE-2.0
-# 
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-###########################################################################
+# -----------------------------------------------------------------------------
+#
+#   Licensed to the Apache Software Foundation (ASF) under one or more
+#   contributor license agreements.  See the NOTICE file distributed with
+#   this work for additional information regarding copyright ownership.
+#   The ASF licenses this file to You under the Apache License, Version 2.0
+#   (the "License"); you may not use this file except in compliance with
+#   the License.  You may obtain a copy of the License at
+#
+#       http://www.apache.org/licenses/LICENSE-2.0
+#
+#   Unless required by applicable law or agreed to in writing, software
+#   distributed under the License is distributed on an "AS IS" BASIS,
+#   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#   See the License for the specific language governing permissions and
+#   limitations under the License.
 #
 # The error messages for the XML scanner.
 #
 # Author: stephane@hillion.org
-#
+# $Id: Messages.properties 475477 2006-11-15 22:44:28Z cam $
+# -----------------------------------------------------------------------------
 
 character = \
 Invalid character.

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/f690ea2f/modules/thirdparty/batik/sources-1.3/org/apache/batik/dom/util/DOMUtilitiesSupport.java
----------------------------------------------------------------------
diff --git a/modules/thirdparty/batik/sources-1.3/org/apache/batik/dom/util/DOMUtilitiesSupport.java b/modules/thirdparty/batik/sources-1.3/org/apache/batik/dom/util/DOMUtilitiesSupport.java
new file mode 100644
index 0000000..247f1f8
--- /dev/null
+++ b/modules/thirdparty/batik/sources-1.3/org/apache/batik/dom/util/DOMUtilitiesSupport.java
@@ -0,0 +1,46 @@
+/*
+
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You under the Apache License, Version 2.0
+   (the "License"); you may not use this file except in compliance with
+   the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+
+*/
+
+package org.apache.flex.forks.batik.dom.util;
+
+/**
+ * JRE specific helper functions for {@link DOMUtilities}.
+ *
+ * @author <a href="mailto:cam%40mcc%2eid%2eau">Cameron McCormack</a>
+ * @version $Id$
+ */
+public abstract class DOMUtilitiesSupport {
+
+    /**
+     * Gets a DOM 3 modifiers string from the given lock and
+     * shift bitmasks.
+     */
+    protected static String getModifiersList(int lockState, int modifiers) {
+        if ((modifiers & 0x20) != 0) {
+            modifiers = 0x10 | (modifiers & 0x0f);
+        } else {
+            modifiers = modifiers & 0x0f;
+        }
+        String s = DOMUtilities.LOCK_STRINGS[lockState & 0x0f];
+        if (s.length() != 0) {
+            return s + ' ' + DOMUtilities.MODIFIER_STRINGS[modifiers];
+        }
+        return DOMUtilities.MODIFIER_STRINGS[modifiers];
+    }
+}

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/f690ea2f/modules/thirdparty/batik/sources-1.3/org/apache/batik/gvt/event/AWTEventDispatcher.java
----------------------------------------------------------------------
diff --git a/modules/thirdparty/batik/sources-1.3/org/apache/batik/gvt/event/AWTEventDispatcher.java b/modules/thirdparty/batik/sources-1.3/org/apache/batik/gvt/event/AWTEventDispatcher.java
new file mode 100644
index 0000000..7d1c933
--- /dev/null
+++ b/modules/thirdparty/batik/sources-1.3/org/apache/batik/gvt/event/AWTEventDispatcher.java
@@ -0,0 +1,90 @@
+/*
+
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You under the Apache License, Version 2.0
+   (the "License"); you may not use this file except in compliance with
+   the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+
+ */
+package org.apache.flex.forks.batik.gvt.event;
+
+import java.awt.event.InputEvent;
+import java.awt.event.KeyEvent;
+import java.awt.event.MouseEvent;
+
+import org.apache.flex.forks.batik.gvt.GraphicsNode;
+
+/**
+ * A concrete version of {@link org.apache.flex.forks.batik.gvt.event.AWTEventDispatcher}.
+ *
+ * This class is used for JDKs &lt; 1.4, which don't have MouseWheelEvent
+ * support.  For JDKs &gt;= 1.4, the file
+ * sources-1.4/org/apache/batik/gvt/event/AWTEventDispatcher defines a
+ * version of this class that does support MouseWheelEvents.
+ *
+ * @author <a href="mailto:cam%40mcc%2eid%2eau">Cameron McCormack</a>
+ * @version $Id: AWTEventDispatcher.java 575202 2007-09-13 07:45:18Z cam $
+ */
+public class AWTEventDispatcher extends AbstractAWTEventDispatcher {
+
+    /**
+     * Dispatches the specified AWT key event.
+     * @param evt the key event to dispatch
+     */
+    protected void dispatchKeyEvent(KeyEvent evt) {
+        currentKeyEventTarget = lastHit;
+        GraphicsNode target =
+            currentKeyEventTarget == null ? root : currentKeyEventTarget;
+        processKeyEvent
+            (new GraphicsNodeKeyEvent(target,
+                                      evt.getID(),
+                                      evt.getWhen(),
+                                      evt.getModifiers(),
+                                      getCurrentLockState(),
+                                      evt.getKeyCode(),
+                                      evt.getKeyChar(),
+                                      0));
+    }
+
+    /** 
+     * Returns the modifiers mask for this event.  This just calls
+     * {@link InputEvent#getModifiers()} on <code>evt</code>.
+     */
+    protected int getModifiers(InputEvent evt) {
+        return evt.getModifiers();
+    }
+
+    /**
+     * Returns the button whose state changed for the given event.  This calls
+     * {@link InputEvent#getModifiers()} to check which button caused the
+     * event.
+     */
+    protected int getButton(MouseEvent evt) {
+        if ((evt.getModifiers() & InputEvent.BUTTON1_MASK) != 0) {
+            return 1;
+        } else if ((evt.getModifiers() & InputEvent.BUTTON2_MASK) != 0) {
+            return 2;
+        } else if ((evt.getModifiers() & InputEvent.BUTTON3_MASK) != 0) {
+            return 3;
+        }
+        return 0;
+    }
+
+    /**
+     * Returns whether the meta key is down according to the given modifiers
+     * bitfield.
+     */
+    protected static boolean isMetaDown(int modifiers) {
+        return (modifiers & GraphicsNodeInputEvent.META_MASK) != 0;
+    }
+}

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/f690ea2f/modules/thirdparty/batik/sources-1.4/org/apache/batik/dom/util/DOMUtilitiesSupport.java
----------------------------------------------------------------------
diff --git a/modules/thirdparty/batik/sources-1.4/org/apache/batik/dom/util/DOMUtilitiesSupport.java b/modules/thirdparty/batik/sources-1.4/org/apache/batik/dom/util/DOMUtilitiesSupport.java
new file mode 100644
index 0000000..052f816
--- /dev/null
+++ b/modules/thirdparty/batik/sources-1.4/org/apache/batik/dom/util/DOMUtilitiesSupport.java
@@ -0,0 +1,62 @@
+/*
+
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You under the Apache License, Version 2.0
+   (the "License"); you may not use this file except in compliance with
+   the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+
+ */
+package org.apache.flex.forks.batik.dom.util;
+
+/**
+ * JRE specific helper functions for {@link DOMUtilities}.
+ *
+ * @author <a href="mailto:cam%40mcc%2eid%2eau">Cameron McCormack</a>
+ * @version $Id: DOMUtilitiesSupport.java 502541 2007-02-02 08:55:41Z dvholten $
+ */
+public abstract class DOMUtilitiesSupport {
+
+    static final String[] BITS = {
+        "Shift",
+        "Ctrl",
+        "Meta-or-Button3",
+        "Alt-or-Button2",
+        "Button1",
+        "AltGraph",
+        "ShiftDown",
+        "CtrlDown",
+        "MetaDown",
+        "AltDown",
+        "Button1Down",
+        "Button2Down",
+        "Button3Down",
+        "AltGraphDown"
+    };
+
+    /**
+     * Gets a DOM 3 modifiers string from the given lock and
+     * shift bitmasks.
+     */
+    protected static String getModifiersList(int lockState, int modifiersEx) {
+        if ((modifiersEx & (1 << 13)) != 0) {
+            modifiersEx = 0x10 | ((modifiersEx >> 6) & 0x0f);
+        } else {
+            modifiersEx = (modifiersEx >> 6) & 0x0f;
+        }
+        String s = DOMUtilities.LOCK_STRINGS[lockState & 0x0f];
+        if (s.length() != 0) {
+            return s + ' ' + DOMUtilities.MODIFIER_STRINGS[modifiersEx];
+        }
+        return DOMUtilities.MODIFIER_STRINGS[modifiersEx];
+    }
+}

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/f690ea2f/modules/thirdparty/batik/sources-1.4/org/apache/batik/ext/awt/image/codec/imageio/AbstractImageIORegistryEntry.java
----------------------------------------------------------------------
diff --git a/modules/thirdparty/batik/sources-1.4/org/apache/batik/ext/awt/image/codec/imageio/AbstractImageIORegistryEntry.java b/modules/thirdparty/batik/sources-1.4/org/apache/batik/ext/awt/image/codec/imageio/AbstractImageIORegistryEntry.java
new file mode 100644
index 0000000..9ebaf42
--- /dev/null
+++ b/modules/thirdparty/batik/sources-1.4/org/apache/batik/ext/awt/image/codec/imageio/AbstractImageIORegistryEntry.java
@@ -0,0 +1,164 @@
+/*
+
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You under the Apache License, Version 2.0
+   (the "License"); you may not use this file except in compliance with
+   the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+
+ */
+package org.apache.flex.forks.batik.ext.awt.image.codec.imageio;
+
+import java.awt.geom.Rectangle2D;
+import java.awt.image.BufferedImage;
+import java.awt.image.ColorModel;
+import java.awt.image.WritableRaster;
+import java.io.IOException;
+import java.io.InputStream;
+import java.util.Iterator;
+
+import javax.imageio.ImageIO;
+import javax.imageio.ImageReader;
+import javax.imageio.stream.ImageInputStream;
+
+import org.apache.flex.forks.batik.ext.awt.image.GraphicsUtil;
+import org.apache.flex.forks.batik.ext.awt.image.renderable.DeferRable;
+import org.apache.flex.forks.batik.ext.awt.image.renderable.Filter;
+import org.apache.flex.forks.batik.ext.awt.image.renderable.RedRable;
+import org.apache.flex.forks.batik.ext.awt.image.rendered.Any2sRGBRed;
+import org.apache.flex.forks.batik.ext.awt.image.rendered.FormatRed;
+import org.apache.flex.forks.batik.ext.awt.image.rendered.CachableRed;
+import org.apache.flex.forks.batik.ext.awt.image.spi.ImageTagRegistry;
+import org.apache.flex.forks.batik.ext.awt.image.spi.MagicNumberRegistryEntry;
+import org.apache.flex.forks.batik.util.ParsedURL;
+
+/**
+ * This is the base class for all ImageIO-based RegistryEntry implementations. They
+ * have a slightly lower priority than the RegistryEntry implementations using the 
+ * internal codecs, so these take precedence if they are available.
+ *
+ * @version $Id: AbstractImageIORegistryEntry.java 502538 2007-02-02 08:52:56Z dvholten $
+ */
+public abstract class AbstractImageIORegistryEntry 
+    extends MagicNumberRegistryEntry {
+
+    /**
+     * Constructor
+     * @param name Format Name
+     * @param exts Standard set of extensions
+     * @param magicNumbers array of magic numbers any of which can match.
+     */
+    public AbstractImageIORegistryEntry(String    name,
+                                        String [] exts,
+                                        String [] mimeTypes,
+                                        MagicNumber [] magicNumbers) {
+        super(name, PRIORITY + 100, exts, mimeTypes, magicNumbers);
+    }
+    
+    /**
+     * Constructor, simplifies construction of entry when only
+     * one extension and one magic number is required.
+     * @param name        Format Name
+     * @param ext         Standard extension
+     * @param offset      Offset of magic number
+     * @param magicNumber byte array to match.
+     */
+    public AbstractImageIORegistryEntry(String name,
+                                    String ext,
+                                    String mimeType,
+                                    int offset, byte[] magicNumber) {
+        super(name, PRIORITY + 100, ext, mimeType, offset, magicNumber);
+    }
+    
+    /**
+     * Decode the Stream into a RenderableImage
+     *
+     * @param inIS The input stream that contains the image.
+     * @param origURL The original URL, if any, for documentation
+     *                purposes only.  This may be null.
+     * @param needRawData If true the image returned should not have
+     *                    any default color correction the file may 
+     *                    specify applied.  
+     */
+    public Filter handleStream(InputStream inIS, 
+                               ParsedURL   origURL,
+                               boolean     needRawData) {
+        final DeferRable  dr  = new DeferRable();
+        final InputStream is  = inIS;
+        final String      errCode;
+        final Object []   errParam;
+        if (origURL != null) {
+            errCode  = ERR_URL_FORMAT_UNREADABLE;
+            errParam = new Object[] {getFormatName(), origURL};
+        } else {
+            errCode  = ERR_STREAM_FORMAT_UNREADABLE;
+            errParam = new Object[] {getFormatName()};
+        }
+
+        Thread t = new Thread() {
+                public void run() {
+                    Filter filt;
+                    try{
+                        Iterator iter = ImageIO.getImageReadersByMIMEType(
+                                getMimeTypes().get(0).toString());
+                        if (!iter.hasNext()) {
+                            throw new UnsupportedOperationException(
+                                    "No image reader for " 
+                                        + getFormatName() + " available!");
+                        }
+                        ImageReader reader = (ImageReader)iter.next();
+                        ImageInputStream imageIn = ImageIO.createImageInputStream(is);
+                        reader.setInput(imageIn, true);
+                        
+                        int imageIndex = 0;
+                        dr.setBounds(new Rectangle2D.Double
+                                     (0, 0, 
+                                      reader.getWidth(imageIndex), 
+                                      reader.getHeight(imageIndex)));
+                        CachableRed cr;
+                        //Naïve approach probably wasting lots of memory
+                        //and ignoring the gamma correction done by PNGRed :-(
+                        BufferedImage bi = reader.read(imageIndex);
+                        cr = GraphicsUtil.wrap(bi);
+                        cr = new Any2sRGBRed(cr);
+                        cr = new FormatRed(cr, GraphicsUtil.sRGB_Unpre);
+                        WritableRaster wr = (WritableRaster)cr.getData();
+                        ColorModel cm = cr.getColorModel();
+                        BufferedImage image = new BufferedImage
+                            (cm, wr, cm.isAlphaPremultiplied(), null);
+                        cr = GraphicsUtil.wrap(image);
+                        filt = new RedRable(cr);
+                    } catch (IOException ioe) {
+                        // Something bad happened here...
+                        filt = ImageTagRegistry.getBrokenLinkImage
+                            (AbstractImageIORegistryEntry.this, 
+                             errCode, errParam);
+                    } catch (ThreadDeath td) {
+                        filt = ImageTagRegistry.getBrokenLinkImage
+                            (AbstractImageIORegistryEntry.this, 
+                             errCode, errParam);
+                        dr.setSource(filt);
+                        throw td;
+                    } catch (Throwable t) {
+                        filt = ImageTagRegistry.getBrokenLinkImage
+                            (AbstractImageIORegistryEntry.this, 
+                             errCode, errParam);
+                    }
+
+                    dr.setSource(filt);
+                }
+            };
+        t.start();
+        return dr;
+    }
+
+}

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/f690ea2f/modules/thirdparty/batik/sources-1.4/org/apache/batik/ext/awt/image/codec/imageio/ImageIODebugUtil.java
----------------------------------------------------------------------
diff --git a/modules/thirdparty/batik/sources-1.4/org/apache/batik/ext/awt/image/codec/imageio/ImageIODebugUtil.java b/modules/thirdparty/batik/sources-1.4/org/apache/batik/ext/awt/image/codec/imageio/ImageIODebugUtil.java
new file mode 100644
index 0000000..3242c83
--- /dev/null
+++ b/modules/thirdparty/batik/sources-1.4/org/apache/batik/ext/awt/image/codec/imageio/ImageIODebugUtil.java
@@ -0,0 +1,57 @@
+/*
+
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You under the Apache License, Version 2.0
+   (the "License"); you may not use this file except in compliance with
+   the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+
+ */
+package org.apache.flex.forks.batik.ext.awt.image.codec.imageio;
+
+import javax.imageio.metadata.IIOMetadata;
+import javax.xml.transform.Result;
+import javax.xml.transform.Source;
+import javax.xml.transform.Transformer;
+import javax.xml.transform.TransformerFactory;
+import javax.xml.transform.dom.DOMSource;
+import javax.xml.transform.stream.StreamResult;
+
+import org.w3c.dom.Node;
+
+/**
+ * Helper class for debugging stuff in Image I/O.
+ *
+ * @version $Id: ImageIODebugUtil.java 502538 2007-02-02 08:52:56Z dvholten $
+ */
+public class ImageIODebugUtil {
+
+    public static void dumpMetadata(IIOMetadata meta) {
+        String format = meta.getNativeMetadataFormatName();
+        Node node = meta.getAsTree(format);
+        dumpNode(node);
+    }
+    
+    public static void dumpNode(Node node) {
+        try {
+            TransformerFactory tf = TransformerFactory.newInstance();
+            Transformer t = tf.newTransformer();
+            Source src = new DOMSource(node);
+            Result res = new StreamResult(System.out);
+            t.transform(src, res);
+            System.out.println();
+        } catch (Exception e) {
+            e.printStackTrace();
+        }
+    }
+
+}

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/f690ea2f/modules/thirdparty/batik/sources-1.4/org/apache/batik/ext/awt/image/codec/imageio/ImageIOImageWriter.java
----------------------------------------------------------------------
diff --git a/modules/thirdparty/batik/sources-1.4/org/apache/batik/ext/awt/image/codec/imageio/ImageIOImageWriter.java b/modules/thirdparty/batik/sources-1.4/org/apache/batik/ext/awt/image/codec/imageio/ImageIOImageWriter.java
new file mode 100644
index 0000000..3ee4346
--- /dev/null
+++ b/modules/thirdparty/batik/sources-1.4/org/apache/batik/ext/awt/image/codec/imageio/ImageIOImageWriter.java
@@ -0,0 +1,211 @@
+/*
+
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You under the Apache License, Version 2.0
+   (the "License"); you may not use this file except in compliance with
+   the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+
+ */
+package org.apache.flex.forks.batik.ext.awt.image.codec.imageio;
+
+import java.awt.image.RenderedImage;
+import java.io.IOException;
+import java.io.OutputStream;
+import java.util.Iterator;
+
+import javax.imageio.IIOImage;
+import javax.imageio.ImageIO;
+import javax.imageio.ImageTypeSpecifier;
+import javax.imageio.ImageWriteParam;
+import javax.imageio.event.IIOWriteWarningListener;
+import javax.imageio.metadata.IIOInvalidTreeException;
+import javax.imageio.metadata.IIOMetadata;
+import javax.imageio.metadata.IIOMetadataNode;
+import javax.imageio.stream.ImageOutputStream;
+
+import org.w3c.dom.Node;
+import org.w3c.dom.NodeList;
+
+import org.apache.flex.forks.batik.ext.awt.image.spi.ImageWriter;
+import org.apache.flex.forks.batik.ext.awt.image.spi.ImageWriterParams;
+
+/**
+ * ImageWriter implementation that uses Image I/O to write images.
+ *
+ * @version $Id: ImageIOImageWriter.java 579471 2007-09-26 04:45:55Z cam $
+ */
+public class ImageIOImageWriter implements ImageWriter, IIOWriteWarningListener {
+
+    private String targetMIME;
+    
+    /**
+     * Main constructor.
+     * @param mime the MIME type of the image format
+     */
+    public ImageIOImageWriter(String mime) {
+        this.targetMIME = mime;
+    }
+    
+    /**
+     * @see ImageWriter#writeImage(java.awt.image.RenderedImage, java.io.OutputStream)
+     */
+    public void writeImage(RenderedImage image, OutputStream out) throws IOException {
+        writeImage(image, out, null);
+    }
+
+    /**
+     * @see ImageWriter#writeImage(java.awt.image.RenderedImage, java.io.OutputStream, ImageWriterParams)
+     */
+    public void writeImage(RenderedImage image, OutputStream out, 
+            ImageWriterParams params) 
+                throws IOException {
+        Iterator iter;
+        iter = ImageIO.getImageWritersByMIMEType(getMIMEType());
+        javax.imageio.ImageWriter iiowriter = null;
+        try {
+            iiowriter = (javax.imageio.ImageWriter)iter.next();
+            if (iiowriter != null) {
+                iiowriter.addIIOWriteWarningListener(this);
+
+                ImageOutputStream imgout = null;
+                try {
+                    imgout = ImageIO.createImageOutputStream(out);
+                    ImageWriteParam iwParam = getDefaultWriteParam(iiowriter, image, params);
+
+                    ImageTypeSpecifier type;
+                    if (iwParam.getDestinationType() != null) {
+                        type = iwParam.getDestinationType();
+                    } else {
+                        type = ImageTypeSpecifier.createFromRenderedImage(image);
+                    }
+
+                    //Handle metadata
+                    IIOMetadata meta = iiowriter.getDefaultImageMetadata(
+                            type, iwParam);
+                    //meta might be null for some JAI codecs as they don't support metadata
+                    if (params != null && meta != null) {
+                        meta = updateMetadata(meta, params); 
+                    }
+
+                    //Write image
+                    iiowriter.setOutput(imgout);
+                    IIOImage iioimg = new IIOImage(image, null, meta);
+                    iiowriter.write(null, iioimg, iwParam);
+                } finally {
+                    if (imgout != null) {
+                        System.err.println("closing");
+                        imgout.close();
+                    }
+                }
+            } else {
+                throw new UnsupportedOperationException("No ImageIO codec for writing " 
+                        + getMIMEType() + " is available!");
+            }
+        } finally {
+            if (iiowriter != null) {
+                System.err.println("disposing");
+                iiowriter.dispose();
+            }
+        }
+    }
+    
+    /**
+     * Returns the default write parameters for encoding the image.
+     * @param iiowriter The IIO ImageWriter that will be used
+     * @param image the image to be encoded
+     * @param params the parameters for this writer instance
+     * @return the IIO ImageWriteParam instance
+     */
+    protected ImageWriteParam getDefaultWriteParam(
+            javax.imageio.ImageWriter iiowriter, RenderedImage image, 
+            ImageWriterParams params) {
+        ImageWriteParam param = iiowriter.getDefaultWriteParam();
+        System.err.println("Param: " + params);
+        if ((params != null) && (params.getCompressionMethod() != null)) {
+            param.setCompressionMode(ImageWriteParam.MODE_EXPLICIT);
+            param.setCompressionType(params.getCompressionMethod());
+        }
+        return param; 
+    }
+    
+    /**
+     * Updates the metadata information based on the parameters to this writer.
+     * @param meta the metadata
+     * @param params the parameters
+     * @return the updated metadata
+     */
+    protected IIOMetadata updateMetadata(IIOMetadata meta, ImageWriterParams params) {
+        final String stdmeta = "javax_imageio_1.0";
+        if (meta.isStandardMetadataFormatSupported()) {
+            IIOMetadataNode root = (IIOMetadataNode)meta.getAsTree(stdmeta);
+            IIOMetadataNode dim = getChildNode(root, "Dimension");
+            IIOMetadataNode child;
+            if (params.getResolution() != null) {
+                child = getChildNode(dim, "HorizontalPixelSize");
+                if (child == null) {
+                    child = new IIOMetadataNode("HorizontalPixelSize");
+                    dim.appendChild(child);
+                }
+                child.setAttribute("value", 
+                        Double.toString(params.getResolution().doubleValue() / 25.4));
+                child = getChildNode(dim, "VerticalPixelSize");
+                if (child == null) {
+                    child = new IIOMetadataNode("VerticalPixelSize");
+                    dim.appendChild(child);
+                }
+                child.setAttribute("value", 
+                        Double.toString(params.getResolution().doubleValue() / 25.4));
+            }
+            try {
+                meta.mergeTree(stdmeta, root);
+            } catch (IIOInvalidTreeException e) {
+                throw new RuntimeException("Cannot update image metadata: " 
+                            + e.getMessage());
+            }
+        }
+        return meta;
+    }
+    
+    /**
+     * Returns a specific metadata child node
+     * @param n the base node
+     * @param name the name of the child
+     * @return the requested child node
+     */
+    protected static IIOMetadataNode getChildNode(Node n, String name) {
+        NodeList nodes = n.getChildNodes();
+        for (int i = 0; i < nodes.getLength(); i++) {
+            Node child = nodes.item(i);
+            if (name.equals(child.getNodeName())) {
+                return (IIOMetadataNode)child;
+            }
+        }
+        return null;
+    }
+
+    /**
+     * @see ImageWriter#getMIMEType()
+     */
+    public String getMIMEType() {
+        return this.targetMIME;
+    }
+
+    /**
+     * @see javax.imageio.event.IIOWriteWarningListener#warningOccurred(javax.imageio.ImageWriter, int, java.lang.String)
+     */
+    public void warningOccurred(javax.imageio.ImageWriter source, 
+            int imageIndex, String warning) {
+        System.err.println("Problem while writing image using ImageI/O: " 
+                + warning);
+    }
+}

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/f690ea2f/modules/thirdparty/batik/sources-1.4/org/apache/batik/ext/awt/image/codec/imageio/ImageIOJPEGImageWriter.java
----------------------------------------------------------------------
diff --git a/modules/thirdparty/batik/sources-1.4/org/apache/batik/ext/awt/image/codec/imageio/ImageIOJPEGImageWriter.java b/modules/thirdparty/batik/sources-1.4/org/apache/batik/ext/awt/image/codec/imageio/ImageIOJPEGImageWriter.java
new file mode 100644
index 0000000..b76e8eb
--- /dev/null
+++ b/modules/thirdparty/batik/sources-1.4/org/apache/batik/ext/awt/image/codec/imageio/ImageIOJPEGImageWriter.java
@@ -0,0 +1,161 @@
+/*
+
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You under the Apache License, Version 2.0
+   (the "License"); you may not use this file except in compliance with
+   the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+
+ */
+package org.apache.flex.forks.batik.ext.awt.image.codec.imageio;
+
+import java.awt.image.RenderedImage;
+
+import javax.imageio.ImageWriteParam;
+import javax.imageio.ImageWriter;
+import javax.imageio.metadata.IIOInvalidTreeException;
+import javax.imageio.metadata.IIOMetadata;
+import javax.imageio.metadata.IIOMetadataNode;
+import javax.imageio.plugins.jpeg.JPEGImageWriteParam;
+
+import org.apache.flex.forks.batik.ext.awt.image.spi.ImageWriterParams;
+
+/**
+ * ImageWriter that encodes JPEG images using Image I/O.
+ *
+ * @version $Id: ImageIOJPEGImageWriter.java 502538 2007-02-02 08:52:56Z dvholten $
+ */
+public class ImageIOJPEGImageWriter extends ImageIOImageWriter {
+
+    private static final String JPEG_NATIVE_FORMAT = "javax_imageio_jpeg_image_1.0";
+    
+    /**
+     * Main constructor.
+     */
+    public ImageIOJPEGImageWriter() {
+        super("image/jpeg");
+    }
+ 
+    /**
+     * @see ImageIOImageWriter#updateMetadata(javax.imageio.metadata.IIOMetadata, ImageWriterParams)
+     */
+    protected IIOMetadata updateMetadata(IIOMetadata meta, ImageWriterParams params) {
+        //ImageIODebugUtil.dumpMetadata(meta);
+        if (JPEG_NATIVE_FORMAT.equals(meta.getNativeMetadataFormatName())) {
+            meta = addAdobeTransform(meta);
+
+            IIOMetadataNode root = (IIOMetadataNode)meta.getAsTree(JPEG_NATIVE_FORMAT);
+            //IIOMetadataNode root = new IIOMetadataNode(jpegmeta);
+            
+            IIOMetadataNode jv = getChildNode(root, "JPEGvariety");
+            if (jv == null) {
+                jv = new IIOMetadataNode("JPEGvariety");
+                root.appendChild(jv);
+            }
+            IIOMetadataNode child;
+            if (params.getResolution() != null) {
+                child = getChildNode(jv, "app0JFIF");
+                if (child == null) {
+                    child = new IIOMetadataNode("app0JFIF");
+                    jv.appendChild(child);
+                }
+                //JPEG gets special treatment because there seems to be a bug in
+                //the JPEG codec in ImageIO converting the pixel size incorrectly
+                //(or not at all) when using standard metadata format.
+                child.setAttribute("majorVersion", null);
+                child.setAttribute("minorVersion", null);
+                child.setAttribute("resUnits", "1"); //dots per inch
+                child.setAttribute("Xdensity", params.getResolution().toString());
+                child.setAttribute("Ydensity", params.getResolution().toString());
+                child.setAttribute("thumbWidth", null);
+                child.setAttribute("thumbHeight", null);
+                
+            }
+            
+            /*
+            IIOMetadataNode ms = getChildNode(root, "markerSequence");
+            if (ms == null) {
+                ms = new IIOMetadataNode("markerSequence");
+                root.appendChild(ms);
+            }*/
+            
+            try {
+                meta.setFromTree(JPEG_NATIVE_FORMAT, root);
+                //meta.mergeTree(JPEG_NATIVE_FORMAT, root);
+            } catch (IIOInvalidTreeException e) {
+                throw new RuntimeException("Cannot update image metadata: " 
+                            + e.getMessage(), e);
+            }
+
+            //ImageIODebugUtil.dumpMetadata(meta);
+            
+            //meta = super.updateMetadata(meta, params);
+            //ImageIODebugUtil.dumpMetadata(meta);
+        }
+        
+        return meta;
+    }
+    
+    private static IIOMetadata addAdobeTransform(IIOMetadata meta) {
+        // add the adobe transformation (transform 1 -> to YCbCr)
+        IIOMetadataNode root = (IIOMetadataNode)meta.getAsTree(JPEG_NATIVE_FORMAT);
+
+        IIOMetadataNode markerSequence = getChildNode(root, "markerSequence");
+        if (markerSequence == null) {
+            throw new RuntimeException("Invalid metadata!");
+        }
+
+        IIOMetadataNode adobeTransform = getChildNode(markerSequence, "app14Adobe");
+        if (adobeTransform == null) {
+            adobeTransform = new IIOMetadataNode("app14Adobe");
+            adobeTransform.setAttribute("transform" , "1"); // convert RGB to YCbCr
+            adobeTransform.setAttribute("version", "101");
+            adobeTransform.setAttribute("flags0", "0");
+            adobeTransform.setAttribute("flags1", "0");
+
+            markerSequence.appendChild(adobeTransform);
+        } else {
+            adobeTransform.setAttribute("transform" , "1");
+        }
+
+        try {
+            meta.setFromTree(JPEG_NATIVE_FORMAT, root);
+        } catch (IIOInvalidTreeException e) {
+            throw new RuntimeException("Cannot update image metadata: " 
+                        + e.getMessage(), e);
+        }
+        return meta;
+    }    
+    
+    /**
+     * @see ImageIOImageWriter#getDefaultWriteParam(javax.imageio.ImageWriter, java.awt.image.RenderedImage, ImageWriterParams)
+     */
+    protected ImageWriteParam getDefaultWriteParam(
+            ImageWriter iiowriter, RenderedImage image,
+            ImageWriterParams params) {
+        JPEGImageWriteParam param = new JPEGImageWriteParam(iiowriter.getLocale());
+        //ImageTypeSpecifier type = ImageTypeSpecifier.createFromRenderedImage(image);
+        /*
+        ImageTypeSpecifier type = new ImageTypeSpecifier(
+                image.getColorModel(), image.getSampleModel());
+                */
+        /* didn't work as expected...
+        ImageTypeSpecifier type = ImageTypeSpecifier.createFromBufferedImageType(
+                BufferedImage.TYPE_INT_RGB);
+        param.setDestinationType(type);
+        param.setSourceBands(new int[] {0, 1, 2});
+        */
+        return param;
+    }
+    
+    
+}

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/f690ea2f/modules/thirdparty/batik/sources-1.4/org/apache/batik/ext/awt/image/codec/imageio/ImageIOJPEGRegistryEntry.java
----------------------------------------------------------------------
diff --git a/modules/thirdparty/batik/sources-1.4/org/apache/batik/ext/awt/image/codec/imageio/ImageIOJPEGRegistryEntry.java b/modules/thirdparty/batik/sources-1.4/org/apache/batik/ext/awt/image/codec/imageio/ImageIOJPEGRegistryEntry.java
new file mode 100644
index 0000000..7c51f93
--- /dev/null
+++ b/modules/thirdparty/batik/sources-1.4/org/apache/batik/ext/awt/image/codec/imageio/ImageIOJPEGRegistryEntry.java
@@ -0,0 +1,41 @@
+/*
+
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You under the Apache License, Version 2.0
+   (the "License"); you may not use this file except in compliance with
+   the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+
+ */
+package org.apache.flex.forks.batik.ext.awt.image.codec.imageio;
+
+/**
+ * RegistryEntry implementation for loading JPEG images through Image I/O.
+ *
+ * @version $Id: ImageIOJPEGRegistryEntry.java 502538 2007-02-02 08:52:56Z dvholten $
+ */
+public class ImageIOJPEGRegistryEntry 
+    extends AbstractImageIORegistryEntry {
+
+    static final byte [] sigJPEG   = {(byte)0xFF, (byte)0xd8, 
+                                      (byte)0xFF};
+    static final String [] exts      = {"jpeg", "jpg" };
+    static final String [] mimeTypes = {"image/jpeg", "image/jpg" };
+    static final MagicNumber [] magicNumbers = {
+        new MagicNumber(0, sigJPEG)
+    };
+
+    public ImageIOJPEGRegistryEntry() {
+        super("JPEG", exts, mimeTypes, magicNumbers);
+    }
+
+}

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/f690ea2f/modules/thirdparty/batik/sources-1.4/org/apache/batik/ext/awt/image/codec/imageio/ImageIOPNGImageWriter.java
----------------------------------------------------------------------
diff --git a/modules/thirdparty/batik/sources-1.4/org/apache/batik/ext/awt/image/codec/imageio/ImageIOPNGImageWriter.java b/modules/thirdparty/batik/sources-1.4/org/apache/batik/ext/awt/image/codec/imageio/ImageIOPNGImageWriter.java
new file mode 100644
index 0000000..2ccde4b
--- /dev/null
+++ b/modules/thirdparty/batik/sources-1.4/org/apache/batik/ext/awt/image/codec/imageio/ImageIOPNGImageWriter.java
@@ -0,0 +1,35 @@
+/*
+
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You under the Apache License, Version 2.0
+   (the "License"); you may not use this file except in compliance with
+   the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+
+ */
+package org.apache.flex.forks.batik.ext.awt.image.codec.imageio;
+
+/**
+ * ImageWriter that encodes PNG images using Image I/O.
+ *
+ * @version $Id: ImageIOPNGImageWriter.java 502538 2007-02-02 08:52:56Z dvholten $
+ */
+public class ImageIOPNGImageWriter extends ImageIOImageWriter {
+
+    /**
+     * Main constructor.
+     */
+    public ImageIOPNGImageWriter() {
+        super("image/png");
+    }
+    
+}

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/f690ea2f/modules/thirdparty/batik/sources-1.4/org/apache/batik/ext/awt/image/codec/imageio/ImageIOPNGRegistryEntry.java
----------------------------------------------------------------------
diff --git a/modules/thirdparty/batik/sources-1.4/org/apache/batik/ext/awt/image/codec/imageio/ImageIOPNGRegistryEntry.java b/modules/thirdparty/batik/sources-1.4/org/apache/batik/ext/awt/image/codec/imageio/ImageIOPNGRegistryEntry.java
new file mode 100644
index 0000000..a435a46
--- /dev/null
+++ b/modules/thirdparty/batik/sources-1.4/org/apache/batik/ext/awt/image/codec/imageio/ImageIOPNGRegistryEntry.java
@@ -0,0 +1,36 @@
+/*
+
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You under the Apache License, Version 2.0
+   (the "License"); you may not use this file except in compliance with
+   the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+
+ */
+package org.apache.flex.forks.batik.ext.awt.image.codec.imageio;
+
+/**
+ * RegistryEntry implementation for loading PNG images through Image I/O.
+ *
+ * @version $Id: ImageIOPNGRegistryEntry.java 502538 2007-02-02 08:52:56Z dvholten $
+ */
+public class ImageIOPNGRegistryEntry 
+    extends AbstractImageIORegistryEntry {
+
+
+    static final byte [] signature = {(byte)0x89, 80, 78, 71, 13, 10, 26, 10};
+
+    public ImageIOPNGRegistryEntry() {
+        super("PNG", "png", "image/png", 0, signature);
+    }
+
+}