|
|||||||||||
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.argouml.ui.TabSpawnable
org.argouml.uml.diagram.ui.TabDiagram
The TabDiagram is the tab in the multieditorpane that holds a diagram. The TabDiagram consists of a JGraph (with the figs) and a toolbar. It used to be possible (in past versions of ArgoUML) to spawn objects of this class into a dialog via the spawn method of its parent.
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 | |
private org.tigris.gef.graph.presentation.JGraph |
graph
The GEF JGraph in where the figs are painted. |
private static Logger |
LOG
Logger. |
private UMLDiagram |
target
The diagram object. |
private JToolBar |
toolBar
The toolbar that is positioned just above the diagram containing the drawing tools. |
private boolean |
updatingSelection
Prevents target event cycles between this and the TargetManager. |
Fields inherited from class org.argouml.ui.TabSpawnable |
|
Fields inherited from class javax.swing.JPanel |
|
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.Container |
|
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 | |
TabDiagram()
Default constructor. |
|
TabDiagram(String tag)
Constructor. |
Method Summary | |
Object |
clone()
The clone method that should clone the JGraph with it's contents and the toolbar with it's contents. |
org.tigris.gef.graph.presentation.JGraph |
getJGraph()
Getter for the JGraph . |
Object |
getTarget()
get the current target |
JToolBar |
getToolBar()
Getter for the Toolbar. |
void |
modeChange(org.tigris.gef.event.ModeChangeEvent mce)
|
void |
refresh()
Refreshes the tab IN TOTAL |
void |
removeGraphSelectionListener(org.tigris.gef.event.GraphSelectionListener listener)
|
void |
removeModeChangeListener(org.tigris.gef.event.ModeChangeListener listener)
|
private void |
select(Object[] targets)
|
void |
selectionChanged(org.tigris.gef.event.GraphSelectionEvent gse)
In the selectionChanged method not only the selection of this diagram is set but also the selection in the projectbrowser. |
void |
setTarget(Object t)
set the target |
void |
setToolBar(JToolBar toolbar)
Sets the toolbar. |
void |
setVisible(boolean b)
|
boolean |
shouldBeEnabled(Object newTarget)
Returns true if the tab should be enabled with the given target |
void |
targetAdded(TargetEvent e)
Fired when a target is added to the list of targets. |
void |
targetRemoved(TargetEvent e)
Fired when a target is removed from the list of targets |
void |
targetSet(TargetEvent e)
Fired when a total new set of targets is set |
Methods inherited from class org.argouml.ui.TabSpawnable |
getOrientation, getTitle, setOrientation, setTitle, spawn |
Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final Logger LOG
private UMLDiagram target
private org.tigris.gef.graph.presentation.JGraph graph
private boolean updatingSelection
private JToolBar toolBar
Constructor Detail |
public TabDiagram()
public TabDiagram(String tag)
tag
- The type of diagram that we are creating.Method Detail |
public Object clone()
clone
in class TabSpawnable
Object.clone()
public void setTarget(Object t)
TargetManager
.
TabTarget
setTarget
in interface TabTarget
t
- Sets the target of the tab. The target should allways be an instance of
UMLDiagram
public Object getTarget()
TabTarget
getTarget
in interface TabTarget
TabTarget.getTarget()
public JToolBar getToolBar()
public void refresh()
TabTarget
refresh
in interface TabTarget
TabTarget.refresh()
public boolean shouldBeEnabled(Object newTarget)
TabTarget
shouldBeEnabled
in interface TabTarget
newTarget
- the given target
TabTarget.shouldBeEnabled(java.lang.Object)
public org.tigris.gef.graph.presentation.JGraph getJGraph()
JGraph
.
public void setVisible(boolean b)
Component.setVisible(boolean)
public void selectionChanged(org.tigris.gef.event.GraphSelectionEvent gse)
selectionChanged
in interface org.tigris.gef.event.GraphSelectionListener
gse
- The event.public void removeGraphSelectionListener(org.tigris.gef.event.GraphSelectionListener listener)
listener
- the listener to be removedpublic void modeChange(org.tigris.gef.event.ModeChangeEvent mce)
modeChange
in interface org.tigris.gef.event.ModeChangeListener
ModeChangeListener.modeChange(org.tigris.gef.event.ModeChangeEvent)
public void removeModeChangeListener(org.tigris.gef.event.ModeChangeListener listener)
listener
- the listener to be removedpublic void setToolBar(JToolBar toolbar)
toolbar
- is the toolbar to be set.public void targetAdded(TargetEvent e)
TargetListener
targetAdded
in interface TargetListener
e
- The targetevent, name will be TARGET_ADDEDTargetListener.targetAdded(
TargetEvent)
public void targetRemoved(TargetEvent e)
TargetListener
targetRemoved
in interface TargetListener
e
- The targetevent, name will be TARGET_REMOVEDTargetListener.targetRemoved(
TargetEvent)
public void targetSet(TargetEvent e)
TargetListener
targetSet
in interface TargetListener
e
- The targetevent, name will be TARGET_SETTargetListener.targetSet(
org.argouml.ui.targetmanager.TargetEvent)
private void select(Object[] targets)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ArgoUML © 1996-2004 (20050222) | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |