Changeset 11525 in josm for trunk/src/com/kitfox/svg/SVGRoot.java
- Timestamp:
- 2017-02-02T00:08:08+01:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/com/kitfox/svg/SVGRoot.java
r10787 r11525 93 93 } 94 94 95 @Override 95 96 public String getTagName() 96 97 { … … 98 99 } 99 100 101 @Override 100 102 public void build() throws SVGException 101 103 { … … 163 165 } 164 166 167 @Override 165 168 public SVGRoot getRoot() 166 169 { … … 262 265 { 263 266 prepareViewport(); 264 267 265 268 Rectangle targetViewport = g.getClipBounds(); 266 269 // 270 // if (targetViewport == null) 271 // { 272 // Dimension size = Toolkit.getDefaultToolkit().getScreenSize(); 273 // targetViewport = new Rectangle(0, 0, size.width, size.height); 274 // } 275 // clipRect.setRect(targetViewport); 276 277 267 278 Rectangle deviceViewport = diagram.getDeviceViewport(); 268 279 if (width != null && height != null) … … 294 305 else 295 306 { 307 // Dimension size = Toolkit.getDefaultToolkit().getScreenSize(); 308 // targetViewport = new Rectangle(0, 0, size.width, size.height); 296 309 targetViewport = new Rectangle(deviceViewport); 297 310 } … … 319 332 } 320 333 321 public void pick(Rectangle2D pickArea, AffineTransform ltw, boolean boundingBox, List retVec) throws SVGException 334 @Override 335 public void pick(Rectangle2D pickArea, AffineTransform ltw, boolean boundingBox, List<List<SVGElement>> retVec) throws SVGException 322 336 { 323 337 if (viewXform != null) … … 330 344 } 331 345 332 public void pick(Point2D point, boolean boundingBox, List retVec) throws SVGException 346 @Override 347 public void pick(Point2D point, boolean boundingBox, List<List<SVGElement>> retVec) throws SVGException 333 348 { 334 349 Point2D xPoint = new Point2D.Double(point.getX(), point.getY()); … … 347 362 } 348 363 364 @Override 349 365 public Shape getShape() 350 366 { … … 353 369 } 354 370 371 @Override 355 372 public Rectangle2D getBoundingBox() throws SVGException 356 373 { … … 381 398 * update 382 399 */ 400 @Override 383 401 public boolean updateTime(double curTime) throws SVGException 384 402 {
Note:
See TracChangeset
for help on using the changeset viewer.