You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-commits@xmlgraphics.apache.org by ca...@apache.org on 2007/11/13 02:08:31 UTC
svn commit: r594379 [1/3] - in /xmlgraphics/batik/trunk/sources/org:
apache/batik/apps/svgbrowser/ apache/batik/ext/awt/image/renderable/
apache/batik/gvt/font/ apache/batik/i18n/ apache/batik/svggen/
apache/batik/swing/ apache/batik/util/ apache/batik...
Author: cam
Date: Mon Nov 12 17:08:28 2007
New Revision: 594379
URL: http://svn.apache.org/viewvc?rev=594379&view=rev
Log:
Minor Javadoc fixes, unnecessary cast removals.
Modified:
xmlgraphics/batik/trunk/sources/org/apache/batik/apps/svgbrowser/AbstractUndoableCommand.java
xmlgraphics/batik/trunk/sources/org/apache/batik/apps/svgbrowser/DOMDocumentTree.java
xmlgraphics/batik/trunk/sources/org/apache/batik/apps/svgbrowser/ElementOverlayManager.java
xmlgraphics/batik/trunk/sources/org/apache/batik/apps/svgbrowser/HistoryBrowser.java
xmlgraphics/batik/trunk/sources/org/apache/batik/apps/svgbrowser/NodePickerPanel.java
xmlgraphics/batik/trunk/sources/org/apache/batik/ext/awt/image/renderable/FilterChainRable8Bit.java
xmlgraphics/batik/trunk/sources/org/apache/batik/gvt/font/SVGGVTGlyphVector.java
xmlgraphics/batik/trunk/sources/org/apache/batik/i18n/LocalizableSupport.java
xmlgraphics/batik/trunk/sources/org/apache/batik/svggen/SVGBufferedImageOp.java
xmlgraphics/batik/trunk/sources/org/apache/batik/swing/JSVGCanvas.java
xmlgraphics/batik/trunk/sources/org/apache/batik/util/ClassFileUtilities.java
xmlgraphics/batik/trunk/sources/org/apache/batik/util/gui/DropDownComponent.java
xmlgraphics/batik/trunk/sources/org/gjt/sp/jedit/textarea/InputHandler.java
xmlgraphics/batik/trunk/sources/org/gjt/sp/jedit/textarea/JEditTextArea.java
xmlgraphics/batik/trunk/sources/org/gjt/sp/jedit/textarea/TextAreaPainter.java
xmlgraphics/batik/trunk/sources/org/gjt/sp/jedit/textarea/TokenMarker.java
Modified: xmlgraphics/batik/trunk/sources/org/apache/batik/apps/svgbrowser/AbstractUndoableCommand.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/org/apache/batik/apps/svgbrowser/AbstractUndoableCommand.java?rev=594379&r1=594378&r2=594379&view=diff
==============================================================================
--- xmlgraphics/batik/trunk/sources/org/apache/batik/apps/svgbrowser/AbstractUndoableCommand.java (original)
+++ xmlgraphics/batik/trunk/sources/org/apache/batik/apps/svgbrowser/AbstractUndoableCommand.java Mon Nov 12 17:08:28 2007
@@ -47,7 +47,7 @@
/**
* Sets the command name.
*
- * @param newName
+ * @param name
* Name to set
*/
public void setName(String name) {
Modified: xmlgraphics/batik/trunk/sources/org/apache/batik/apps/svgbrowser/DOMDocumentTree.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/org/apache/batik/apps/svgbrowser/DOMDocumentTree.java?rev=594379&r1=594378&r2=594379&view=diff
==============================================================================
--- xmlgraphics/batik/trunk/sources/org/apache/batik/apps/svgbrowser/DOMDocumentTree.java (original)
+++ xmlgraphics/batik/trunk/sources/org/apache/batik/apps/svgbrowser/DOMDocumentTree.java Mon Nov 12 17:08:28 2007
@@ -705,7 +705,7 @@
return null;
}
if (flavor.equals(NODE_FLAVOR)) {
- return (Object) data;
+ return data;
} else if (flavor.equals(DataFlavor.stringFlavor)) {
return data.getNodesAsXML();
} else {
@@ -727,7 +727,7 @@
/**
* Creates the TransferData.
*
- * @param nodes
+ * @param nodeList
* the nodeList
*/
public TransferData(ArrayList nodeList) {
@@ -861,7 +861,7 @@
/**
* Adds the listener to the listener list.
*
- * @param l
+ * @param listener
* The listener to add
*/
public void addListener(DOMDocumentTreeListener listener) {
Modified: xmlgraphics/batik/trunk/sources/org/apache/batik/apps/svgbrowser/ElementOverlayManager.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/org/apache/batik/apps/svgbrowser/ElementOverlayManager.java?rev=594379&r1=594378&r2=594379&view=diff
==============================================================================
--- xmlgraphics/batik/trunk/sources/org/apache/batik/apps/svgbrowser/ElementOverlayManager.java (original)
+++ xmlgraphics/batik/trunk/sources/org/apache/batik/apps/svgbrowser/ElementOverlayManager.java Mon Nov 12 17:08:28 2007
@@ -255,10 +255,9 @@
}
/**
- * Sets the elementOverlayColor.
+ * Sets the color to use for the element overlay.
*
- * @param elementOverlayColor
- * the elementOverlayColor to set
+ * @param selectionOverlayColor The new element overlay color.
*/
public void setElementOverlayColor(Color selectionOverlayColor) {
this.elementOverlayColor = selectionOverlayColor;
@@ -274,10 +273,10 @@
}
/**
- * Sets the elementOverlayStrokeColor.
+ * Sets the color to use for stroking the element overlay.
*
- * @param elementOverlayStrokeColor
- * the elementOverlayStrokeColor to set
+ * @param selectionOverlayStrokeColor
+ * The new element overlay stroking color.
*/
public void setElementOverlayStrokeColor
(Color selectionOverlayStrokeColor) {
Modified: xmlgraphics/batik/trunk/sources/org/apache/batik/apps/svgbrowser/HistoryBrowser.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/org/apache/batik/apps/svgbrowser/HistoryBrowser.java?rev=594379&r1=594378&r2=594379&view=diff
==============================================================================
--- xmlgraphics/batik/trunk/sources/org/apache/batik/apps/svgbrowser/HistoryBrowser.java (original)
+++ xmlgraphics/batik/trunk/sources/org/apache/batik/apps/svgbrowser/HistoryBrowser.java Mon Nov 12 17:08:28 2007
@@ -356,7 +356,7 @@
/**
* Adds the listener to the listener list.
*
- * @param l
+ * @param listener
* The listener to add
*/
public void addListener(HistoryBrowserListener listener) {
Modified: xmlgraphics/batik/trunk/sources/org/apache/batik/apps/svgbrowser/NodePickerPanel.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/org/apache/batik/apps/svgbrowser/NodePickerPanel.java?rev=594379&r1=594378&r2=594379&view=diff
==============================================================================
--- xmlgraphics/batik/trunk/sources/org/apache/batik/apps/svgbrowser/NodePickerPanel.java (original)
+++ xmlgraphics/batik/trunk/sources/org/apache/batik/apps/svgbrowser/NodePickerPanel.java Mon Nov 12 17:08:28 2007
@@ -1206,7 +1206,7 @@
/**
* Adds the listener to the listener list.
*
- * @param l
+ * @param listener
* The listener to add
*/
public void addListener(NodePickerListener listener) {
Modified: xmlgraphics/batik/trunk/sources/org/apache/batik/ext/awt/image/renderable/FilterChainRable8Bit.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/org/apache/batik/ext/awt/image/renderable/FilterChainRable8Bit.java?rev=594379&r1=594378&r2=594379&view=diff
==============================================================================
--- xmlgraphics/batik/trunk/sources/org/apache/batik/ext/awt/image/renderable/FilterChainRable8Bit.java (original)
+++ xmlgraphics/batik/trunk/sources/org/apache/batik/ext/awt/image/renderable/FilterChainRable8Bit.java Mon Nov 12 17:08:28 2007
@@ -202,7 +202,7 @@
* parameters.
*/
public Filter getSource() {
- return (Filter)crop;
+ return crop;
}
/**
Modified: xmlgraphics/batik/trunk/sources/org/apache/batik/gvt/font/SVGGVTGlyphVector.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/org/apache/batik/gvt/font/SVGGVTGlyphVector.java?rev=594379&r1=594378&r2=594379&view=diff
==============================================================================
--- xmlgraphics/batik/trunk/sources/org/apache/batik/gvt/font/SVGGVTGlyphVector.java (original)
+++ xmlgraphics/batik/trunk/sources/org/apache/batik/gvt/font/SVGGVTGlyphVector.java Mon Nov 12 17:08:28 2007
@@ -603,7 +603,7 @@
}
if (j != glyphs.length) {
Glyph bg = glyphs[j];
- float rEdge = (float)(currentX + bg.getHorizAdvX());
+ float rEdge = currentX + bg.getHorizAdvX();
for (int k=i; k<j; k++) {
g = glyphs[k];
g.setTransform(null);
Modified: xmlgraphics/batik/trunk/sources/org/apache/batik/i18n/LocalizableSupport.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/org/apache/batik/i18n/LocalizableSupport.java?rev=594379&r1=594378&r2=594379&view=diff
==============================================================================
--- xmlgraphics/batik/trunk/sources/org/apache/batik/i18n/LocalizableSupport.java (original)
+++ xmlgraphics/batik/trunk/sources/org/apache/batik/i18n/LocalizableSupport.java Mon Nov 12 17:08:28 2007
@@ -238,7 +238,7 @@
* Here for backwards compatability
*/
public ResourceBundle getResourceBundle() {
- return (ResourceBundle)getResourceBundle(0);
+ return getResourceBundle(0);
}
protected boolean hasNextResourceBundle(int i) {
Modified: xmlgraphics/batik/trunk/sources/org/apache/batik/svggen/SVGBufferedImageOp.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/org/apache/batik/svggen/SVGBufferedImageOp.java?rev=594379&r1=594378&r2=594379&view=diff
==============================================================================
--- xmlgraphics/batik/trunk/sources/org/apache/batik/svggen/SVGBufferedImageOp.java (original)
+++ xmlgraphics/batik/trunk/sources/org/apache/batik/svggen/SVGBufferedImageOp.java Mon Nov 12 17:08:28 2007
@@ -116,11 +116,11 @@
if(filterDesc == null){
if(op instanceof LookupOp)
- filterDesc = svgLookupOp.toSVG((LookupOp)op, filterRect);
+ filterDesc = svgLookupOp.toSVG(op, filterRect);
else if(op instanceof RescaleOp)
- filterDesc = svgRescaleOp.toSVG((RescaleOp)op, filterRect);
+ filterDesc = svgRescaleOp.toSVG(op, filterRect);
else if(op instanceof ConvolveOp)
- filterDesc = svgConvolveOp.toSVG((ConvolveOp)op, filterRect);
+ filterDesc = svgConvolveOp.toSVG(op, filterRect);
}
return filterDesc;
Modified: xmlgraphics/batik/trunk/sources/org/apache/batik/swing/JSVGCanvas.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/org/apache/batik/swing/JSVGCanvas.java?rev=594379&r1=594378&r2=594379&view=diff
==============================================================================
--- xmlgraphics/batik/trunk/sources/org/apache/batik/swing/JSVGCanvas.java (original)
+++ xmlgraphics/batik/trunk/sources/org/apache/batik/swing/JSVGCanvas.java Mon Nov 12 17:08:28 2007
@@ -20,7 +20,7 @@
import java.awt.Dimension;
import java.awt.EventQueue;
-import java.awt.Rectangle;
+// import java.awt.Rectangle;
import java.awt.event.ActionEvent;
import java.awt.event.InputEvent;
import java.awt.event.KeyEvent;
@@ -53,7 +53,7 @@
import org.apache.batik.swing.gvt.AbstractRotateInteractor;
import org.apache.batik.swing.gvt.AbstractZoomInteractor;
import org.apache.batik.swing.gvt.Interactor;
-import org.apache.batik.swing.gvt.Overlay;
+// import org.apache.batik.swing.gvt.Overlay;
import org.apache.batik.swing.svg.JSVGComponent;
import org.apache.batik.swing.svg.SVGDocumentLoaderEvent;
import org.apache.batik.swing.svg.SVGUserAgent;
@@ -64,7 +64,7 @@
// import org.apache.batik.util.gui.ElementOverlayManager;
import org.apache.batik.util.gui.JErrorPane;
-import org.w3c.dom.Document;
+// import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
import org.w3c.dom.events.Event;