|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ajc.esim.core.Charge
com.ajc.esim.core.LineCharge
public class LineCharge
Not currently in use. This class represents a 2D rectangular charge. It is not currently implemented due to the complexity of the math required to calculate the force it exerts.
sci.core.Charge
,
Serialized FormNested Class Summary |
---|
Nested classes/interfaces inherited from class com.ajc.esim.core.Charge |
---|
Charge.ChargeType |
Field Summary |
---|
Fields inherited from class com.ajc.esim.core.Charge |
---|
isSel, myShape |
Constructor Summary | |
---|---|
LineCharge(double charge,
double x,
double y,
double w,
double l)
|
Method Summary | |
---|---|
boolean |
checkClick(java.awt.event.MouseEvent e)
Checks to see if this was clicked on. |
double |
getHeight()
Gets the height of the charge, default is 1/2 of getSize(), can be overridden |
double |
getLength()
Gets the length of the charge, default is 1/2 of getSize(), can be overridden |
double |
getSize()
Size of charge for painting, currently set at 16. |
double |
getX()
|
double |
getY()
|
boolean |
isInside(double x,
double y)
Needs to be overridden by implementing classes |
void |
paint(java.awt.Graphics g)
Paint method, to be overridden by implementing classes |
void |
reBuildShape()
Builder for shape object, to be overridden by implementing classes |
void |
setHeight(double width)
|
void |
setLength(double length)
|
Methods inherited from class com.ajc.esim.core.Charge |
---|
compareTo, drawOutline, getCharge, getChargeText, getPaintX, getPaintY, getType, setCharge, setType, setX, setY, toStringShort |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LineCharge(double charge, double x, double y, double w, double l)
Method Detail |
---|
public boolean checkClick(java.awt.event.MouseEvent e)
Charge
checkClick
in class Charge
e
- MouseEvent, passed from Launcher.win
public double getHeight()
Charge
getHeight
in class Charge
Charge.getSize()
public double getLength()
Charge
getLength
in class Charge
Charge.getSize()
public double getSize()
Charge
getSize
in class Charge
public double getX()
getX
in class Charge
public double getY()
getY
in class Charge
public boolean isInside(double x, double y)
Charge
isInside
in class Charge
x
- X location of point to checky
- Y location of point to check
public void paint(java.awt.Graphics g)
Charge
paint
in class Charge
g
- Graphics object for paintingpublic void reBuildShape()
Charge
reBuildShape
in class Charge
Charge.myShape
public void setHeight(double width)
public void setLength(double length)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |