|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.swri.swiftvis.plot.PlotArea2D
public class PlotArea2D
This class is intended to represent the area that a plot or set of related plots should occupy. You get to specify how many different plots you want in the area and how they are arranged as well as if there should be a legend. Basically, you get to say how many rows and columns you want. You can specify if the horizontal or vertical is primary and specify axis options for each one. For the secondary direction you can specify one or more axis options for each row or column. Each secondary axis can have one or more data specifications under it.
Nested Class Summary | |
---|---|
private class |
PlotArea2D.ClickPosition
|
private static class |
PlotArea2D.ListenerCellPair
|
private class |
PlotArea2D.PlotAreaMiniature
|
Field Summary | |
---|---|
private javax.swing.JList |
allDataJList
|
private javax.swing.JList |
allPrimaryJList
|
private javax.swing.JList |
allSecondaryJList
|
private javax.swing.JList |
dataJList
|
private javax.swing.JPanel |
dataPropertiesPanel
|
private int[][][][] |
dataSelection
|
private EditableDouble |
height
|
private java.awt.Image |
img
|
private double |
imgLeft
|
private double |
imgTop
|
private boolean |
lastInside
|
private javax.swing.JList |
legendDataJList
|
private EditableDouble |
legendHeight
|
private javax.swing.JPanel |
legendPropertiesPanel
|
private EditableDouble |
legendWidth
|
private EditableDouble |
legendX
|
private EditableDouble |
legendY
|
private javax.swing.JList |
listenerJList
|
private PlotArea2D.PlotAreaMiniature |
listenerMini
|
private java.util.List<PlotArea2D.ListenerCellPair> |
listeners
|
private PlotArea2D.PlotAreaMiniature |
mini
|
private PlotSpec |
parent
|
private java.util.Vector<DataPlotStyle> |
plotDataList
|
private int |
primaryAxisDirection
|
private java.util.Vector<AxisOptions> |
primaryAxisList
|
private javax.swing.JComboBox |
primaryComboBox
|
private double |
primaryEachSize
|
private double |
primaryMaxBuffer
|
private double |
primaryMinBuffer
|
private javax.swing.JPanel |
primaryPropertiesPanel
|
private int[] |
primarySelection
|
private javax.swing.JComponent |
propPanel
|
private java.util.Vector<AxisOptions> |
secondaryAxisList
|
private double |
secondaryEachSize
|
private javax.swing.JList |
secondaryJList
|
private double |
secondaryMaxBuffer
|
private double |
secondaryMinBuffer
|
private javax.swing.JPanel |
secondaryPropertiesPanel
|
private int[][] |
secondarySelection
|
private boolean |
selected
|
private static long |
serialVersionUID
|
private boolean |
useBuffer
|
private EditableDouble |
width
|
private EditableDouble |
x
|
private EditableDouble |
y
|
Constructor Summary | |
---|---|
private |
PlotArea2D(PlotArea2D c,
PlotSpec spec)
|
|
PlotArea2D(PlotSpec spec)
|
Method Summary | |
---|---|
private void |
addPlotListener()
|
private void |
addToSecondaryList()
|
private void |
allDataListSelectionMade()
|
private void |
allPrimaryListSelectionMade()
|
private void |
allSecondaryListSelectionMade()
|
private void |
checkLocation(double val)
|
java.util.Enumeration<javax.swing.tree.TreeNode> |
children()
|
PlotArea2D |
copy(PlotSpec p)
|
private void |
createData()
|
private void |
createPrimary()
|
private void |
createSecondary()
|
private void |
dataListSelectionMade()
|
private void |
deleteData()
|
private void |
deletePrimary()
|
private void |
deleteSecondary()
|
void |
draw(java.awt.Graphics2D g,
java.awt.geom.Rectangle2D bounds)
Draw this object on the provided graphics. |
private void |
drawLegendToGraphics(java.awt.Graphics2D g,
java.awt.geom.Rectangle2D bounds)
|
private void |
drawToGraphics(java.awt.Graphics2D g,
java.awt.geom.Rectangle2D bounds)
This function will actually draw in the image that will be put to screen. |
private void |
duplicateData()
|
private void |
duplicatePrimary()
|
private void |
duplicateSecondary()
|
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()
|
javax.swing.JComponent |
getPropertiesPanel()
Returns a panel that can be used to set the properties of this plot object. |
DataSink |
getSink()
|
boolean |
hasData()
|
boolean |
isLeaf()
|
void |
keyPressed(java.awt.event.KeyEvent e)
|
void |
keyReleased(java.awt.event.KeyEvent e)
|
void |
keyTyped(java.awt.event.KeyEvent e)
|
private void |
legendDataListSelectionMade()
|
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)
|
private void |
moveUpData()
|
private void |
orientationChanged(java.awt.event.ActionEvent e)
|
private void |
primarySelectionMade()
|
private void |
primarySizeChanged(java.awt.event.ActionEvent e)
|
void |
print(java.awt.Graphics2D g,
java.awt.geom.Rectangle2D bounds)
Draw the object without buffering so it is a vector image. |
void |
relink(java.util.Hashtable<GraphElement,GraphElement> linkHash)
|
private void |
removeFromSecondaryList()
|
private void |
removePlotListener()
|
private void |
secondaryListSelectionMade()
|
private void |
secondarySizeChanged(java.awt.event.ActionEvent e)
|
private void |
setDataOnAxes()
|
void |
setSelected(boolean val)
|
private void |
swapPlots(int low)
|
void |
syncGUI()
|
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 PlotSpec parent
private EditableDouble x
private EditableDouble y
private EditableDouble width
private EditableDouble height
private int primaryAxisDirection
private int[] primarySelection
private int[][] secondarySelection
private int[][][][] dataSelection
private java.util.Vector<AxisOptions> primaryAxisList
private java.util.Vector<AxisOptions> secondaryAxisList
private java.util.Vector<DataPlotStyle> plotDataList
private EditableDouble legendX
private EditableDouble legendY
private EditableDouble legendWidth
private EditableDouble legendHeight
private java.util.List<PlotArea2D.ListenerCellPair> listeners
private transient javax.swing.JComponent propPanel
private transient boolean selected
private transient java.awt.Image img
private transient PlotArea2D.PlotAreaMiniature mini
private transient boolean useBuffer
private transient javax.swing.JComboBox primaryComboBox
private transient javax.swing.JList secondaryJList
private transient javax.swing.JList dataJList
private transient javax.swing.JList allPrimaryJList
private transient javax.swing.JList allSecondaryJList
private transient javax.swing.JList allDataJList
private transient javax.swing.JList legendDataJList
private transient javax.swing.JList listenerJList
private transient PlotArea2D.PlotAreaMiniature listenerMini
private transient javax.swing.JPanel primaryPropertiesPanel
private transient javax.swing.JPanel secondaryPropertiesPanel
private transient javax.swing.JPanel dataPropertiesPanel
private transient javax.swing.JPanel legendPropertiesPanel
private transient double imgLeft
private transient double imgTop
private transient double primaryMinBuffer
private transient double primaryMaxBuffer
private transient double secondaryMinBuffer
private transient double secondaryMaxBuffer
private transient double primaryEachSize
private transient double secondaryEachSize
private transient boolean lastInside
private static final long serialVersionUID
Constructor Detail |
---|
public PlotArea2D(PlotSpec spec)
private PlotArea2D(PlotArea2D c, PlotSpec spec)
Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public DataSink getSink()
public boolean hasData()
public void syncGUI()
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 javax.swing.JComponent getPropertiesPanel()
getPropertiesPanel
in interface PlotObject
public void treeAltered(PlotObject po)
treeAltered
in interface PlotObject
public void setSelected(boolean val)
setSelected
in interface PlotObject
public void fireRedraw()
PlotObject
fireRedraw
in interface PlotObject
public void forceRedraw()
forceRedraw
in interface PlotObject
public PlotArea2D copy(PlotSpec p)
copy
in interface PlotObject
public 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 PlotObject
public void keyPressed(java.awt.event.KeyEvent e)
keyPressed
in interface PlotObject
public void keyReleased(java.awt.event.KeyEvent e)
keyReleased
in interface PlotObject
public void keyTyped(java.awt.event.KeyEvent e)
keyTyped
in interface PlotObject
public java.util.Enumeration<javax.swing.tree.TreeNode> children()
children
in interface javax.swing.tree.TreeNode
public boolean getAllowsChildren()
getAllowsChildren
in interface javax.swing.tree.TreeNode
public javax.swing.tree.TreeNode getChildAt(int index)
getChildAt
in interface javax.swing.tree.TreeNode
public int getChildCount()
getChildCount
in interface javax.swing.tree.TreeNode
public int getIndex(javax.swing.tree.TreeNode node)
getIndex
in interface javax.swing.tree.TreeNode
public javax.swing.tree.TreeNode getParent()
getParent
in interface javax.swing.tree.TreeNode
public boolean isLeaf()
isLeaf
in interface javax.swing.tree.TreeNode
private void drawToGraphics(java.awt.Graphics2D g, java.awt.geom.Rectangle2D bounds)
private void drawLegendToGraphics(java.awt.Graphics2D g, java.awt.geom.Rectangle2D bounds)
private void setDataOnAxes()
private void checkLocation(double val)
private void orientationChanged(java.awt.event.ActionEvent e)
private void primarySizeChanged(java.awt.event.ActionEvent e)
private void secondarySizeChanged(java.awt.event.ActionEvent e)
private void primarySelectionMade()
private void secondaryListSelectionMade()
private void addToSecondaryList()
private void removeFromSecondaryList()
private void dataListSelectionMade()
private void allPrimaryListSelectionMade()
private void createPrimary()
private void deletePrimary()
private void duplicatePrimary()
private void allSecondaryListSelectionMade()
private void createSecondary()
private void deleteSecondary()
private void duplicateSecondary()
private void allDataListSelectionMade()
private void createData()
private void deleteData()
private void duplicateData()
private void moveUpData()
private void swapPlots(int low)
private void legendDataListSelectionMade()
private void addPlotListener()
private void removePlotListener()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |