|
||||||||||
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.InteractivePoligon
public class InteractivePoligon
Field Summary | |
---|---|
static int |
ARROW
|
static int |
CIRCLE
|
static int |
DIAMOND
|
static int |
FILLED_ARROW
|
static int |
FILLED_CIRCLE
|
static int |
FILLED_DIAMOND
|
static int |
FILLED_SQUARE
|
static int |
LINE
|
static int |
PLAIN
|
static int |
SQUARE
|
Fields inherited from class org.opensourcephysics.displayejs.AbstractInteractiveElement |
---|
SENSIBILITY |
Fields inherited from interface org.opensourcephysics.displayejs.InteractiveElement |
---|
TARGET_POSITION, TARGET_SIZE |
Constructor Summary | |
---|---|
InteractivePoligon()
|
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)
|
java.lang.String[] |
getColumnNames()
The column names to be used in the data display tool |
double[][] |
getData()
Be warned! Data is stored as coordinates[3][numPoints] or coordinates[2][numPoints] |
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. |
double |
getEndSize()
|
int |
getEndType()
|
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 |
java.lang.String |
getName()
The name of the data |
int |
getNumberOfPoints()
|
Object3D[] |
getObjects3D(DrawingPanel3D _panel)
Returns an array of Objects3D to (sort according to its distance and) draw. |
double[] |
getPoint(int _index)
|
double |
getStartSize()
|
int |
getStartType()
|
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 |
isClosed()
|
boolean |
isMeasured()
Determines if information is available to set min/max values. |
void |
setAllowTable(boolean _allow)
|
void |
setClosed(boolean _closed)
|
void |
setColors(java.awt.Color[] _c)
Sets the color of each individual line of the polygon Notice that setting the colors to a non-null array masks the style edge color. |
void |
setConnected(int _index,
boolean _c)
|
void |
setConnections(boolean[] _c)
|
void |
setData(double[][] _data)
|
void |
setEndSize(double _size)
|
void |
setEndType(int _type)
|
void |
setID(int id)
Sets the ID number of this Data. |
void |
setName(java.lang.String _name)
|
void |
setNeumatic(double _dash)
|
void |
setNumberOfPoints(int _n)
|
void |
setPointSizeEnabled(int _index,
boolean _enabled)
|
void |
setPointSizeEnableds(boolean[] _enabled)
|
void |
setShapesEdgeColor(java.awt.Color _c)
|
void |
setShapesEdgeColor(java.lang.Object[] _c)
|
void |
setShapesFillColor(java.awt.Color _c)
|
void |
setShapesFillColor(java.lang.Object[] _c)
|
void |
setShapesSize(int _c)
|
void |
setShapesSize(int[] _c)
|
void |
setShapesType(int _c)
|
void |
setShapesType(int[] _c)
|
void |
setStartSize(double _size)
|
void |
setStartType(int _type)
|
void |
setXs(double _data)
|
void |
setXs(double[] _data)
|
void |
setYs(double _data)
|
void |
setYs(double[] _data)
|
void |
setZs(double _data)
|
void |
setZs(double[] _data)
|
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 |
Field Detail |
---|
public static final int PLAIN
public static final int CIRCLE
public static final int DIAMOND
public static final int SQUARE
public static final int ARROW
public static final int LINE
public static final int FILLED_CIRCLE
public static final int FILLED_DIAMOND
public static final int FILLED_SQUARE
public static final int FILLED_ARROW
Constructor Detail |
---|
public InteractivePoligon()
Method Detail |
---|
public void copyFrom(InteractiveElement _element)
copyFrom
in interface InteractiveElement
copyFrom
in class AbstractInteractiveElement
public void setNumberOfPoints(int _n)
public int getNumberOfPoints()
public void setStartType(int _type)
public int getStartType()
public void setStartSize(double _size)
public double getStartSize()
public void setEndType(int _type)
public int getEndType()
public void setEndSize(double _size)
public double getEndSize()
public void setNeumatic(double _dash)
public void setClosed(boolean _closed)
public boolean isClosed()
public void setAllowTable(boolean _allow)
public void setData(double[][] _data)
public double[][] getData()
public double[] getPoint(int _index)
public void setXs(double[] _data)
public void setXs(double _data)
public void setYs(double[] _data)
public void setYs(double _data)
public void setZs(double[] _data)
public void setZs(double _data)
public void setConnections(boolean[] _c)
public void setConnected(int _index, boolean _c)
public void setPointSizeEnableds(boolean[] _enabled)
public void setPointSizeEnabled(int _index, boolean _enabled)
public void setColors(java.awt.Color[] _c)
_c
- Color[]public void setName(java.lang.String _name)
public java.lang.String getName()
Data
getName
in interface Data
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 void setShapesType(int[] _c)
public void setShapesType(int _c)
public void setShapesSize(int[] _c)
public void setShapesSize(int _c)
public void setShapesEdgeColor(java.lang.Object[] _c)
public void setShapesEdgeColor(java.awt.Color _c)
public void setShapesFillColor(java.lang.Object[] _c)
public void setShapesFillColor(java.awt.Color _c)
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 |