|
|||||||||
| PREV CLASS NEXT CLASS | All Classes | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjhplot.jadraw.JaObject
jhplot.jadraw.JaLineObject
public abstract class JaLineObject
A general line 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 | |
|---|---|
JaLineObject()
Constructor: sets the width, height, relative width and height, to a default value of JaObject.INIT_SIZE. |
|
| Method Summary | |
|---|---|
void |
baseEditPanel(japlot.jaxodraw.JaxoLineOptionsPanel lineop)
Adds components to the edit panel that are common to all line objects. |
void |
drawHandles(org.freehep.graphics2d.VectorGraphics g2)
Draws the handles of this line object. |
int |
getAmp()
Returns the amp property of this line object. |
boolean |
getArrow()
Returns the arrow property of this line object. |
boolean |
getBack()
Returns the back property of this line object. |
float |
getDash()
Returns the dash property of this line object. |
float |
getDLSeparation()
Returns the double line property. |
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 line object. |
float |
getFreq()
Returns the freq property of this line object. |
int |
getGrabbedHandle(int clickX,
int clickY,
int editmode)
Determines which handle the user has selected to move/resize/edit this line. |
boolean |
getInflip()
Returns the inflip property of this line object. |
float |
getStroke()
Returns the stroke property of this line object. |
boolean |
getSymm()
Returns the symm property of this line object. |
boolean |
isArrow()
Determines whether the arrow property of this line object is set or not. |
boolean |
isBack()
Determines whether the back property of this line 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 line object is set or not. |
boolean |
isInflip()
Determines whether the inflip property of this line object is set or not. |
boolean |
isSymm()
Determines whether the symm property of this line object is set or not. |
String |
latexWidth()
The LaTeX command that sets the width for this Line, using the axodraw.sty package. |
void |
rescaleObject(int orx,
int ory,
float scale)
Rescales this JaxoLine by the scale factor scale, keeping the point (orx, ory) fixed. |
void |
setAmp(int newAmp)
Sets the amp property of this line object. |
void |
setArrow(boolean arr)
Sets the arrow property of this line object. |
void |
setBack(boolean newBack)
Sets the back property of this line object. |
void |
setDash(float newDash)
Sets the dash property of this line object. |
void |
setDLSeparation(float dlsep)
Sets the double line 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 line object. |
void |
setFreq(float newFreq)
Sets the freq property of this line object. |
void |
setInflip(boolean newInflip)
Sets the inflip property of this line object. |
void |
setStroke(float newStroke)
Sets the stroke property of this line object. |
void |
setSymm(boolean newSymm)
Sets the symm property of this line object. |
| Methods inherited from class jhplot.jadraw.JaObject |
|---|
copy, drawVisualAid, editPanel, getBoundingBox, getColor, getGeneralPath, getHeight, getRelh, getRelHndc, getRelHuser, getRelSize, getRelw, getRelWndc, getRelWuser, getSize, getWidth, getX, getXndc, getXuser, getY, getYndc, getYuser, isCopy, 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 JaLineObject()
| Method Detail |
|---|
public final float getStroke()
public final void setStroke(float newStroke)
newStroke - The stroke property of this line object.public final float getDash()
public final void setDash(float newDash)
newDash - The dash property of this line object.public final float getFreq()
public final void setFreq(float newFreq)
newFreq - The freq property of this line object.public final boolean isArrow()
public final boolean getArrow()
public final void setArrow(boolean arr)
arr - The arrow property of this line 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 line object.public final boolean isBack()
public final boolean getBack()
public final void setBack(boolean newBack)
newBack - The back property of this line object.public final boolean isInflip()
public final boolean getInflip()
public final void setInflip(boolean newInflip)
newInflip - The inflip property of this line object.public final boolean isSymm()
public final boolean getSymm()
public final void setSymm(boolean newSymm)
newSymm - The symm property of this line object.public final int getAmp()
public final void setAmp(int newAmp)
newAmp - The amp property of this line 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 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 drawHandles(org.freehep.graphics2d.VectorGraphics g2)
drawHandles in class JaObjectg2 - The current graphics context
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 void baseEditPanel(japlot.jaxodraw.JaxoLineOptionsPanel lineop)
lineop - The option panel of the line object.public final String latexWidth()
latexWidth in class JaObject
|
|||||||||
| PREV CLASS NEXT CLASS | All Classes | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||