electronDensity
Class Circle

java.lang.Object
  extended by electronDensity.Circle

public class Circle
extends java.lang.Object

This class paints a circle on the electron density plot

Copyright (c) 2001,2008 David N. Blauch

Version:
1.0
Author:
David N. Blauch

Constructor Summary
Circle()
           
Circle(double _x, double _y)
           
Circle(double _x, double _y, int _dia)
           
Circle(double _x, double _y, int _dia, java.awt.Color _color)
           
Circle(double _x, double _y, int _dia, java.awt.Color _color, boolean _fill)
           
 
Method Summary
 void paintCircle(java.awt.Graphics g, double h, int x0, int y0)
          Paints the circle
 void setColor(java.awt.Color _color)
           
 void setColor(int red, int green, int blue)
           
 void setDiameter(int _dia)
           
 void setFill(boolean _fill)
           
 void setPosition(double _x, double _y)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Circle

public Circle()

Circle

public Circle(double _x,
              double _y)

Circle

public Circle(double _x,
              double _y,
              int _dia)

Circle

public Circle(double _x,
              double _y,
              int _dia,
              java.awt.Color _color)

Circle

public Circle(double _x,
              double _y,
              int _dia,
              java.awt.Color _color,
              boolean _fill)
Method Detail

setPosition

public void setPosition(double _x,
                        double _y)

setColor

public void setColor(java.awt.Color _color)

setColor

public void setColor(int red,
                     int green,
                     int blue)

setDiameter

public void setDiameter(int _dia)

setFill

public void setFill(boolean _fill)

paintCircle

public void paintCircle(java.awt.Graphics g,
                        double h,
                        int x0,
                        int y0)
Paints the circle

Parameters:
h - pixel width in plot
x0 - pixel position of x = 0
y0 - pixel position of y = 0