|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjhplot.jadraw.JaObject
jhplot.jadraw.JaLoopObject
public abstract class JaLoopObject
A general loop object.
Field Summary |
---|
Fields inherited from class jhplot.jadraw.JaObject |
---|
BB_MAX_X, BB_MAX_Y, BB_MIN_X, BB_MIN_Y, COPY, D_FORMAT, INIT_SIZE, LENGTH, MOVE, RESIZE, SELECT_BODY, SELECT_LL, SELECT_LR, SELECT_NONE, SELECT_P1, SELECT_P2, SELECT_P3, SELECT_UL, SELECT_UR |
Constructor Summary | |
---|---|
JaLoopObject()
Constructor: sets the width, height, relative width and height, to a default value of JaObject.INIT_SIZE. |
Method Summary | |
---|---|
JaObject |
copy(JaLoopObject temp)
Returns an exact copy of this JaxoLoop. |
void |
drawHandles(org.freehep.graphics2d.VectorGraphics g2)
Draws the handles of this loop object. |
void |
drawVisualAid(org.freehep.graphics2d.VectorGraphics g2)
Draws a visual aid during the dragging of a loop object, which is a red cross at the center. |
boolean |
editPanel()
Brings up the edit panel that allows to change the parameters of this object. |
int |
getAmp()
Returns the amp property of this loop object. |
boolean |
getArrow()
Returns the arrow property of this loop object. |
float |
getDash()
Returns the dash property of this loop object. |
float |
getDLSeparation()
Returns the double line property. |
boolean |
getDoubleLine()
Returns the double line property. |
boolean |
getFlip()
Returns the flip property of this loop object. |
float |
getFreq()
Returns the freq property of this loop object. |
int |
getGrabbedHandle(int clickX,
int clickY,
int editmode)
Determines which handle the user has selected to move/resize/edit this loop. |
float |
getStroke()
Returns the stroke property of this loop object. |
boolean |
isArrow()
Determines whether the arrow property of this loop object is set or not. |
boolean |
isCopy(JaObject comp)
Returns true if all serializable variables of this JaLoopObject and those of the specified one are equal. |
boolean |
isFlip()
Determines whether the flip property of this loop object is set or not. |
java.lang.String |
latexWidth()
The LaTeX command that sets the width for this Loop, using the axodraw.sty package. |
void |
rescaleObject(int orx,
int ory,
float scale)
Rescales this JaxoLoop by the scale factor scale, keeping the point (orx, ory) fixed. |
void |
setAmp(int newAmp)
Sets the amp property of this loop object. |
void |
setArrow(boolean arr)
Sets the arrow property of this loop object. |
void |
setDash(float newDash)
Sets the dash property of this loop object. |
void |
setDLSeparation(float dlsep)
Sets the double line property. |
void |
setDoubleLine(boolean dline)
Sets the double line property. |
void |
setFlip(boolean newFlip)
Sets the flip property of this loop object. |
void |
setFreq(float newFreq)
Sets the freq property of this loop object. |
void |
setStroke(float newStroke)
Sets the stroke property of this loop object. |
Methods inherited from class jhplot.jadraw.JaObject |
---|
copy, getBoundingBox, getColor, getGeneralPath, getHeight, getRelh, getRelHndc, getRelHuser, getRelSize, getRelw, getRelWndc, getRelWuser, getSize, getWidth, getX, getXndc, getXuser, getY, getYndc, getYuser, isMarked, isUser, jaxoDraw, latexCommand, moveBy, scalePoint, setAsMarked, setBoundingBox, setColor, setLocation, setLocation, setRelh, setRelw, setRelWAndH, setRelWH, setSize, setX, setY, updateCoor, updateNDC |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JaLoopObject()
Method Detail |
---|
public final JaObject copy(JaLoopObject temp)
temp
- An instance of the loop to copy to (since this is an abstract
class, we have to provide an instance of a sub-class).
public boolean isCopy(JaObject comp)
isCopy
in class JaObject
comp
- A JaLoopObject to compare with.
public final float getStroke()
public final void setStroke(float newStroke)
newStroke
- The stroke property of this loop object.public final float getDash()
public final void setDash(float newDash)
newDash
- The dash property of this loop object.public final float getFreq()
public final void setFreq(float newFreq)
newFreq
- The freq property of this loop object.public final int getAmp()
public final void setAmp(int newAmp)
newAmp
- The amp property of this loop object.public final boolean isArrow()
public final boolean getArrow()
public final void setArrow(boolean arr)
arr
- The arrow property of this loop object.public final boolean isFlip()
public final boolean getFlip()
public final void setFlip(boolean newFlip)
newFlip
- The flip property of this loop object.public final void setDoubleLine(boolean dline)
dline
- The double line boolean variable.public final boolean getDoubleLine()
public final void setDLSeparation(float dlsep)
dlsep
- The double line property.public final float getDLSeparation()
public final void drawVisualAid(org.freehep.graphics2d.VectorGraphics g2)
drawVisualAid
in class JaObject
g2
- The graphics context to draw to.public final void drawHandles(org.freehep.graphics2d.VectorGraphics g2)
drawHandles
in class JaObject
g2
- The current graphics context.public final int getGrabbedHandle(int clickX, int clickY, int editmode)
getGrabbedHandle
in class JaObject
clickX
- The x coordinate where the mouse click has ocurred.clickY
- The y coordinate where the mouse click has ocurred.editmode
- The current edit mode.
public final void rescaleObject(int orx, int ory, float scale)
rescaleObject
in class JaObject
orx
- The x-coordinate of the fixed pointory
- The y-coordinate of the fixed pointscale
- The scale parameterpublic final boolean editPanel()
editPanel
in class JaObject
public final java.lang.String latexWidth()
latexWidth
in class JaObject
|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |