|
||||||||||
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.InteractiveTrace
public class InteractiveTrace
Field Summary | |
---|---|
static int |
AREA
|
static int |
BAR
|
static int |
ORDER_OF_APPEARANCE
|
static int |
POST
|
static int |
SHOW_ALL
|
static int |
X_COORDINATE
|
static int |
Y_COORDINATE
|
static int |
Z_COORDINATE
|
Fields inherited from class org.opensourcephysics.displayejs.AbstractInteractiveElement |
---|
SENSIBILITY |
Fields inherited from interface org.opensourcephysics.displayejs.InteractiveElement |
---|
TARGET_POSITION, TARGET_SIZE |
Constructor Summary | |
---|---|
InteractiveTrace()
Default constructor |
Method Summary | |
---|---|
void |
addPoint(double xInput,
double yInput)
|
void |
addPoint(double xInput,
double yInput,
double zInput)
|
void |
addPoints(double[] xInput,
double[] yInput)
|
void |
addPoints(double[] xInput,
double[] yInput,
double[] zInput)
|
void |
clear()
|
void |
copyFrom(InteractiveElement _element)
|
void |
draw(DrawingPanel3D _panel,
java.awt.Graphics2D _g,
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)
|
java.lang.String[] |
getColumnNames()
The column names to be used in the data display tool |
double[][] |
getData2D()
Gets a 2D array of data. |
double[][][] |
getData3D()
Gets a 3D array of data. |
java.util.List<Data> |
getDataList()
Some Data objects (e.g., a Group) do not contain data, but a list of Data objects which do. |
java.util.ArrayList<Dataset> |
getDatasets()
Gets a list of OSP Datasets. |
java.awt.Color[] |
getFillColors()
Fill color to use for this data |
int |
getID()
Returns a unique identifier for this Data. |
java.awt.Color[] |
getLineColors()
Line color to use for this data |
int |
getMaximumPoints()
|
java.awt.Color |
getMemoryColor()
|
int |
getMemoryDrivenBy()
|
int |
getMemorySets()
|
java.lang.String |
getName()
The name of the data |
Object3D[] |
getObjects3D(DrawingPanel3D _panel)
Returns an array of Objects3D to (sort according to its distance and) draw. |
int |
getSkip()
|
double |
getXMax()
Gets the maximum x needed to draw this object. |
double |
getXMaxLogscale()
Gets the maximum x needed to draw this object on a log scale. |
double |
getXMin()
Gets the minimum x needed to draw this object. |
double |
getXMinLogscale()
Gets the minimum x needed to draw this object on a log scale. |
double |
getYMax()
Gets the maximum y needed to draw this object. |
double |
getYMaxLogscale()
Gets the maximum y needed to draw this object on a log scale on a log scale. |
double |
getYMin()
Gets the minimum y needed to draw this object. |
double |
getYMinLogscale()
Gets the minimum y needed to draw this object on a log scale. |
double |
getZMax()
Gets the maximum z needed to draw this object. |
double |
getZMin()
Gets the minimum z needed to draw this object. |
void |
initialize()
|
void |
initializeMemberOfSet()
Special initialization when used as a memeber of a Set |
boolean |
isActive()
|
boolean |
isClearAtInput()
|
boolean |
isConnected()
|
boolean |
isIgnoreEqualPoints()
|
boolean |
isMeasured()
Determines if information is available to set min/max values. |
void |
moveToPoint(double xInput,
double yInput)
|
void |
moveToPoint(double xInput,
double yInput,
double zInput)
|
void |
setActive(boolean acceptInput)
|
void |
setAllowTable(boolean _allow)
|
void |
setClearAtInput(boolean _clear)
|
void |
setConnected(boolean connect)
|
void |
setID(int id)
Sets the ID number of this Data. |
void |
setIgnoreEqualPoints(boolean ignoreEqual)
|
void |
setMaximumPoints(int _n)
|
void |
setMemoryColor(java.awt.Color _color)
|
void |
setMemoryDrivenBy(int driving)
|
void |
setMemorySets(int howMany)
|
void |
setName(java.lang.String _name)
|
void |
setShapeSize(int _size)
Set the size of the marker |
void |
setShapeType(int _type)
Set the type of the marker |
void |
setSkip(int howMany)
|
void |
setXLabel(java.lang.String _label)
Sets the label of the X coordinate when the data is displayed in a table |
void |
setYLabel(java.lang.String _label)
Sets the label of the Y coordinate when the data is displayed in a table |
void |
setZLabel(java.lang.String _label)
Sets the label of the Z coordinate when the data is displayed in a table |
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, 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 |
Field Detail |
---|
public static final int SHOW_ALL
public static final int ORDER_OF_APPEARANCE
public static final int X_COORDINATE
public static final int Y_COORDINATE
public static final int Z_COORDINATE
public static final int BAR
public static final int POST
public static final int AREA
Constructor Detail |
---|
public InteractiveTrace()
Method Detail |
---|
public void setName(java.lang.String _name)
public java.lang.String getName()
Data
getName
in interface Data
public void copyFrom(InteractiveElement _element)
copyFrom
in interface InteractiveElement
copyFrom
in class AbstractInteractiveElement
public void initializeMemberOfSet()
InteractiveElement
initializeMemberOfSet
in interface InteractiveElement
initializeMemberOfSet
in class AbstractInteractiveElement
public void setMaximumPoints(int _n)
public int getMaximumPoints()
public void setConnected(boolean connect)
public boolean isConnected()
public void setIgnoreEqualPoints(boolean ignoreEqual)
public boolean isIgnoreEqualPoints()
public void setActive(boolean acceptInput)
public boolean isActive()
public void setClearAtInput(boolean _clear)
public boolean isClearAtInput()
public void setSkip(int howMany)
public int getSkip()
public void setMemorySets(int howMany)
public int getMemorySets()
public void setMemoryDrivenBy(int driving)
public int getMemoryDrivenBy()
public void setMemoryColor(java.awt.Color _color)
public java.awt.Color getMemoryColor()
public void setAllowTable(boolean _allow)
public void setXLabel(java.lang.String _label)
_label
- public void setYLabel(java.lang.String _label)
_label
- public void setZLabel(java.lang.String _label)
_label
- public void clear()
public void initialize()
public void addPoint(double xInput, double yInput)
public void addPoints(double[] xInput, double[] yInput)
public void addPoint(double xInput, double yInput, double zInput)
public void addPoints(double[] xInput, double[] yInput, double[] zInput)
public void moveToPoint(double xInput, double yInput)
public void moveToPoint(double xInput, double yInput, double zInput)
public void setShapeType(int _type)
public void setShapeSize(int _size)
public void setID(int id)
setID
in interface Data
id
- the ID numberpublic int getID()
getID
in interface Data
public double[][] getData2D()
Data
getData2D
in interface Data
public double[][][] getData3D()
Data
getData3D
in interface Data
public java.lang.String[] getColumnNames()
Data
getColumnNames
in interface Data
public java.awt.Color[] getLineColors()
Data
getLineColors
in interface Data
public java.awt.Color[] getFillColors()
Data
getFillColors
in interface Data
public java.util.List<Data> getDataList()
Data
getDataList
in interface Data
public java.util.ArrayList<Dataset> getDatasets()
Data
getDatasets
in interface Data
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 _g, 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 double getXMinLogscale()
LogMeasurable
getXMinLogscale
in interface LogMeasurable
public double getXMaxLogscale()
LogMeasurable
getXMaxLogscale
in interface LogMeasurable
public double getYMinLogscale()
LogMeasurable
getYMinLogscale
in interface LogMeasurable
public double getYMaxLogscale()
LogMeasurable
getYMaxLogscale
in interface LogMeasurable
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 |