|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
A CompositeNavigator is responsible for displaying a graphical
overview of the content of a CompositeNavigatorProvider. The
CompositeNavigator must also support user interaction, such as
zooming into or out of certain ares of the displayed content.
The appearance of the CompositeNavigator can be configured
through the methods listed below:
setPaint(com.tensegrity.graphics.PaintFormat)setViewportRectStroke(com.tensegrity.graphics.StrokeFormat)setViewportRectPaint(com.tensegrity.graphics.PaintFormat)CompositeNavigator
is still under construction. It is planned that this appearance will be
configurable with a Style object introduced with the
BaseComposite interface.
To display the content of the CompositeNavigatorProvider, a
CompositeNavigator should use the capabilities of the
Renderer and Device components available in the
graphics framework. For more information about how these
components work, please see the documentation for interfaces
Renderer and
Device.
The method which utilizes these components is:
Please view interface CompositeNavigatorProvider for more
information about the data component for this interface.
| Nested Class Summary | |
static interface |
CompositeNavigator.ColorListener
A listener that gets notified of changes in the colors of this navigator. |
static interface |
CompositeNavigator.ZoomValueListener
Interface for the listeners interested in the current used zoom value of this Navigator. |
| Method Summary | |
void |
addColorListener(CompositeNavigator.ColorListener listener)
Adds a new color listener to this navigator |
void |
addZoomValueListener(CompositeNavigator.ZoomValueListener listener)
The method addZoomValueListener adds an instance of ZoomValueListener to a internal list of listeners. |
void |
draw(Renderer renderer,
Device device,
Transform2D xform_context)
Draws the content provided by the current CompositeNavigatorProvider
with the specified Renderer onto the specified Device. |
Boundary |
getBoundingBox()
Returns the bounding box of the CompositeNavigator. |
CompositeNavigatorProvider |
getProvider()
Returns the CompositeNavigatorProvider the
CompositeNavigator currently displays the content of. |
Transform2D |
getViewTransform(Transform2D xform_context)
Returns the Transform2D of the navigator's view. |
void |
removeColorListener(CompositeNavigator.ColorListener listener)
Removes a new color listener to this navigator |
void |
removeZoomValueListener(CompositeNavigator.ZoomValueListener listener)
The method removeZoomValueListener should remove the given listener from a list of listeners. |
void |
setBoundingBox(int left,
int right,
int top,
int bottom)
Sets the bounding box for the CompositeNavigator to the
values given by left, right, top
and bottom. |
void |
setPaint(PaintFormat paint)
Sets the PaintFormat that is
used to fill the background of the CompositeNavigator. |
void |
setProvider(CompositeNavigatorProvider provider)
Sets the CompositeNavigatorProvider given by
provider as the new content provider for the
CompositeNavigator. |
void |
setViewportRectPaint(PaintFormat paint)
Sets the PaintFormat that is
used to fill the rectangle that indicates the visible area of the
CompositeNavogatorProvider. |
void |
setViewportRectStroke(StrokeFormat stroke)
Sets the StrokeFormat that is
used to draw a border around the rectangle that indicates the visible
area of the CompositeNavogatorProvider. |
| Methods inherited from interface com.tensegrity.graphics.interaction.InteractionProvider |
actAt, descriptorChanged, dismissFromInteractionCycle, getCurrentInteractionItemFor, getCursorID, getInteractionProviders, getSelection, getSelectionBoundingBox, hasMultiSelection, hasSelection, hasSubSelection, hitsAt, mouseClickAt, mouseDownAt, mouseMoveAt, mouseUpAt, postAction, preAction, select, selectAll, selectAt, selectContaining, selectSubsequent, setSelection, startActionAt, stopActionAt, unselect, unselect, unselectAll, unselectSubsequent |
| Method Detail |
public void setPaint(PaintFormat paint)
PaintFormat that is
used to fill the background of the CompositeNavigator.
paint - The PaintFormat the background is filled with.public void setViewportRectStroke(StrokeFormat stroke)
StrokeFormat that is
used to draw a border around the rectangle that indicates the visible
area of the CompositeNavogatorProvider.
stroke - the StrokeFormat viewport rectangles border is
drawn withpublic void setViewportRectPaint(PaintFormat paint)
PaintFormat that is
used to fill the rectangle that indicates the visible area of the
CompositeNavogatorProvider.
paint - The PaintFormat the viewport rectangle is
filled with.public Boundary getBoundingBox()
CompositeNavigator.
CompositeNavigator
public void setBoundingBox(int left,
int right,
int top,
int bottom)
CompositeNavigator to the
values given by left, right, top
and bottom.
left - the new value for the left side of the bounding boxright - the new value for the right side of the bounding boxtop - the new value for the top side of the bounding boxbottom - the new value for the bottom side of the bounding boxpublic CompositeNavigatorProvider getProvider()
CompositeNavigatorProvider the
CompositeNavigator currently displays the content of.
CompositeNavigatorProvider.public void setProvider(CompositeNavigatorProvider provider)
CompositeNavigatorProvider given by
provider as the new content provider for the
CompositeNavigator.
provider - the new CompositeNavigatorProviderpublic Transform2D getViewTransform(Transform2D xform_context)
Transform2D of the navigator's view.
xform_context - the Transform2D to combine to the view
transform of the navigator.
Transform2D of the navigator's view.
public void draw(Renderer renderer,
Device device,
Transform2D xform_context)
CompositeNavigatorProvider
with the specified Renderer onto the specified Device.
renderer - the Renderer used for drawingdevice - the Device used for drawingxform_context - the context transformationpublic void addZoomValueListener(CompositeNavigator.ZoomValueListener listener)
listener - a Listener to add.public void removeZoomValueListener(CompositeNavigator.ZoomValueListener listener)
listener - the listener to remove.public void addColorListener(CompositeNavigator.ColorListener listener)
listener - The listener to addpublic void removeColorListener(CompositeNavigator.ColorListener listener)
listener - The listener to remove
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||