|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjhplot.jadraw.JaObject
jhplot.jadraw.JaArcObject
public abstract class JaArcObject
The mother of all arc objects.
| 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 | |
|---|---|
JaArcObject()
Constructor: sets the width, height, relative width and height, to a default value of JaObject.INIT_SIZE. |
|
| Method Summary | |
|---|---|
void |
drawHandles(org.freehep.graphics2d.VectorGraphics g2)
Draws the handles of this JaxoArc. |
void |
drawVisualAid(org.freehep.graphics2d.VectorGraphics g2)
Draws a visual aid during the dragging of an arc object. |
boolean |
editPanel()
Brings up the edit panel that allows to change the parameters of this object. |
int |
getAmp()
Returns the amp property of this arc object. |
double[] |
getArcParameters()
|
boolean |
getArrow()
Returns the arrow property of this arc object. |
float |
getDash()
Returns the dash property of this arc object. |
float |
getDLSeparation()
Returns the double line separation of this object. |
boolean |
getDoubleLine()
Returns the double line property. |
boolean |
getEnd()
Returns the end property of this line object. |
boolean |
getFlip()
Returns the flip property of this arc object. |
float |
getFreq()
Returns the freq property of this arc object. |
int |
getGrabbedHandle(int clickX,
int clickY,
int editmode)
Determines which handle the user has selected to move/resize/edit this arc. |
int |
getStangle()
Returns the stangle property of this arc object. |
float |
getStroke()
Returns the stroke property of this arc object. |
int |
getX1()
Returns the x coordinate of the first click point of this arc. |
int |
getX2()
Returns the x coordinate of the second click point of this arc. |
int |
getY1()
Returns the y coordinate of the first click point of this arc. |
int |
getY2()
Returns the y coordinate of the second click point of this arc. |
boolean |
isArrow()
Determines whether the arrow property of this arc object is set or not. |
boolean |
isEnd()
Determines whether the end property of this line object is set or not. |
boolean |
isFlip()
Determines whether the flip property of this arc object is set or not. |
boolean |
isResizing()
Returns the resizing property of this arc. |
String |
latexWidth()
The LaTeX command that sets the width for this Arc, using the axodraw.sty package. |
void |
moveBy(int deltaX,
int deltaY)
Shifts the elements of the vector containing the three click points of this arc. |
void |
rescaleObject(int orx,
int ory,
float scale)
Rescales this JaArcObject by the scale factor scale. |
void |
setAmp(int newAmp)
Sets the amp property of this arc object. |
void |
setArcPts(int sx1,
int sy1,
int sx2,
int sy2,
int sx3,
int sy3)
Sets the points of this arc. |
void |
setArrow(boolean arr)
Sets the arrow property of this arc object. |
void |
setDash(float newDash)
Sets the dash property of this arc object. |
void |
setDLSeparation(float dlsep)
Sets the double line separation property. |
void |
setDoubleLine(boolean dline)
Sets the double line property. |
void |
setEnd(boolean mid)
Sets the end property of this line object. |
void |
setFlip(boolean newFlip)
Sets the flip property of this arc object. |
void |
setFreq(float newFreq)
Sets the freq property of this arc object. |
void |
setIsResizing(boolean ir)
Sets the resizing property of this arc. |
void |
setStangle(int newStangle)
Sets the stangle property of this arc object. |
void |
setStroke(float newStroke)
Sets the stroke property of this arc object. |
void |
setX1(int newx1)
Sets the x coordinate of the first click point of this arc. |
void |
setX2(int newx2)
Sets the x coordinate of the second click point of this arc. |
void |
setY1(int newy1)
Sets the y coordinate of the first click point of this arc. |
void |
setY2(int newy2)
Sets the y coordinate of the second click point of this arc. |
| 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, isCopy, isMarked, isUser, jaxoDraw, latexCommand, 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 JaArcObject()
| Method Detail |
|---|
public final void setIsResizing(boolean ir)
ir - True if this arc id being resized.public final boolean isResizing()
public final void setX1(int newx1)
newx1 - The x coordinate of the first click point of this arc.public final int getX1()
public final void setX2(int newx2)
newx2 - The x coordinate of the second click point of this arc.public final int getX2()
public final void setY1(int newy1)
newy1 - The y coordinate of the first click point of this arc.public final int getY1()
public final void setY2(int newy2)
newy2 - The y coordinate of the second click point of this arc.public final int getY2()
public final void setArcPts(int sx1,
int sy1,
int sx2,
int sy2,
int sx3,
int sy3)
sx1 - The x coordinate of the first click point of this arc.sy1 - The y coordinate of the first click point of this arc.sx2 - The x coordinate of the second click point of this arc.sy2 - The y coordinate of the second click point of this arc.sx3 - The x coordinate of the third click point of this arc.sy3 - The y coordinate of the third click point of this arc.public final float getStroke()
public final void setStroke(float newStroke)
newStroke - The stroke property of this arc object.public final float getDash()
public final void setDash(float newDash)
newDash - The dash property of this arc object.public final float getFreq()
public final void setFreq(float newFreq)
newFreq - The freq property of this arc object.public final int getAmp()
public final void setAmp(int newAmp)
newAmp - The amp property of this arc object.public final int getStangle()
public final void setStangle(int newStangle)
newStangle - The stangle property of this arc object.public final boolean isArrow()
public final boolean getArrow()
public final void setArrow(boolean arr)
arr - The arrow property of this arc object.public final boolean isEnd()
public final boolean getEnd()
public final void setEnd(boolean mid)
mid - The end property of this line object.public final boolean isFlip()
public final boolean getFlip()
public final void setFlip(boolean newFlip)
newFlip - The flip property of this arc 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 separation to be set.public final float getDLSeparation()
public final void drawVisualAid(org.freehep.graphics2d.VectorGraphics g2)
drawVisualAid in class JaObjectg2 - The graphics context to draw to.public final void drawHandles(org.freehep.graphics2d.VectorGraphics g2)
drawHandles in class JaObjectg2 - The corresponding graphics context.public final double[] getArcParameters()
public final int getGrabbedHandle(int clickX,
int clickY,
int editmode)
getGrabbedHandle in class JaObjectclickX - 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 moveBy(int deltaX,
int deltaY)
moveBy in class JaObjectdeltaX - The x displacement.deltaY - The y displacement.
public final void rescaleObject(int orx,
int ory,
float scale)
rescaleObject in class JaObjectorx - The x-coordinate of the fixed point.ory - The y-coordinate of the fixed point.scale - The scale parameter.public final boolean editPanel()
editPanel in class JaObjectpublic final String latexWidth()
latexWidth in class JaObject
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||