@Override public Point translateJava2DToScreen(Point2D java2DPoint){
  Insets insets=getInsets();
  int x=(int)(java2DPoint.getX() * this.scaleX + insets.left);
  int y=(int)(java2DPoint.getY() * this.scaleY + insets.top);
  return new Point(x,y);
}

@ Override public Point translateJava2DToScreen ( Point2D java2DPoint ) { Insets insets = getInsets ( ) ; int x = ( int ) ( java2DPoint . getX ( ) * this . scaleX + insets . left ) ; int y = ( int ) ( java2DPoint . getY ( ) * this . scaleY + insets . top ) ; return new Point ( x , y ) ; }
translates a java2d point on the chart to a screen location .
