|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
The CompositeNavigatorProvider interface defines a role which
provides a CompositeNavigator with all of the BaseComposite
objects it should display.
The bridge between a CompositeNavigator and a
CompositeNavigatorProvider is the Observable
interface specified in the generics framework. By merging these
interfaces, a CompositeNavigator can be informed about
changes to a CompositeNavigatorProvider and subsequently
update the displayed objects.
| Field Summary | |
static int |
VIEW_SCALE_X
constant that tells about an index within a view values array returned by getViewValues() and used by
setViewValues(double[]). |
static int |
VIEW_SCALE_Y
constant that tells about an index within a view values array returned by getViewValues() and used by
setViewValues(double[]). |
static int |
VIEW_TRANSLATION_X
constant that tells about an index within a view values array returned by getViewValues() and used by
setViewValues(double[]). |
static int |
VIEW_TRANSLATION_Y
constant that tells about an index within a view values array returned by getViewValues() and used by
setViewValues(double[]). |
static int |
VIEWPORT_SCALE_X
constant that tells about an index within a viewport values array returned by getViewportValues() and used by
setViewportValues(double[]). |
static int |
VIEWPORT_SCALE_Y
constant that tells about an index within a viewport values array returned by getViewportValues() and used by
setViewportValues(double[]). |
static int |
VIEWPORT_TRANSLATION_X
constant that tells about an index within a viewport values array returned by getViewportValues() and used by
setViewportValues(double[]). |
static int |
VIEWPORT_TRANSLATION_Y
constant that tells about an index within a viewport values array returned by getViewportValues() and used by
setViewportValues(double[]). |
| Method Summary | |
Boundary |
getCompositeBoundingBox()
Returns the bounding box that encapsulates all the elements that are hold by the CompositeView. |
BaseCompositeIterator |
getCompositeIterator()
Returns a BaseCompositeIterator that can be used to iterate
over the CompositeNavigatorProviders list of
BaseComposites. |
CoordinateSystem |
getCoordinateSystem()
Returns the current CoordinateSystem of the
CompositeNavigatorProvider. |
CoordinateSystem |
getReferenceCoordinateSystem()
Method getReferenceCoordinateSystem returns the reference coordinate system. |
double |
getScaleX()
Deprecated. use getViewValues instead |
double |
getScaleY()
Deprecated. use getViewValues instead |
double[] |
getViewportCoordinates(double rangeX,
double rangeY)
Returns the coordinates of the viewport transformed to the ranges given by rangeX and rangeY. |
double[] |
getViewportValues()
Returns the values of the viewport the CompositeNavigatorProvider uses.
|
double[] |
getViewValues()
Returns the values of the view the CompositeNavigatorProvider uses.
|
boolean |
isActing()
Returns true if this instance is currently acting. |
void |
setViewportAndViewValues(double[] valuesViewport,
double[] valuesView)
Sets the values of the view and viewport the CompositeNavigatorProvider uses. |
void |
setViewportValues(double[] valuesViewport)
Sets the values of the viewport the CompositeNavigatorProvider uses.
|
void |
setViewValues(double[] values)
Sets the values of the view the CompositeNavigatorProvider uses.
|
| Methods inherited from interface com.tensegrity.generic.util.Observable |
addObserver, clearChanged, deleteObserver, deleteObservers, getObservers, notifyObservers, notifyObservers, setChanged |
| Field Detail |
public static final int VIEWPORT_TRANSLATION_X
getViewportValues() and used by
setViewportValues(double[]).
public static final int VIEWPORT_TRANSLATION_Y
getViewportValues() and used by
setViewportValues(double[]).
public static final int VIEWPORT_SCALE_X
getViewportValues() and used by
setViewportValues(double[]).
public static final int VIEWPORT_SCALE_Y
getViewportValues() and used by
setViewportValues(double[]).
public static final int VIEW_TRANSLATION_X
getViewValues() and used by
setViewValues(double[]).
public static final int VIEW_TRANSLATION_Y
getViewValues() and used by
setViewValues(double[]).
public static final int VIEW_SCALE_X
getViewValues() and used by
setViewValues(double[]).
public static final int VIEW_SCALE_Y
getViewValues() and used by
setViewValues(double[]).
| Method Detail |
public double getScaleX()
CompositeNavigatorProvider.
public double getScaleY()
CompositeNavigatorProvider.
public CoordinateSystem getCoordinateSystem()
CoordinateSystem of the
CompositeNavigatorProvider.
CoordinateSystempublic double[] getViewportValues()
CompositeNavigatorProvider uses.
The values of the viewport are listed below:
VIEWPORT_TRANSLATION_X,
VIEWPORT_TRANSLATION_Y,
VIEWPORT_SCALE_X,
VIEWPORT_SCALE_Ypublic void setViewportValues(double[] valuesViewport)
CompositeNavigatorProvider uses.
The values of the viewport are listed below:
valuesViewport - the array with the new values for the viewportVIEWPORT_TRANSLATION_X,
VIEWPORT_TRANSLATION_Y,
VIEWPORT_SCALE_X,
VIEWPORT_SCALE_Ypublic double[] getViewValues()
CompositeNavigatorProvider uses.
The values of the view are listed below:
VIEW_TRANSLATION_X,
VIEW_TRANSLATION_Y,
VIEW_SCALE_X,
VIEW_SCALE_Ypublic void setViewValues(double[] values)
CompositeNavigatorProvider uses.
The values of the view are listed below:
values - the array with the new values for the viewVIEW_TRANSLATION_X,
VIEW_TRANSLATION_Y,
VIEW_SCALE_X,
VIEW_SCALE_Y
public void setViewportAndViewValues(double[] valuesViewport,
double[] valuesView)
CompositeNavigatorProvider uses.
valuesViewport - the array with the new values for the viewport.valuesView - the array with the new values for the view.setViewportValues(double[]),
setViewValues(double[])
public double[] getViewportCoordinates(double rangeX,
double rangeY)
rangeX and rangeY.
rangeX - the range in x directionrangeY - the range in y direction
public BaseCompositeIterator getCompositeIterator()
BaseCompositeIterator that can be used to iterate
over the CompositeNavigatorProviders list of
BaseComposites.
CompositeNavigatorProviders list of
BaseCompositespublic Boundary getCompositeBoundingBox()
CompositeView. Notice that this bounding box is given
in the inner CoordinateSystem of the
CompositeView.
CompositeViewpublic CoordinateSystem getReferenceCoordinateSystem()
CoordinateSystem.public boolean isActing()
true if this instance is currently acting.
true if this instance is currently acting.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||