|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opensourcephysics.displayejs.AbstractInteractiveElement org.opensourcephysics.displayejs.InteractivePoints
public class InteractivePoints
Field Summary |
---|
Fields inherited from class org.opensourcephysics.displayejs.AbstractInteractiveElement |
---|
SENSIBILITY |
Fields inherited from interface org.opensourcephysics.displayejs.InteractiveElement |
---|
TARGET_POSITION, TARGET_SIZE |
Constructor Summary | |
---|---|
InteractivePoints()
|
Method Summary | |
---|---|
void |
copyFrom(InteractiveElement _element)
|
void |
draw(DrawingPanel3D _panel,
java.awt.Graphics2D _g2,
int _index)
Draws a given Object3D (indicated by its index). |
void |
draw(DrawingPanel _panel,
java.awt.Graphics _g)
Draws a representation of an object in a drawing panel. |
Interactive |
findInteractive(DrawingPanel _panel,
int _xpix,
int _ypix)
|
double[][] |
getData()
|
int |
getNumberOfPoints()
|
Object3D[] |
getObjects3D(DrawingPanel3D _panel)
Returns an array of Objects3D to (sort according to its distance and) draw. |
java.awt.Color |
getPointColor(int index)
Returns the color of the point with that index |
double |
getXMax()
Gets the maximum x needed to draw this object. |
double |
getXMin()
Gets the minimum x needed to draw this object. |
double |
getYMax()
Gets the maximum y needed to draw this object. |
double |
getYMin()
Gets the minimum y needed to draw this object. |
double |
getZMax()
Gets the maximum z needed to draw this object. |
double |
getZMin()
Gets the minimum z needed to draw this object. |
boolean |
isMeasured()
Determines if information is available to set min/max values. |
void |
setColors(java.awt.Color[] colors)
Allow for setting individual colors to each point |
void |
setColors(int[] colors)
Allow for setting individual colors to each point |
void |
setData(double[][] _data)
|
void |
setWidths(double[] widths)
Allow for setting individual widths to each point |
void |
setWidths(int[] widths)
Allow for setting individual widths to each point |
Methods inherited from class org.opensourcephysics.displayejs.AbstractInteractiveElement |
---|
addListener, canBeMeasured, drawQuickly, getControl, getDataObject, getGroup, getResolution, getSensitivity, getSet, getSetIndex, getSizeX, getSizeY, getSizeZ, getStyle, getX, getY, getZ, initializeMemberOfSet, invokeActions, isEnabled, isEnabled, isGroupEnabled, isGroupEnabled, isVisible, needsToProject, removeAllListeners, removeListener, setControl, setDataObject, setEnabled, setEnabled, setGroup, setGroupEnabled, setGroupEnabled, setResolution, setSensitivity, setSet, setSizeX, setSizeXY, setSizeXYZ, setSizeY, setSizeZ, setVisible, setX, setXY, setXYZ, setY, setZ, toXML |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InteractivePoints()
Method Detail |
---|
public void copyFrom(InteractiveElement _element)
copyFrom
in interface InteractiveElement
copyFrom
in class AbstractInteractiveElement
public int getNumberOfPoints()
public void setData(double[][] _data)
public double[][] getData()
public void setColors(java.awt.Color[] colors)
colors
- null if all points should be of the same color (given by style)public void setColors(int[] colors)
colors
- null if all points should be of the same color (given by style)public java.awt.Color getPointColor(int index)
index
-
public void setWidths(int[] widths)
widths
- null if all points should be of the same width (given by style)public void setWidths(double[] widths)
widths
- null if all points should be of the same width (given by style)public Interactive findInteractive(DrawingPanel _panel, int _xpix, int _ypix)
findInteractive
in interface Interactive
findInteractive
in class AbstractInteractiveElement
public Object3D[] getObjects3D(DrawingPanel3D _panel)
Drawable3D
getObjects3D
in interface Drawable3D
getObjects3D
in class AbstractInteractiveElement
public void draw(DrawingPanel3D _panel, java.awt.Graphics2D _g2, int _index)
Drawable3D
draw
in interface Drawable3D
draw
in class AbstractInteractiveElement
public void draw(DrawingPanel _panel, java.awt.Graphics _g)
Drawable
draw
in interface Drawable
draw
in class AbstractInteractiveElement
public boolean isMeasured()
Measurable
isMeasured
in interface Measurable
isMeasured
in class AbstractInteractiveElement
public double getXMin()
Measurable
getXMin
in interface Measurable
getXMin
in class AbstractInteractiveElement
public double getXMax()
Measurable
getXMax
in interface Measurable
getXMax
in class AbstractInteractiveElement
public double getYMin()
Measurable
getYMin
in interface Measurable
getYMin
in class AbstractInteractiveElement
public double getYMax()
Measurable
getYMax
in interface Measurable
getYMax
in class AbstractInteractiveElement
public double getZMin()
Measurable3D
getZMin
in interface Measurable3D
getZMin
in class AbstractInteractiveElement
public double getZMax()
Measurable3D
getZMax
in interface Measurable3D
getZMax
in class AbstractInteractiveElement
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |