1 18 package org.apache.batik.gvt; 19 20 import java.awt.Composite ; 21 import java.awt.Graphics2D ; 22 import java.awt.RenderingHints ; 23 import java.awt.Shape ; 24 import java.awt.geom.AffineTransform ; 25 import java.awt.geom.Point2D ; 26 import java.awt.geom.Rectangle2D ; 27 import java.lang.ref.WeakReference ; 28 import java.util.Map ; 29 30 import org.apache.batik.ext.awt.image.renderable.ClipRable; 31 import org.apache.batik.ext.awt.image.renderable.Filter; 32 import org.apache.batik.gvt.filter.Mask; 33 34 43 public interface GraphicsNode { 44 45 49 public static final int VISIBLE_PAINTED = 0; 50 51 55 public static final int VISIBLE_FILL = 1; 56 57 61 public static final int VISIBLE_STROKE = 2; 62 63 67 public static final int VISIBLE = 3; 68 69 73 public static final int PAINTED = 4; 74 75 79 public static final int FILL = 5; 80 81 85 public static final int STROKE = 6; 86 87 91 public static final int ALL = 7; 92 93 96 public static final int NONE = 8; 97 98 101 public static final AffineTransform IDENTITY = new AffineTransform (); 102 103 107 WeakReference getWeakReference(); 108 109 113 119 int getPointerEventType(); 120 121 127 void setPointerEventType(int pointerEventType); 128 129 134 void setTransform(AffineTransform newTransform); 135 136 139 AffineTransform getTransform(); 140 141 144 AffineTransform getInverseTransform(); 145 146 150 AffineTransform getGlobalTransform(); 151 152 157 void setComposite(Composite newComposite); 158 159 162 Composite getComposite(); 163 164 169 void setVisible(boolean isVisible); 170 171 174 boolean isVisible(); 175 176 181 void setClip(ClipRable newClipper); 182 183 186 ClipRable getClip(); 187 188 196 void setRenderingHint(RenderingHints.Key key, Object value); 197 198 204 void setRenderingHints(Map hints); 205 206 211 void setRenderingHints(RenderingHints newHints); 212 213 216 RenderingHints getRenderingHints(); 217 218 223 void setMask(Mask newMask); 224 225 228 Mask getMask(); 229 230 235 void setFilter(Filter newFilter); 236 237 240 Filter getFilter(); 241 242 247 Filter getGraphicsNodeRable(boolean createIfNeeded); 248 249 254 Filter getEnableBackgroundGraphicsNodeRable(boolean createIfNeeded); 255 256 260 265 void paint(Graphics2D g2d); 266 267 272 void primitivePaint(Graphics2D g2d); 273 274 278 282 284 290 292 298 300 306 308 314 316 321 323 328 330 336 338 342 345 CompositeGraphicsNode getParent(); 346 347 351 RootGraphicsNode getRoot(); 352 353 357 361 Rectangle2D getBounds(); 362 363 370 Rectangle2D getTransformedBounds(AffineTransform txf); 371 372 377 Rectangle2D getPrimitiveBounds(); 378 379 387 Rectangle2D getTransformedPrimitiveBounds(AffineTransform txf); 388 389 395 Rectangle2D getGeometryBounds(); 396 397 407 Rectangle2D getTransformedGeometryBounds(AffineTransform txf); 408 409 414 Rectangle2D getSensitiveBounds(); 415 416 426 Rectangle2D getTransformedSensitiveBounds(AffineTransform txf); 427 428 434 boolean contains(Point2D p); 435 436 442 boolean intersects(Rectangle2D r); 443 444 450 GraphicsNode nodeHitAt(Point2D p); 451 452 455 Shape getOutline(); 456 } 457 | Popular Tags |