|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opensourcephysics.drawing2d.Element org.opensourcephysics.drawing2d.ElementSegment org.opensourcephysics.drawing2d.ElementArrow
public class ElementArrow
Title: ElementArrow
Description: An arrow.
Field Summary | |
---|---|
static int |
ARROW
The element has an arrow head |
static int |
BOX
The element has a box at its top |
static int |
RHOMBUS
The element looks like a double triangle with a width set by the width percentage. |
static int |
SEGMENT
The element looks like a segment |
static int |
TRIANGLE
The element looks like a triangle with a width set by the width percentage |
Fields inherited from class org.opensourcephysics.drawing2d.Element |
---|
TARGET_POSITION, TARGET_SIZE |
Constructor Summary | |
---|---|
ElementArrow()
|
Method Summary | |
---|---|
void |
draw(DrawingPanel _panel,
java.awt.Graphics _g)
Draws the element on a given Graphics2D. |
int |
getArrowType()
Returns the arrow type |
void |
setArrowType(int _type)
Set the type of decoration at the head of the arrow. |
Methods inherited from class org.opensourcephysics.drawing2d.ElementSegment |
---|
findInteractive |
Methods inherited from class org.opensourcephysics.drawing2d.Element |
---|
addInteractionListener, getCanBeMeasured, getDataObject, getInteractionTarget, getName, getPanel, getPosition, getSize, getSizeX, getSizeY, getStyle, getTransformation, getX, getXMax, getXMaxLogscale, getXMin, getXMinLogscale, getY, getYMax, getYMaxLogscale, getYMin, getYMinLogscale, hasChanged, invokeActions, isEnabled, isMeasured, isVisible, removeInteractionListener, setCanBeMeasured, setDataObject, setElementChanged, setEnabled, setName, setNeedToProject, setPanel, setPosition, setSize, setSizeX, setSizeXY, setSizeY, setTransformation, setVisible, setX, setXY, setY, toBodyFrame, toSpaceFrame, updateHotSpot |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int ARROW
public static final int SEGMENT
public static final int BOX
public static final int TRIANGLE
public static final int RHOMBUS
Constructor Detail |
---|
public ElementArrow()
Method Detail |
---|
public void setArrowType(int _type)
public int getArrowType()
public void draw(DrawingPanel _panel, java.awt.Graphics _g)
Element
draw
in interface Drawable
draw
in class ElementSegment
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |