|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
org.opengis.display.canvas and to org.opengis.display.renderer.
@Deprecated public interface Canvas
Canvas defines a common abstraction for implementations that
manage the display and user manipulation of Graphic instances.
A Canvas with an XY (Cartesian) display field should support
the following properties:
| Method Summary | |
|---|---|
Graphic |
add(Graphic graphic)
Deprecated. Replaced by org.opengis.display.renderer.Renderer#graphics. |
Graphic |
addAsEditable(Graphic graphic)
Deprecated. No direct repacement. |
void |
addCanvasListener(CanvasListener listener)
Deprecated. Moved to org.opengis.display.canvas.canvas#addCanvasListener. |
void |
addEventManager(EventManager eventManager)
Deprecated. Adds the EventManager subinterface if it not currently in
the Canvas's collection of EventManagers. |
void |
dispose()
Deprecated. Replaced by org.opengis.display.renderer.Renderer#dispose. |
void |
disposeEventManagers()
Deprecated. Method that may be called when the EventManagers of a
Canvas are no longer needed. |
void |
enableCanvasHandler(CanvasHandler handler)
Deprecated. Replaced by org.opengis.display.canvas.canvas#getController. |
EventManager |
findEventManager(Class eventManagerClass)
Deprecated. Returns the EventManager subinterface, based on the class type. |
CanvasHandler |
getActiveCanvasHandler()
Deprecated. Replaced by getController. A side effect is to suppress
one level of indirection. |
CoordinateReferenceSystem |
getDisplayCoordinateReferenceSystem()
Deprecated. Moved to CanvasState.getDisplayCRS(). |
MathTransform |
getDisplayToObjectiveTransform()
Deprecated. Moved to CanvasState.getDisplayToObjectiveTransform(). |
DisplayFactory |
getFactory()
Deprecated. Returns the DisplayFactory associated with this
Canvas. |
Graphic[] |
getGraphicsAt(DirectPosition directPosition)
Deprecated. Returns the Graphics that occupy the given
DirectPosition. |
Graphic[] |
getGraphicsIn(Envelope bounds)
Deprecated. Returns the Graphics that occupy the given
Envelope. |
Object |
getImplHint(String hintName)
Deprecated. Moved to Canvas.getRenderingHint(java.awt.RenderingHints.Key). |
CoordinateReferenceSystem |
getObjectiveCoordinateReferenceSystem()
Deprecated. Moved to CanvasState.getObjectiveCRS(). |
MathTransform |
getObjectiveToDisplayTransform()
Deprecated. Moved to CanvasState.getObjectiveToDisplayTransform(). |
CanvasState |
getState()
Deprecated. Moved to Canvas.getState(). |
String |
getTitle()
Deprecated. Moved to CanvasState.getTitle(). |
Graphic |
getTopGraphicAt(DirectPosition directPosition)
Deprecated. Returns the top-most Graphic that occupies given
DirectPosition. |
String |
getUID()
Deprecated. No replacement. |
boolean |
isVisible(DirectPosition coordinate)
Deprecated. Moved to Canvas.isVisible(org.opengis.geometry.DirectPosition). |
void |
remove(Graphic graphic)
Deprecated. Replaced by org.opengis.display.renderer.Renderer#graphics. |
void |
removeCanvasHandler(CanvasHandler handler)
Deprecated. Replaced by org.opengis.display.canvas.canvas#getController. |
void |
removeCanvasListener(CanvasListener listener)
Deprecated. Moved to org.opengis.display.canvas.canvas#removeCanvasListener. |
void |
setImplHint(String hintName,
Object hint)
Deprecated. Moved to Canvas.setRenderingHint(java.awt.RenderingHints.Key, java.lang.Object). |
void |
setObjectiveCoordinateReferenceSystem(CoordinateReferenceSystem crs)
Deprecated. Moved to org.opengis.display.canvas.CanvasSController#setObjectiveCRS. |
void |
setObjectiveCoordinateReferenceSystem(CoordinateReferenceSystem crs,
MathTransform objectiveToDisplay,
MathTransform displayToObjective)
Deprecated. No replacement. |
void |
setTitle(String title)
Deprecated. Moved to CanvasController.setTitle(org.opengis.util.InternationalString). |
| Method Detail |
|---|
@Deprecated void dispose()
org.opengis.display.renderer.Renderer#dispose.
Canvas is no longer
needed. Implementations may use this method to release resources or to
return the object to an object pool. It is an error to reference a
Canvas after its dispose method has been called.
void disposeEventManagers()
EventManagers of a
Canvas are no longer needed. Implementations may use this
method to release resources or to return the object to an object pool. It
is an error to reference any EventManager s of a
Canvas after this method has been called.
@Deprecated String getUID()
Canvas, which is
assigned by the implementation. The UID is immutable and may be used to
retrieve a particular Canvas from the
GraphicFactory.
Canvas.@Deprecated void setTitle(String title)
CanvasController.setTitle(org.opengis.util.InternationalString).
Canvas. The title of a
Canvas may or may not be displayed on the titlebar of an
application's window.
title - the new title for this Canvas.@Deprecated String getTitle()
CanvasState.getTitle().
Canvas.
Canvas.DisplayFactory getFactory()
DisplayFactory associated with this
Canvas.
DisplayFactory.@Deprecated CanvasState getState()
Canvas.getState().
Canvas. The
object returned will implement CanvasState or one of its
subinterfaces, depending on the type of Canvas.
@Deprecated boolean isVisible(DirectPosition coordinate)
Canvas.isVisible(org.opengis.geometry.DirectPosition).
Canvas.
@Deprecated Graphic add(Graphic graphic)
org.opengis.display.renderer.Renderer#graphics.
Graphic to this Canvas.
Implementations should respect the zOrder retrieved by calling
Graphic.getGraphicStyle().getZOrderHint(). When two added
Graphics have the same zOrder, the most recently added
one should be on top.
graphic - the Graphic to add.@Deprecated Graphic addAsEditable(Graphic graphic)
Graphic to this Canvas,
immediately placing the Graphic in an editing/drawing
mode, as defined by the Canvas implementation. A
Graphic added as editable may or may not be visible when
it is added, as it may wait for user input to define the
Graphic's values through mouse gestures or key input.
graphic - the Graphic to add as editable.@Deprecated void remove(Graphic graphic)
org.opengis.display.renderer.Renderer#graphics.
Graphic from this Canvas.
graphic - the Graphic to remove.EventManager findEventManager(Class eventManagerClass)
Note: While the class implementing Canvas may additionally
implement EventManager subinterface(s). While this design
is simple, it limits the Canvas object to the input
mechanisms supported by to those particular EventManager
subinterface(s), and thus is discouraged.
If the class implementing Canvas does not implement the
particular EventManager subinterface, then this method can
look up the EventManager via an implementation-specific
mechanism. Otherwise, if the class implementing Canvas does
implement the particular EventManager subinterface, this
method can return the this reference.
eventManagerClass - the class type of the EventManager subinterface.
void addEventManager(EventManager eventManager)
EventManager subinterface if it not currently in
the Canvas's collection of EventManagers.
eventManager - the EventManager type to be added to
the Canvas's collection.Graphic getTopGraphicAt(DirectPosition directPosition)
Graphic that occupies given
DirectPosition. The top-most Graphic will
have the highest zOrder.
directPosition - the DirectPosition at which to look
for Graphics.
Graphic at the given
DirectPosition.Graphic[] getGraphicsAt(DirectPosition directPosition)
Graphics that occupy the given
DirectPosition. The order is implementation-specific.
directPosition - the DirectPosition at which to look
for Graphics.
Graphics at the given
DirectPosition.Graphic[] getGraphicsIn(Envelope bounds)
Graphics that occupy the given
Envelope. The order is implementation-specific.
bounds - the Envelope in which to look for
Graphics.
Graphics in the given
Envelope.@Deprecated void addCanvasListener(CanvasListener listener)
org.opengis.display.canvas.canvas#addCanvasListener.
Canvas has changed.
@Deprecated void removeCanvasListener(CanvasListener listener)
org.opengis.display.canvas.canvas#removeCanvasListener.
@Deprecated void enableCanvasHandler(CanvasHandler handler)
org.opengis.display.canvas.canvas#getController.
CanvasHandler, removing the current
handler (if any). The new handler's
handlerEnabled(CanvasController) method is called, passing
in a new, active CanvasController that will allow the
programmer to modify the Canvas's properties.
Implementation suggestion:
public void enableCanvasHandler(CanvasHandler handler) {
if (handler != activeHandler) {
if (activeHandler != null) {
removeCanvasHandler(activeHandler);
}
activeHandler = handler;
activeController = new CanvasController(this);
activeHandler.handlerEnabled(activeController);
}
}
@Deprecated void removeCanvasHandler(CanvasHandler handler)
org.opengis.display.canvas.canvas#getController.
CanvasHandler from this
Canvas.
@Deprecated CanvasHandler getActiveCanvasHandler()
getController. A side effect is to suppress
one level of indirection.
CanvasHandler or null if no
handler is active.
@Deprecated
void setImplHint(String hintName,
Object hint)
Canvas.setRenderingHint(java.awt.RenderingHints.Key, java.lang.Object).
hintName - the name of the hint.hint - the rendering hint.@Deprecated Object getImplHint(String hintName)
Canvas.getRenderingHint(java.awt.RenderingHints.Key).
hintName - the name of the hint.
@Deprecated CoordinateReferenceSystem getDisplayCoordinateReferenceSystem()
CanvasState.getDisplayCRS().
Canvas. The display Coordinate Reference System
corresponds to the geometry of the display device (e.g. video monitor =
Cartesian, planetarium = Spherical).
@Deprecated CoordinateReferenceSystem getObjectiveCoordinateReferenceSystem()
CanvasState.getObjectiveCRS().
Canvas.
This is the default objective Coordinate Reference System for this
Canvas.
@Deprecated void setObjectiveCoordinateReferenceSystem(CoordinateReferenceSystem crs)
org.opengis.display.canvas.CanvasSController#setObjectiveCRS.
Canvas.
This is the default objective Coordinate Reference System for this
Canvas.
crs - the objective Coordinate Reference System
IncompatibleOperationException - when the specified transformation does not apply to either the objective or the display Coordinate Reference Systems.
@Deprecated
void setObjectiveCoordinateReferenceSystem(CoordinateReferenceSystem crs,
MathTransform objectiveToDisplay,
MathTransform displayToObjective)
throws IncompatibleOperationException
Canvas.
This is the default objective Coordinate Reference System for this
Canvas.
crs - the objective Coordinate Reference SystemobjectiveToDisplay - the trasformation that converts between this objective Coordinate Reference System and the Canvas display Coordinate Reference System.displayToObjective - the trasformation that converts between the Canvas display Coordinate Reference System and this objective Coordinate Reference System.
IncompatibleOperationException - when the specified transformation does not apply to either the objective or the display Coordinate Reference Systems.@Deprecated MathTransform getObjectiveToDisplayTransform()
CanvasState.getObjectiveToDisplayTransform().
Canvas. This allows the Canvas to resolve
conversions of coordinates between the objective and display Coordinate Reference Systems.
@Deprecated MathTransform getDisplayToObjectiveTransform()
CanvasState.getDisplayToObjectiveTransform().
Canvas. This allows the Canvas to resolve
conversions of coordinates between the display and objective Coordinate Reference Systems.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||