/** * Initialize the Graphics object. */ private void initGraphics() { if (base.dimension == 2) { graphics = new Graphics(new Projection2D(this)); } else { graphics = new Graphics(new Projection3D(this)); } }
double[] sc1 = ((Projection2D) (graphics.projection)).inverseProjection(mouseClickX, mouseClickY); double[] sc2 = ((Projection2D) (graphics.projection)).inverseProjection(e.getX(), e.getY());
} else { String tooltip = null; double[] sc = ((Projection2D) (graphics.projection)).inverseProjection(e.getX(), e.getY());