Class JaxoDashLine
java.lang.Object
net.sf.jaxodraw.object.JaxoObject
net.sf.jaxodraw.object.JaxoExtendedObject
net.sf.jaxodraw.object.JaxoParticleObject
net.sf.jaxodraw.object.line.JaxoLineObject
net.sf.jaxodraw.object.line.JaxoDashLine
- All Implemented Interfaces:
Shape, PropertyChangeListener, Serializable, Cloneable, EventListener
-
Field Summary
Fields inherited from class JaxoLineObject
SELECT_P0Fields 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.protected GeneralPathGet the GeneralPath that paints this line.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 JaxoLineObject
arrowCoordinates, canBeSelected, getBounds, getGrabbedHandle, getLatexDLOffSet, getLaTexEndPoint, getLaTexStartPoint, isCopy, latexCommand, length, paint, paintHandles, rescaleObject, setState, smallestDistanceToMethods 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, setWigglesMethods inherited from class JaxoExtendedObject
copyFrom, getHeight, getPointCount, getRadius, getRelh, getRelSize, getRelw, getSize, getStroke, getStrokeWidth, getWidth, getX, getX2, getY, getY2, latexWidth, moveBy, setLocation, setRadius, setRelativeHeight, setRelativeWidth, setRelWAndH, setStroke, setStrokeWidth, setX, setX2, setY, setY2, 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, paintVisualAid, prepareEditPanel, propertyChange, removePropertyChangeListener, setAsMarked, setColor, setLocation, setParameter, setParameter, setParameter, setParameter, setParameter, setParameter, setParameter, setPointCount, setPoints, setTransient, setX, setXPosition, setY, setYPosition
-
Constructor Details
-
JaxoDashLine
public JaxoDashLine()
-
-
Method Details
-
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 line.- Specified by:
getObjectPathin classJaxoLineObject- Returns:
- GeneralPath.
-
strokeDashes
protected abstract float[] strokeDashes()Returns an array that is used as the dash parameter inBasicStroketo paint this object.- Returns:
- a dash array.
-
getAxo4JOptions
Return the option part of the LaTeX command for this line.- Specified by:
getAxo4JOptionsin classJaxoLineObject- Parameters:
scale- the axodraw4j scale factor.- Returns:
- the option String.
-