Data, Element, Group, InteractionSourceSetpublic class Group extends Element implements Group
Title: Group
Description: A Group is an element that is made of other elements.
The group's position, size, visibility and transformation do affect the elements in the group. The group's style doesn't, though.Style| Modifier and Type | Class | Description |
|---|---|---|
protected static class |
Group.Loader |
| Modifier and Type | Field | Description |
|---|---|---|
protected int |
datasetID |
an integer ID that identifies this object
|
TARGET_POSITION, TARGET_SIZEtargetPosition, targetSize| Constructor | Description |
|---|---|
Group() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
addElement(Element element) |
Adds an Element to this Group.
|
void |
addElements(java.util.Collection<Element> elements) |
|
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.
|
Element |
getElement(int index) |
Gets the elements of the group at a given index.
|
java.util.List<Element> |
getElements() |
Gets the cloned list of Elements in the group.
|
void |
getExtrema(double[] min,
double[] max) |
Returns the extreme points of a box that contains the element.
|
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
|
static XML.ObjectLoader |
getLoader() |
|
InteractionTarget |
getTargetHit(int x,
int y) |
Gets the target that is under the (x,y) position of the screen
|
void |
removeAllElements() |
Removes all Elements from this Group
|
void |
removeElement(Element element) |
Removes an Element from this Group
|
void |
setID(int id) |
Sets the ID number of this Data.
|
getDrawingPanel3D, getName, getSizeX, getSizeY, getSizeZ, getStyle, getTransformation, getX, getY, getZ, isVisible, loadUnmutableObjects, setName, setSizeX, setSizeXYZ, setSizeXYZ, setSizeY, setSizeZ, setTransformation, setVisible, setX, setXYZ, setXYZ, setY, setZ, toBodyFrame, toSpaceFrameaddInteractionListener, getAxesMode, getDrawingPanel3D, getHotSpotBodyCoordinates, getInteractionTarget, getName, getSizeX, getSizeY, getSizeZ, getStyle, getTransformation, getX, getY, getZ, isReallyVisible, isVisible, loadUnmutableObjects, removeInteractionListener, setName, setSizeX, setSizeXYZ, setSizeXYZ, setSizeY, setSizeZ, setTransformation, setVisible, setX, setXYZ, setXYZ, setY, setZ, toBodyFrame, toSpaceFrameaddInteractionListener, getInteractionTarget, removeInteractionListenerpublic void addElement(Element element)
GroupaddElement in interface Groupelement - ElementElementpublic void addElements(java.util.Collection<Element> elements)
public void removeElement(Element element)
GroupremoveElement in interface Groupelement - ElementElementpublic void removeAllElements()
GroupremoveAllElements in interface GroupElementpublic java.util.List<Element> getElements()
GroupgetElements in interface Grouppublic Element getElement(int index)
GroupgetElement in interface Grouppublic void getExtrema(double[] min,
double[] max)
Elementmin - double[] A previously allocated double[3] array that will hold
the minimum pointmax - double[] A previously allocated double[3] array that will hold
the maximum pointpublic InteractionTarget getTargetHit(int x, int y)
ElementgetTargetHit in class Elementx - inty - intpublic void setID(int id)
public int getID()
public double[][] getData2D()
Datapublic double[][][] getData3D()
Datapublic java.lang.String[] getColumnNames()
DatagetColumnNames in interface Datapublic java.awt.Color[] getLineColors()
DatagetLineColors in interface Datapublic java.awt.Color[] getFillColors()
DatagetFillColors in interface Datapublic java.util.List<Data> getDataList()
DatagetDataList in interface Datapublic java.util.ArrayList<Dataset> getDatasets()
DatagetDatasets in interface Datapublic static XML.ObjectLoader getLoader()