1 18 package org.apache.batik.gvt; 19 20 import java.awt.geom.Point2D ; 21 22 30 public class Marker { 31 32 37 protected double orient; 38 39 42 protected GraphicsNode markerNode; 43 44 47 protected Point2D ref; 48 49 56 public Marker(GraphicsNode markerNode, Point2D ref, double orient){ 57 58 if (markerNode == null) { 59 throw new IllegalArgumentException (); 60 } 61 62 if (ref == null) { 63 throw new IllegalArgumentException (); 64 } 65 66 this.markerNode = markerNode; 67 this.ref = ref; 68 this.orient = orient; 69 } 70 71 74 public Point2D getRef(){ 75 return (Point2D )ref.clone(); 76 } 77 78 81 public double getOrient(){ 82 return orient; 83 } 84 85 88 public GraphicsNode getMarkerNode(){ 89 return markerNode; 90 } 91 } 92 | Popular Tags |