Changeset 14328 in josm for trunk/src/com/kitfox/svg/SVGElement.java
- Timestamp:
- 2018-10-14T15:15:50+02:00 (8 years ago)
- File:
-
- 1 edited
-
trunk/src/com/kitfox/svg/SVGElement.java (modified) (14 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/com/kitfox/svg/SVGElement.java
r11525 r14328 156 156 157 157 /** 158 * @param retVec 158 159 * @return an ordered list of nodes from the root of the tree to this node 159 160 */ … … 212 213 * Searches children for given element. If found, returns index of child. 213 214 * Otherwise returns -1. 215 * @param child 216 * @return index of child 214 217 */ 215 218 public int indexOfChild(SVGElement child) … … 221 224 * Swaps 2 elements in children. 222 225 * 223 * @i index of first 224 * @j index of second 225 * 226 * @return true if successful, false otherwise 226 * @param i index of first child 227 * @param j index of second child 228 * @throws com.kitfox.svg.SVGException 227 229 */ 228 230 public void swapChildren(int i, int j) throws SVGException … … 246 248 * @param helper - An object passed to all SVG elements involved in this 247 249 * build process to aid in sharing information. 250 * @param parent 251 * @throws org.xml.sax.SAXException 248 252 */ 249 253 public void loaderStartElement(SVGLoaderHelper helper, Attributes attrs, SVGElement parent) throws SAXException … … 317 321 * Called after the start element but before the end element to indicate 318 322 * each child tag that has been processed 323 * @param helper 324 * @param child 325 * @throws com.kitfox.svg.SVGElementException 319 326 */ 320 327 public void loaderAddChild(SVGLoaderHelper helper, SVGElement child) throws SVGElementException … … 346 353 /** 347 354 * Called during load process to add text scanned within a tag 355 * @param helper 356 * @param text 348 357 */ 349 358 public void loaderAddText(SVGLoaderHelper helper, String text) … … 354 363 * Called to indicate that this tag and the tags it contains have been 355 364 * completely processed, and that it should finish any load processes. 365 * @param helper 366 * @throws com.kitfox.svg.SVGParseException 356 367 */ 357 368 public void loaderEndElement(SVGLoaderHelper helper) throws SVGParseException … … 370 381 * Called by internal processes to rebuild the geometry of this node from 371 382 * it's presentation attributes, style attributes and animated tracks. 383 * @throws com.kitfox.svg.SVGException 372 384 */ 373 385 protected void build() throws SVGException … … 420 432 * Hack to allow nodes to temporarily change their parents. The Use tag will 421 433 * need this so it can alter the attributes that a particular node uses. 434 * @param context 422 435 */ 423 436 protected void pushParentContext(SVGElement context) … … 465 478 * style attribute, checks attributes of parents back to root until one 466 479 * found. 480 * @return 467 481 */ 468 482 public boolean getStyle(StyleAttribute attrib, boolean recursive) throws SVGException … … 523 537 524 538 /** 539 * @param styName 525 540 * @return the raw style value of this attribute. Does not take the 526 541 * presentation value or animation into consideration. Used by animations to … … 536 551 * Copies the presentation attribute into the passed one. 537 552 * 553 * @param attrib 538 554 * @return - True if attribute was read successfully 555 * @throws com.kitfox.svg.SVGException 539 556 */ 540 557 public boolean getPres(StyleAttribute attrib) throws SVGException … … 558 575 559 576 /** 577 * @param styName 560 578 * @return the raw presentation value of this attribute. Ignores any 561 579 * modifications applied by style attributes or animation. Used by … … 810 828 * all attributes with track information. 811 829 * 830 * @param curTime 812 831 * @return - true if this node has changed state as a result of the time 813 832 * update 833 * @throws com.kitfox.svg.SVGException 814 834 */ 815 835 abstract public boolean updateTime(double curTime) throws SVGException;
Note:
See TracChangeset
for help on using the changeset viewer.
