|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.Control
org.eclipse.swt.widgets.Scrollable
org.eclipse.swt.widgets.Composite
com.tensegrity.gui.swt.graph.SwtNavigator
Instances of SwtNavigator are responsible for providing the
means for displaying a CompositeNavigator
in SWT-based applications.
This class represents the SWT equivalent of the Swing-based class
NavigatorPanel).
An instance initializes itself with a default rendering configuration
It is possible, however, to change it by retrieving the renderer configuration
attribute set (see getRendererConfiguration()) and modifying that
object.
The following methods allow you to modify various
CompositeNavigator colors:
The graphical display of CompositeNavigatorProvider
content is performed by delegating to an instance of class
CompositeNavigator.
This instance can be retrieved by calling the getCompositeNavigator() method.
| Field Summary |
| Fields inherited from class org.eclipse.swt.widgets.Control |
handle |
| Constructor Summary | |
SwtNavigator(org.eclipse.swt.widgets.Composite parent,
int style)
Since SwtNavigator extends the SWT Composite class and in
order to leave more control to the caller this constructor delegates its
call to that of Composite.
|
|
| Method Summary | |
void |
addZoomValueListener(CompositeNavigator.ZoomValueListener listener)
Registers the CompositeNavigator.ZoomValueListener given
by listener at the underlying
CompositeNavigator so that the
CompositeNavigator.ZoomValueListener will be notified on
every zoom change the CompositeNavigator performs to the
associated CompositeView. |
void |
defaultInitCompositeNavigator()
This method perform some default initializations on the passed compositeNavigator. |
ApplicationFrame |
getApplicationFrame()
|
CompositeNavigator |
getCompositeNavigator()
Returns the internal CompositeNavigator |
java.lang.String |
getName()
|
static AttributeSet |
getRendererConfiguration()
Returns the AttributeSet that can be used to configure
the rendering settings that used by all instances of
NavigatorPanel during user-interaction. |
boolean |
isUpdateDuringActing()
Query whether this NavigatorPanel is updating during
action of its CompositeNavigatorProvider. |
void |
removeZoomValueListener(CompositeNavigator.ZoomValueListener listener)
Removes the CompositeNavigator.ZoomValueListener given
by listener from the underlying
CompositeNavigator so that the
CompositeNavigator.ZoomValueListener will no longer be
notified on zoom changes the CompositeNavigator performs
to the associated CompositeView. |
void |
setApplicationFrame(ApplicationFrame applicationFrame)
Sets the local instance of to
applicationFrame.
|
void |
setName(java.lang.String s)
|
void |
setNavigatorBackground(int navigatorBackground)
Sets the Color value for the navigator background. |
void |
setSelected(boolean b)
|
void |
setUpdateDuringActing(boolean updateDuringActing)
Configure whether this NavigatorPanel is updating during
action of its CompositeNavigatorProvider. |
void |
setViewRectBackground(int viewRectBackground)
Sets the Color value for the navigator view rectangle background |
void |
setViewRectBorder(int viewRectBorder)
Sets the Color value for the navigator view rectangle border. |
void |
update(Observable observable,
java.lang.Object arg)
The callback method of an observer that is invoked by the Observable each time the state has changed. |
| Methods inherited from class org.eclipse.swt.widgets.Composite |
checkSubclass, computeSize, getChildren, getLayout, getTabList, layout, layout, setFocus, setLayout, setTabList |
| Methods inherited from class org.eclipse.swt.widgets.Scrollable |
computeTrim, getClientArea, getHorizontalBar, getVerticalBar |
| Methods inherited from class org.eclipse.swt.widgets.Control |
addControlListener, addFocusListener, addHelpListener, addKeyListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addPaintListener, addTraverseListener, computeSize, forceFocus, getAccessible, getBackground, getBorderWidth, getBounds, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getParent, getShell, getSize, getToolTipText, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, redraw, redraw, removeControlListener, removeFocusListener, removeHelpListener, removeKeyListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removePaintListener, removeTraverseListener, setBackground, setBounds, setBounds, setCapture, setCursor, setEnabled, setFont, setForeground, setLayoutData, setLocation, setLocation, setMenu, setParent, setRedraw, setSize, setSize, setToolTipText, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, update |
| Methods inherited from class org.eclipse.swt.widgets.Widget |
addDisposeListener, addListener, checkWidget, dispose, getData, getData, getDisplay, getStyle, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, setData, setData, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public SwtNavigator(org.eclipse.swt.widgets.Composite parent,
int style)
SwtNavigator extends the SWT Composite class and in
order to leave more control to the caller this constructor delegates its
call to that of Composite.
In addition it performs the default initialization of the internal
CompositeNavigator.
parent - a Composite which will be the parent of the new instance (cannot be null)style - the style of SwtNavigator to constructdefaultInitCompositeNavigator()| Method Detail |
public void defaultInitCompositeNavigator()
compositeNavigator.
CompositeNavigator.setPaint(PaintFormat),
CompositeNavigator.setViewportRectPaint(PaintFormat),
CompositeNavigator.setViewportRectStroke(StrokeFormat)
public void update(Observable observable,
java.lang.Object arg)
ObserverObservable each time the state has changed.
update in interface Observerobservable - the observable that triggered the call.arg - an object carrying additional information.public static final AttributeSet getRendererConfiguration()
AttributeSet that can be used to configure
the rendering settings that used by all instances of
NavigatorPanel during user-interaction.
AttributeSet for rendering configuration.RendererConfigurationpublic void setUpdateDuringActing(boolean updateDuringActing)
NavigatorPanel is updating during
action of its CompositeNavigatorProvider. If set to false, then
during acting the navigator is not updated, which may result in improved
performance.
updateDuringActing - if false, then during acting the navigator is
not updated, otherwise it is updated.public boolean isUpdateDuringActing()
NavigatorPanel is updating during
action of its CompositeNavigatorProvider.
true if the navigator is updated during acting,
false otherwise.public CompositeNavigator getCompositeNavigator()
CompositeNavigator
CompositeNavigatorpublic void addZoomValueListener(CompositeNavigator.ZoomValueListener listener)
CompositeNavigator.ZoomValueListener given
by listener at the underlying
CompositeNavigator so that the
CompositeNavigator.ZoomValueListener will be notified on
every zoom change the CompositeNavigator performs to the
associated CompositeView.
listener - the CompositeNavigator.ZoomValueListener
to registerpublic void removeZoomValueListener(CompositeNavigator.ZoomValueListener listener)
CompositeNavigator.ZoomValueListener given
by listener from the underlying
CompositeNavigator so that the
CompositeNavigator.ZoomValueListener will no longer be
notified on zoom changes the CompositeNavigator performs
to the associated CompositeView.
listener - the CompositeNavigator.ZoomValueListener
to removepublic void setName(java.lang.String s)
public java.lang.String getName()
public ApplicationFrame getApplicationFrame()
public void setSelected(boolean b)
public void setApplicationFrame(ApplicationFrame applicationFrame)
Sets the local instance of to
ApplicationFrameapplicationFrame.
applicationFrame - the ApplicationFrame to which this
navigator is associated.public void setNavigatorBackground(int navigatorBackground)
navigatorBackground - Color value for the navigator backgroundCompositeNavigator.setPaint(PaintFormat)public void setViewRectBackground(int viewRectBackground)
viewRectBackground - the Color value for the navigator view rectangle backgroundCompositeNavigator.setViewportRectPaint(PaintFormat)public void setViewRectBorder(int viewRectBorder)
viewRectBorder - the Color value for the navigator view rectangle borderCompositeNavigator.setViewportRectStroke(StrokeFormat)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||