Class JaxoDashLoop
java.lang.Object
net.sf.jaxodraw.object.JaxoObject
net.sf.jaxodraw.object.JaxoExtendedObject
net.sf.jaxodraw.object.JaxoParticleObject
net.sf.jaxodraw.object.loop.JaxoLoopObject
net.sf.jaxodraw.object.loop.JaxoDashLoop
- All Implemented Interfaces:
Shape, PropertyChangeListener, Serializable, Cloneable, EventListener
-
Field Summary
Fields inherited from class JaxoParticleObject
GHOST_DASH, GLUON_FREQ, PHOTON_FREQ, SCALAR_DASHFields inherited from class JaxoExtendedObject
SELECT_DX, SELECT_DY, SELECT_P2Fields inherited from class JaxoObject
D_FORMAT, GRAY_SCALE_FORMAT, SELECT_NONE, SELECT_P1 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetAxo4JOptions(float scale) Return the option part of the LaTeX command for this line.Returns the bounding box of this object.protected GeneralPathGet the GeneralPath that paints this loop.protected abstract float[]innerStrokeDashes(double radius) Returns an array that is used as the dash parameter inBasicStroketo paint the inner part of this loop in double-line mode.protected abstract float[]outerStrokeDashes(double radius) Returns an array that is used as the dash parameter inBasicStroketo paint the outer part of this loop in double-line mode.final voidpaint(JaxoGraphics2D g2) The method that paints the JaxoObject.protected voidResets the stroke to a default BasicStroke with current width.protected abstract float[]Returns an array that is used as the dash parameter inBasicStroketo paint this object.Methods inherited from class JaxoLoopObject
arrowCoordinates, copy, getEquidistantPoints, getLaTexAngles, getLaTexCenter, getLaTexRadius, isCopy, latexCommand, paintVisualAid, rescaleObjectMethods inherited from class JaxoParticleObject
arrowPositionIs, copy, copyFrom, dashIs, dlSepIs, getAmp, getArrow, getArrowPosition, getDash, getDLSeparation, getWiggles, isDoubleLine, isFlip, isPaintArrow, paintArrow, setAmp, setArrow, setArrowPosition, setDash, setDLSeparation, setDoubleLine, setFlip, setPaintArrow, setPreferences, setState, setWigglesMethods inherited from class JaxoExtendedObject
canBeSelected, copyFrom, getGrabbedHandle, getHeight, getPointCount, getRadius, getRelh, getRelSize, getRelw, getSize, getStroke, getStrokeWidth, getWidth, getX, getX2, getY, getY2, latexWidth, moveBy, paintHandles, setLocation, setRadius, setRelativeHeight, setRelativeWidth, setRelWAndH, setStroke, setStrokeWidth, setX, setX2, setY, setY2, smallestDistanceTo, strokeIsMethods inherited from class JaxoObject
addPropertyChangeListener, contains, contains, contains, contains, copyFrom, firePropertyChange, getBounds2D, getBoundsWithHandles, getColor, getGeneralPath, getLaTexLocation, getName, getPathIterator, getPathIterator, getPoints, getX, getY, intersects, intersects, isAround, isMarked, prepareEditPanel, propertyChange, removePropertyChangeListener, setAsMarked, setColor, setLocation, setParameter, setParameter, setParameter, setParameter, setParameter, setParameter, setParameter, setPointCount, setPoints, setTransient, setX, setXPosition, setY, setYPosition
-
Constructor Details
-
JaxoDashLoop
public JaxoDashLoop()
-
-
Method Details
-
paint
The method that paints the JaxoObject.- Overrides:
paintin classJaxoLoopObject- Parameters:
g2- The graphics context where the object has to be painted.
-
getBounds
Returns the bounding box of this object.- Specified by:
getBoundsin interfaceShape- Overrides:
getBoundsin classJaxoLoopObject- Returns:
- the bounding box of this object.
-
resetStroke
protected void resetStroke()Resets the stroke to a default BasicStroke with current width. This should be overridden by objects that use a different stroke.- Overrides:
resetStrokein classJaxoExtendedObject
-
getObjectPath
Get the GeneralPath that paints this loop.- Specified by:
getObjectPathin classJaxoLoopObject- Returns:
- GeneralPath. May be null for an object that cannot be painted.
-
getAxo4JOptions
Return the option part of the LaTeX command for this line.- Specified by:
getAxo4JOptionsin classJaxoLoopObject- Parameters:
scale- the axodraw4j scale factor.- Returns:
- the option String.
-
strokeDashes
protected abstract float[] strokeDashes()Returns an array that is used as the dash parameter inBasicStroketo paint this object.- Returns:
- a dash array.
-
innerStrokeDashes
protected abstract float[] innerStrokeDashes(double radius) Returns an array that is used as the dash parameter inBasicStroketo paint the inner part of this loop in double-line mode.- Parameters:
radius- the radius.- Returns:
- a dash array.
-
outerStrokeDashes
protected abstract float[] outerStrokeDashes(double radius) Returns an array that is used as the dash parameter inBasicStroketo paint the outer part of this loop in double-line mode.- Parameters:
radius- the radius.- Returns:
- a dash array.
-