|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.n52.oxf.context.ContextWindow
public class ContextWindow
This class works like a bean to store the actual values for 'height' and 'width' of the viewing area (ContextWindow).
| Field Summary | |
|---|---|
protected OXFEventSupport |
eventSupport
|
protected int |
height
|
protected int |
width
|
| Constructor Summary | |
|---|---|
ContextWindow()
|
|
ContextWindow(int height,
int width)
|
|
| Method Summary | |
|---|---|
void |
addEventListener(IEventListener listener)
Add an IEventListener to the OXFEventSupport. |
int |
getHeight()
|
int |
getWidth()
|
void |
removeEventListener(IEventListener listener)
Remove an IEventListener from the OXFEventSupport. |
void |
serializeToContext(StringBuffer sb)
serializes the implementing class (downwardly) compatible to the "Web Map Context Documents" Specification (OGC 05-005) of the OGC in version 1.1.0. |
void |
setDimension(int newWidth,
int newHeight)
sets the height and the width of this ContextWindow. |
void |
setHeight(int h)
sets the height of this ContextWindow. |
void |
setWidth(int w)
sets the width of this ContextWindow. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected int height
protected int width
protected OXFEventSupport eventSupport
| Constructor Detail |
|---|
public ContextWindow()
public ContextWindow(int height,
int width)
| Method Detail |
|---|
public void setDimension(int newWidth,
int newHeight)
throws OXFEventException
newHeight - newWidth -
OXFException
OXFEventExceptionpublic int getHeight()
public void setHeight(int h)
throws OXFEventException
height -
OXFException
OXFEventExceptionpublic int getWidth()
public void setWidth(int w)
throws OXFEventException
width -
OXFException
OXFEventExceptionpublic void addEventListener(IEventListener listener)
addEventListener in interface IEventEmitterpublic void removeEventListener(IEventListener listener)
removeEventListener in interface IEventEmitterpublic String toString()
toString in class Objectpublic void serializeToContext(StringBuffer sb)
IContextSerializableXML
serializeToContext in interface IContextSerializableXML
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||