|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectEventObject
CanvasEvent
public abstract class CanvasEvent
Event sent by a canvas to it registered listeners when its state changed.
| Field Summary |
|---|
| Fields inherited from class EventObject |
|---|
source |
| Constructor Summary | |
|---|---|
CanvasEvent(Canvas source)
Creates a new event having the given canvas as a source. |
|
| Method Summary | |
|---|---|
abstract MathTransform |
getChange()
Returns the change from the old state to the new state in units of objective CRS. |
abstract MathTransform |
getChange(CanvasState other)
Deprecated. This method does not said is the change is computed from the old or the new state. If we need this functionality, then the method should move to CanvasState. |
abstract RenderingState |
getNewRenderingstate()
|
abstract CanvasState |
getNewState()
Returns the canvas state after the change. |
abstract RenderingState |
getOldRenderingstate()
|
abstract CanvasState |
getOldState()
Returns the canvas state prior the change. |
Canvas |
getSource()
Returns the canvas on which the event occured. |
| Methods inherited from class EventObject |
|---|
toString |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CanvasEvent(Canvas source)
source - The canvas on which the event initially occurred.
IllegalArgumentException - If the given source is null.| Method Detail |
|---|
public Canvas getSource()
getSource in class EventObjectpublic abstract CanvasState getOldState()
public abstract CanvasState getNewState()
public abstract MathTransform getChange()
Example: if the objective CRS uses a map projection with axis in metres, and if the user pan the map, then the change is an affine transform containing translation terms in metres.
@Deprecated public abstract MathTransform getChange(CanvasState other)
CanvasState.
public abstract RenderingState getOldRenderingstate()
public abstract RenderingState getNewRenderingstate()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||