|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.swri.swiftvis.plot.PlotSpec
public class PlotSpec
This is the serializable class for all the specifications that are used by the standard PlotSurface. It includes a collection of PlotObjects that are structured as a tree. It also has a reference to the Plot object that is is being used for so that it can get hold of the various sources. It is itself a PlotObject and will always act as the root of the tree. List of PlotObject classes: PlotArea2D PlotText
| Field Summary | |
|---|---|
private java.util.Vector<PlotObject> |
children
|
private Plot |
plot
|
private javax.swing.JPanel |
propPanel
|
private static long |
serialVersionUID
|
| Fields inherited from interface java.awt.print.Printable |
|---|
NO_SUCH_PAGE, PAGE_EXISTS |
| Constructor Summary | |
|---|---|
PlotSpec(Plot thePlot)
|
|
PlotSpec(Plot p,
PlotSpec c)
|
|
| Method Summary | |
|---|---|
private void |
addPlot()
|
private void |
addText()
|
java.util.Enumeration<javax.swing.tree.TreeNode> |
children()
|
PlotSpec |
copy(PlotSpec p)
|
void |
draw(java.awt.Graphics2D g,
java.awt.geom.Rectangle2D bounds)
Draw this object on the provided graphics. |
void |
fireRedraw()
Sends a message up the tree to redraw the screen. |
void |
forceRedraw()
Send a message down the tree that current draw buffers are invalid. |
boolean |
getAllowsChildren()
|
javax.swing.tree.TreeNode |
getChildAt(int index)
|
int |
getChildCount()
|
int |
getIndex(javax.swing.tree.TreeNode node)
|
javax.swing.tree.TreeNode |
getParent()
|
Plot |
getPlot()
|
javax.swing.JComponent |
getPropertiesPanel()
Returns a panel that can be used to set the properties of this plot object. |
PlotSurface |
getSurface()
|
boolean |
isLeaf()
|
void |
keyPressed(java.awt.event.KeyEvent e)
|
void |
keyReleased(java.awt.event.KeyEvent e)
|
void |
keyTyped(java.awt.event.KeyEvent e)
|
void |
mouseClicked(java.awt.event.MouseEvent e,
double mx,
double my)
|
void |
mouseDragged(java.awt.event.MouseEvent e,
double mx,
double my)
|
void |
mouseMoved(java.awt.event.MouseEvent e,
double mx,
double my)
|
void |
mousePressed(java.awt.event.MouseEvent e,
double mx,
double my)
|
void |
mouseReleased(java.awt.event.MouseEvent e,
double mx,
double my)
|
void |
print(java.awt.Graphics2D g,
java.awt.geom.Rectangle2D bounds)
Draw the object without buffering so it is a vector image. |
int |
print(java.awt.Graphics g,
java.awt.print.PageFormat pf,
int pageIndex)
|
void |
relink(java.util.Hashtable<GraphElement,GraphElement> linkHash)
|
private void |
remove()
|
void |
setSelected(boolean val)
|
void |
setSelection(PlotObject po)
|
java.lang.String |
toString()
|
void |
treeAltered(PlotObject po)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private Plot plot
private java.util.Vector<PlotObject> children
private transient javax.swing.JPanel propPanel
private static final long serialVersionUID
| Constructor Detail |
|---|
public PlotSpec(Plot thePlot)
public PlotSpec(Plot p,
PlotSpec c)
| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Objectpublic void setSelection(PlotObject po)
public PlotSurface getSurface()
public Plot getPlot()
public void draw(java.awt.Graphics2D g,
java.awt.geom.Rectangle2D bounds)
draw in interface PlotObject
public void print(java.awt.Graphics2D g,
java.awt.geom.Rectangle2D bounds)
PlotObject
print in interface PlotObject
public int print(java.awt.Graphics g,
java.awt.print.PageFormat pf,
int pageIndex)
print in interface java.awt.print.Printablepublic javax.swing.JComponent getPropertiesPanel()
getPropertiesPanel in interface PlotObjectpublic void treeAltered(PlotObject po)
treeAltered in interface PlotObjectpublic void setSelected(boolean val)
setSelected in interface PlotObjectpublic void fireRedraw()
PlotObject
fireRedraw in interface PlotObjectpublic void forceRedraw()
forceRedraw in interface PlotObjectpublic PlotSpec copy(PlotSpec p)
copy in interface PlotObjectpublic void relink(java.util.Hashtable<GraphElement,GraphElement> linkHash)
relink in interface PlotObject
public void mousePressed(java.awt.event.MouseEvent e,
double mx,
double my)
mousePressed in interface PlotObject
public void mouseReleased(java.awt.event.MouseEvent e,
double mx,
double my)
mouseReleased in interface PlotObject
public void mouseClicked(java.awt.event.MouseEvent e,
double mx,
double my)
mouseClicked in interface PlotObject
public void mouseMoved(java.awt.event.MouseEvent e,
double mx,
double my)
mouseMoved in interface PlotObject
public void mouseDragged(java.awt.event.MouseEvent e,
double mx,
double my)
mouseDragged in interface PlotObjectpublic void keyPressed(java.awt.event.KeyEvent e)
keyPressed in interface PlotObjectpublic void keyReleased(java.awt.event.KeyEvent e)
keyReleased in interface PlotObjectpublic void keyTyped(java.awt.event.KeyEvent e)
keyTyped in interface PlotObjectpublic java.util.Enumeration<javax.swing.tree.TreeNode> children()
children in interface javax.swing.tree.TreeNodepublic boolean getAllowsChildren()
getAllowsChildren in interface javax.swing.tree.TreeNodepublic javax.swing.tree.TreeNode getChildAt(int index)
getChildAt in interface javax.swing.tree.TreeNodepublic int getChildCount()
getChildCount in interface javax.swing.tree.TreeNodepublic int getIndex(javax.swing.tree.TreeNode node)
getIndex in interface javax.swing.tree.TreeNodepublic javax.swing.tree.TreeNode getParent()
getParent in interface javax.swing.tree.TreeNodepublic boolean isLeaf()
isLeaf in interface javax.swing.tree.TreeNodeprivate void addText()
private void addPlot()
private void remove()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||