|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.ericsson.tic.vi.ViewPanel
public class ViewPanel
The view Panel is the most important GUI component. It creates an OpenGL Canvas (or GLJPanel) and keeps track of view specific variables.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
Animator |
animator
The animator calls the canvas for graphics updates. |
int[] |
barData
determines which data sets to use for bars. |
boolean |
barsOn
If true, the bars are set to visible. |
int[] |
barsSelectedIndex
Keeps track of the selected index in a combobox. |
boolean |
brushingMarkersOn
If true, brushing Markers will be drawn. |
Camera |
camera
The camera associated with this view. |
GLJPanel |
canvas
The actual panel holding the OpenGL canvas. |
private JCheckBoxMenuItem |
cbMenuItem
A menu item. |
JMenuItem |
closeMenuItem
A menu item. |
boolean |
defaultNodeColorsOn
If true, the default colors are used for the nodes. |
private JFileChooser |
fileChooser
A file chooser dialogue. |
boolean |
globePhasingIn
If true, the globe view is phasing in. |
boolean |
globePhasingOut
If true, the globe view is phasing out. |
boolean |
globeViewOn
If true, the globe view is currently on. |
boolean |
graphNodesOn
If true, the nodes are set to visible. |
boolean |
graphRelationsOn
If true, the relations are set to visible. |
int[] |
histData
determines which data sets to use for histograms. |
int[] |
histSelectedIndex
Keeps track of the selected index in a combobox. |
int |
id
The unique identifier for this view. |
boolean |
labelsOn
If true, labels are rendererd. |
boolean |
levelNodeShadingOn
If true, nodes will be shaded by their level. |
boolean |
limitRendering
If true, rendering is limited. |
private JMenuItem |
menuItem
A menu item. |
GraphNode[] |
nodeArr
An array of nodes. |
GraphNode[] |
nodeArrFull
An array of nodes. |
GraphNode[] |
nodeArrSubset
An array of nodes. |
int |
nodeData
determines which data set to use for nodes. |
boolean[] |
nodeOfLevelOn
Not used. |
boolean[] |
nodeOfTypeOn
Determines which node types are visible. |
GraphNodeRel[] |
nodeRelArr
An array of relations. |
GraphNodeRel[] |
nodeRelArrFull
An array of relations. |
GraphNodeRel[] |
nodeRelArrSubset
An array of relations. |
int |
nodeSelectedIndex
Keeps track of the selected index in a combobox. |
boolean |
nodesMovingToGlobeTarget
If true, the nodes are moving to their targets in the globe view. |
boolean |
nodesMovingToPlaneTarget
If true, the nodes are moving to their targets in the plane view. |
boolean |
picking
If true, the user has clicked the view and we have entered picking mode. |
boolean |
planePhasingIn
If true, the plane view is phasing in. |
boolean |
planePhasingOut
If true, the plane view is phasing out. |
boolean |
planeViewOn
If true, the plane view is currently on. |
private JPopupMenu |
popupMenu
A pop-up menu. |
int |
relData
determines which data set to use for relationships. |
int |
relSelectedIndex
Keeps track of the selected index in a combobox. |
Renderer |
renderer
The eventlistener which listens to calls from the OpenGL engine. |
SplitViewPanel |
splitParent
The split view which is the gui parent of this ViewPanel. |
private JMenu |
subMenuLevel
A menu. |
private JMenu |
subMenuSubset
A menu. |
private JMenu |
subMenuType
A menu. |
boolean |
subsetEmpty
If true the subset is empty. |
boolean |
subsetOn
If true, the subset is active. |
boolean |
texturesOn
If true, the textures will be drawn. |
JButton |
texturesOnButton
A button. |
boolean |
transitionStateOn
If true, the view is in a transitional state moving from one form to another. |
JButton |
viewModeButton
A button. |
boolean |
viewTitleOn
True if the view titles are turned on. |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
ViewPanel(int id,
SplitViewPanel splitParent)
Creates a View Panel. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent e)
Called when an ActionEvent is triggered. |
private void |
createSubset()
Creates a subset of the selected nodes. |
void |
createSubset(int[] save)
Creates a subset from the array specified in a save file. |
void |
initComboBoxIndexes()
Initializes the combo box indexes. |
void |
keyPressed(KeyEvent e)
Called when a keyboard key is pressed. |
void |
keyReleased(KeyEvent e)
Called when a keyboard key is released. |
void |
keyTyped(KeyEvent e)
Called when a keyboard key is typed. |
void |
mouseClicked(MouseEvent e)
Called when a MouseEvent is triggered. |
void |
mouseDragged(MouseEvent e)
Called when the mouse is dragged. |
void |
mouseEntered(MouseEvent e)
Called when a MouseEvent is triggered. |
void |
mouseExited(MouseEvent e)
Called when a MouseEvent is triggered. |
void |
mouseMoved(MouseEvent e)
Called when a MouseEvent is triggered. |
void |
mousePressed(MouseEvent e)
Called when the mouse is pressed. |
void |
mouseReleased(MouseEvent e)
Called when the mouse is released. |
void |
mouseWheelMoved(MouseWheelEvent e)
Called when the mousewheel is scrolled. |
void |
renewID()
Renew the ID of this view. |
void |
updateLabelTargets()
Updates the targets of all labels. |
void |
updateNodeTargets()
Updates the targets of all nodes. |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public GLJPanel canvas
public Animator animator
public Renderer renderer
public int id
public Camera camera
public JButton viewModeButton
public JButton texturesOnButton
public SplitViewPanel splitParent
public boolean transitionStateOn
public boolean globePhasingIn
public boolean globePhasingOut
public boolean planePhasingIn
public boolean planePhasingOut
public boolean nodesMovingToPlaneTarget
public boolean nodesMovingToGlobeTarget
public boolean globeViewOn
public boolean planeViewOn
public boolean graphNodesOn
public boolean graphRelationsOn
public boolean barsOn
public boolean picking
public boolean brushingMarkersOn
public boolean texturesOn
public int nodeData
public int[] barData
public int[] histData
public int relData
public boolean viewTitleOn
public boolean[] nodeOfLevelOn
public boolean[] nodeOfTypeOn
public GraphNode[] nodeArr
public GraphNodeRel[] nodeRelArr
public GraphNode[] nodeArrFull
public GraphNodeRel[] nodeRelArrFull
public GraphNode[] nodeArrSubset
public GraphNodeRel[] nodeRelArrSubset
private JPopupMenu popupMenu
private JMenu subMenuType
private JMenu subMenuLevel
private JMenu subMenuSubset
private JMenuItem menuItem
private JCheckBoxMenuItem cbMenuItem
public JMenuItem closeMenuItem
private JFileChooser fileChooser
public boolean limitRendering
public boolean labelsOn
public boolean subsetOn
public boolean subsetEmpty
public int nodeSelectedIndex
public int relSelectedIndex
public int[] barsSelectedIndex
public int[] histSelectedIndex
public boolean defaultNodeColorsOn
public boolean levelNodeShadingOn
| Constructor Detail |
|---|
public ViewPanel(int id,
SplitViewPanel splitParent)
id - the id of this view.splitParent - the parent SplitViewPanel of this view.| Method Detail |
|---|
public void initComboBoxIndexes()
public void updateNodeTargets()
public void updateLabelTargets()
public void renewID()
public void mouseDragged(MouseEvent e)
mouseDragged in interface MouseMotionListenere - The MouseEvent that was triggered.public void mousePressed(MouseEvent e)
mousePressed in interface MouseListenere - The MouseEvent that was triggered.public void mouseReleased(MouseEvent e)
mouseReleased in interface MouseListenere - The MouseEvent that was triggered.public void mouseWheelMoved(MouseWheelEvent e)
mouseWheelMoved in interface MouseWheelListenere - The MouseEvent that was triggered.public void mouseClicked(MouseEvent e)
mouseClicked in interface MouseListenere - The MouseEvent which triggered the event.public void mouseMoved(MouseEvent e)
mouseMoved in interface MouseMotionListenere - The MouseEvent which triggered the event.public void mouseExited(MouseEvent e)
mouseExited in interface MouseListenere - The MouseEvent which triggered the event.public void mouseEntered(MouseEvent e)
mouseEntered in interface MouseListenere - The MouseEvent which triggered the event.public void keyPressed(KeyEvent e)
keyPressed in interface KeyListenere - The KeyEvent which was triggered.public void keyReleased(KeyEvent e)
keyReleased in interface KeyListenere - The KeyEvent which was triggered.public void keyTyped(KeyEvent e)
keyTyped in interface KeyListenere - The KeyEvent which was triggered.public void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListenere - The ActionEvent which triggered the event.private void createSubset()
public void createSubset(int[] save)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||