|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jaxodraw.object.JaxoObject
net.sf.jaxodraw.object.JaxoExtendedObject
net.sf.jaxodraw.object.JaxoParticleObject
public abstract class JaxoParticleObject
The mother of all particle objects (arcs, lines and loops).
| Field Summary | |
|---|---|
static float |
GHOST_DASH
Default dash for ghost objects. |
static float |
GLUON_FREQ
Default frequency for gluon objects. |
static float |
PHOTON_FREQ
Default frequency for photon objects. |
static float |
SCALAR_DASH
Default dash for scalar objects. |
| Fields inherited from class net.sf.jaxodraw.object.JaxoExtendedObject |
|---|
SELECT_DX, SELECT_DY, SELECT_P2 |
| Fields inherited from class net.sf.jaxodraw.object.JaxoObject |
|---|
D_FORMAT, GRAY_SCALE_FORMAT, SELECT_NONE, SELECT_P1 |
| Constructor Summary | |
|---|---|
JaxoParticleObject()
Constructor. |
|
| Method Summary | |
|---|---|
abstract JaxoArrow.Coordinates |
arrowCoordinates()
Returns the coordinates of the arrow of the current object. |
boolean |
arrowPositionIs(float comp)
Compares the arrowPosition of this JaxoParticleObject to the given float, taking into account a 0.1% error margin. |
JaxoObject |
copy()
Returns an exact copy of the given JaxoObject. |
void |
copyFrom(JaxoParticleObject temp)
Sets all parameters from the given object to the current one. |
boolean |
dashIs(float comp)
Compares the dash of this JaxoParticleObject to the given float, taking into account a 0.1% error margin. |
boolean |
dlSepIs(float comp)
Compares the dlSeparation of this JaxoParticleObject to the given float, taking into account a 0.1% error margin. |
int |
getAmp()
Returns the amp property of this particle object. |
JaxoArrow |
getArrow()
Returns the arrow of this particle object. |
float |
getArrowPosition()
Returns the arrowPosition property of this particle object. |
float |
getDash()
Returns the dash property of this particle object. |
float |
getDLSeparation()
Returns the double line separation of this object. |
int |
getWiggles()
Returns the wiggles property of this particle object. |
boolean |
isCopy(JaxoObject comp)
Determines if this JaxoObject is a copy of the specified one. |
boolean |
isDoubleLine()
Returns the double line property. |
boolean |
isFlip()
Returns the flip property of this particle object. |
boolean |
isPaintArrow()
Determines whether the arrow property of this particle object is set or not. |
protected void |
paintArrow(JaxoGraphics2D g2)
Paints an arrow on this object. |
void |
setAmp(int newAmp)
Sets the amp property of this particle object. |
void |
setArrow(JaxoArrow newArrow)
Sets the dash property of this particle object. |
void |
setArrowPosition(float newArrowPosition)
Sets the arrowPosition property of this particle object. |
void |
setDash(float newDash)
Sets the dash property of this particle object. |
void |
setDLSeparation(float dlsep)
Sets the double line separation property. |
void |
setDoubleLine(boolean dline)
Sets the double line property. |
void |
setFlip(boolean newFlip)
Sets the flip property of this particle object. |
void |
setPaintArrow(boolean arr)
Sets the arrow property of this particle object. |
void |
setPreferences()
Applies default values to this JaxoObject. |
void |
setState(JaxoObject o)
Restore state to the values of 'o'. |
void |
setWiggles(int newWiggles)
Sets the wiggles property of this particle object. |
| Methods inherited from class net.sf.jaxodraw.object.JaxoExtendedObject |
|---|
canBeSelected, copyFrom, getGrabbedHandle, getHeight, getPointCount, getRadius, getRelh, getRelSize, getRelw, getSize, getStroke, getStrokeWidth, getWidth, getX, getX2, getY, getY2, latexWidth, moveBy, paintHandles, resetStroke, setLocation, setRadius, setRelativeHeight, setRelativeWidth, setRelWAndH, setStroke, setStrokeWidth, setX, setX2, setY, setY2, smallestDistanceTo, strokeIs |
| Methods inherited from class net.sf.jaxodraw.object.JaxoObject |
|---|
addPropertyChangeListener, contains, contains, contains, contains, copyFrom, firePropertyChange, getBounds2D, getBoundsWithHandles, getColor, getGeneralPath, getLaTexLocation, getName, getPathIterator, getPathIterator, getPoints, getX, getY, intersects, intersects, isAround, isMarked, latexCommand, paint, paintVisualAid, prepareEditPanel, propertyChange, removePropertyChangeListener, rescaleObject, setAsMarked, setColor, setLocation, setParameter, setParameter, setParameter, setParameter, setParameter, setParameter, setParameter, setPointCount, setPoints, setTransient, setX, setXPosition, setY, setYPosition |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.awt.Shape |
|---|
getBounds |
| Field Detail |
|---|
public static final float PHOTON_FREQ
public static final float GLUON_FREQ
public static final float SCALAR_DASH
public static final float GHOST_DASH
| Constructor Detail |
|---|
public JaxoParticleObject()
| Method Detail |
|---|
public JaxoObject copy()
copy in class JaxoObjectpublic final int getWiggles()
public final void setWiggles(int newWiggles)
newWiggles - The wiggles property of this particle object.public final float getDash()
public final void setDash(float newDash)
newDash - The dash property of this particle object.public final int getAmp()
public final void setAmp(int newAmp)
newAmp - The amp property of this particle object.public final boolean isPaintArrow()
public final void setPaintArrow(boolean arr)
arr - The arrow property of this particle object.public final boolean isFlip()
public final void setFlip(boolean newFlip)
newFlip - The flip property of this particle object.public final float getArrowPosition()
public final void setArrowPosition(float newArrowPosition)
newArrowPosition - The new arrowPosition property
measured as a float number between 0 and 1.public final void setDoubleLine(boolean dline)
dline - The double line boolean variable.public final boolean isDoubleLine()
public final void setDLSeparation(float dlsep)
dlsep - The double line separation to be set.public final float getDLSeparation()
public final JaxoArrow getArrow()
public final void setArrow(JaxoArrow newArrow)
newArrow - The arrow of this particle object.public boolean isCopy(JaxoObject comp)
isCopy in class JaxoExtendedObjectcomp - The JaxoObject to compare against.
public void copyFrom(JaxoParticleObject temp)
temp - The object to copy from.public void setState(JaxoObject o)
JaxoObject.copy().
setState in class JaxoExtendedObjecto - the object to copy from.public void setPreferences()
preferences.
setPreferences in class JaxoExtendedObjectpublic final boolean dashIs(float comp)
comp - The float to compare to.
public final boolean dlSepIs(float comp)
comp - The float to compare to.
public final boolean arrowPositionIs(float comp)
comp - The float to compare to.
protected void paintArrow(JaxoGraphics2D g2)
g2 - The graphics context.public abstract JaxoArrow.Coordinates arrowCoordinates()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||