|
|||||||||||
| 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
org.globus.cog.gui.grapheditor.targets.swing.CanvasPanel
This class represents a typical panel that contains a graph canvas. It adds the menu from the canvas, the toolbar, implements the logic for switching views, and adds the actual component of the canvas.
| Nested Class Summary |
| Nested classes inherited from class javax.swing.JPanel |
JPanel.AccessibleJPanel |
| Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
| Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
| Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
| 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 | |
CanvasPanel(SwingCanvasRenderer renderer)
Creates a new CanvasPanel |
|
| Method Summary | |
void |
actionPerformed(ActionEvent e)
|
void |
canvasActionPerformed(CanvasActionEvent e)
|
void |
event(EventObject e)
|
SwingCanvasRenderer |
getDRenderer()
|
RepaintMonitoringContainer |
getMain()
|
SwingCanvasRenderer |
getRenderer()
|
JToolBar |
getToolBar()
|
SwingView |
getView()
|
Component |
getViewComponent()
|
JViewport |
getViewport()
Returns the current viewport |
Rectangle |
getVisibleArea()
Returns the visible rectangle in the current view. |
void |
incrementProgress()
Advances one step in the progress indicator |
void |
initializeProgress(int size)
Activates a status bar progress indicator which has size
steps. |
void |
listViewChanged(SwingView view)
|
void |
removeProgress()
Hides the current progress bar indicator |
void |
setProgress(int progress)
Sets the progress for an initialized progress indicator |
void |
setRenderer(SwingCanvasRenderer renderer)
|
void |
setSelectedView(CanvasView view)
|
void |
setStatusIcon(Icon icon)
sets the icon to be displayed in the leftmost side of the status bar |
void |
setStatusText(String text)
Sets the text for the status bar |
void |
setToolBar(JToolBar toolBar)
|
void |
setView(SwingView view)
|
void |
setVisibleAreaOrigin(Point p)
Sets the origin of the visible area in the current view, allowing programatic scrolling |
void |
stateChanged(ChangeEvent e)
|
void |
updateMenuBar()
|
void |
updateToolBar()
|
void |
updateViewList()
|
| 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 |
| Constructor Detail |
public CanvasPanel(SwingCanvasRenderer renderer)
| Method Detail |
public void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListenerpublic void event(EventObject e)
event in interface EventConsumerpublic SwingCanvasRenderer getDRenderer()
public SwingCanvasRenderer getRenderer()
public JToolBar getToolBar()
public SwingView getView()
public JViewport getViewport()
public Rectangle getVisibleArea()
public void incrementProgress()
incrementProgress in interface StatusRendererpublic void initializeProgress(int size)
size
steps. If steps is set to 0 (zero) an indeterminate
progress indicator will be used
initializeProgress in interface StatusRenderersize - public void listViewChanged(SwingView view)
public void removeProgress()
removeProgress in interface StatusRendererpublic void setProgress(int progress)
setProgress in interface StatusRendererprogress - public void setRenderer(SwingCanvasRenderer renderer)
public void setSelectedView(CanvasView view)
public void setStatusIcon(Icon icon)
setStatusIcon in interface StatusRenderericon - public void setStatusText(String text)
setStatusText in interface StatusRenderertext - the text to be displayed in the status barpublic void setToolBar(JToolBar toolBar)
public void setView(SwingView view)
public void setVisibleAreaOrigin(Point p)
p - public void stateChanged(ChangeEvent e)
stateChanged in interface ChangeListenerpublic void updateMenuBar()
public void updateToolBar()
public void updateViewList()
public RepaintMonitoringContainer getMain()
public Component getViewComponent()
public void canvasActionPerformed(CanvasActionEvent e)
canvasActionPerformed in interface CanvasActionListener
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||