()
| 453 | |
| 454 | |
| 455 | protected void parseImage() { |
| 456 | kind = RECT; |
| 457 | textureMode = NORMAL; |
| 458 | |
| 459 | family = PRIMITIVE; |
| 460 | params = new float[] { |
| 461 | getFloatWithUnit(element, "x", svgWidth), |
| 462 | getFloatWithUnit(element, "y", svgHeight), |
| 463 | getFloatWithUnit(element, "width", svgWidth), |
| 464 | getFloatWithUnit(element, "height", svgHeight) |
| 465 | }; |
| 466 | |
| 467 | this.imagePath = element.getString("xlink:href"); |
| 468 | } |
| 469 | |
| 470 | /** |
| 471 | * Parse a polyline or polygon from an SVG file. |
no test coverage detected