|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--Map
Map is a class to manage the drawing map and the command apply on it. It receives the command from the button and create the drawing object associated to the command. At the end of operation, it submit the information if the command need it.
Inner classes inherited from class java.awt.Component |
java.awt.Component.AWTTreeLock |
Field Summary | |
private java.lang.String |
kstrAutoMode
Prefix to validate the auto submit command. |
private java.lang.String |
kstrCoordParam
Coordinate name parameter |
private java.lang.String |
kstrDistance
Command Distance |
private java.lang.String |
kstrEllipse
Command Ellipse |
private java.lang.String |
kstrFormParam
Form name parameter |
private java.lang.String |
kstrLegend
Command Legend |
private java.lang.String |
kstrMapCoordParam
Location to draw the map |
private java.lang.String |
kstrPoint
Command Point |
private java.lang.String |
kstrPoly
Command Polygone |
private java.lang.String |
kstrRect
Command Rectangle |
private java.lang.String |
kstrSubmit
Command Submit |
private java.lang.String |
kstrTypeParam
Type name parameter |
private boolean |
m_bAlreadyUsed
Use to know if the current command was already used. |
private java.awt.Point |
m_coord
Location of the map. |
private ButtonCtrl |
m_curButton
Current button used. |
private DrawObj |
m_curDrawObj
Current drawing object ( command ) |
private java.awt.Graphics |
m_Graphics
Graphic use for drawing |
private java.awt.Image |
m_ImagMap
Image on the map |
private Rosa2000 |
m_parent
|
private java.lang.String |
m_strCoordName
Keep the coordinate name come from parameter |
private java.lang.String |
m_strFormName
Keep the form name come from parameter |
private java.lang.String |
m_strTypeName
Keep the type name come from parameter |
Fields inherited from class java.awt.Component |
actionListenerK,
adjustmentListenerK,
appContext,
assert,
background,
BOTTOM_ALIGNMENT,
CENTER_ALIGNMENT,
changeSupport,
componentListener,
componentListenerK,
componentOrientation,
componentSerializedDataVersion,
containerListenerK,
cursor,
dropTarget,
enabled,
eventMask,
focusListener,
focusListenerK,
font,
foreground,
hasFocus,
height,
incRate,
inputMethodListener,
inputMethodListenerK,
isInc,
isPacked,
itemListenerK,
keyListener,
keyListenerK,
LEFT_ALIGNMENT,
locale,
LOCK,
minSize,
mouseListener,
mouseListenerK,
mouseMotionListener,
mouseMotionListenerK,
name,
nameExplicitlySet,
newEventsOnly,
ownedWindowK,
parent,
peer,
peerFont,
popups,
prefSize,
RIGHT_ALIGNMENT,
serialVersionUID,
textListenerK,
TOP_ALIGNMENT,
valid,
visible,
width,
windowListenerK,
x,
y |
Constructor Summary | |
Map(Rosa2000 applet,
java.awt.Image map,
int nWidth,
int nHeight)
Constructor. |
Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent e)
Called by the ButtonHandler when an operation start. |
protected void |
centerMap()
Center the map. |
void |
commitOperation()
Prepare and submit the operation. |
protected void |
destroyCommand()
Destroy the current command. |
java.awt.Graphics |
getGraphics()
Return the Graphics object used to draw the map. |
java.awt.Image |
getImage()
Return the Image of the map. |
DrawObj |
getObjectDrawer()
Return the current drawing object. |
boolean |
isAutoMode()
Check if the current command is in auto submit mode. |
void |
paint(java.awt.Graphics g)
Paints this component. |
protected void |
readLocation()
Read the location of the map. |
protected void |
readSubmitParams()
Read Submit parameters. |
void |
setObjectDrawer(DrawObj drawObj)
Set the current drawing object. |
void |
startAction(ButtonCtrl buttonPress)
Start the new operation associated to the button passed in parameter. |
void |
submitData(JSObject form)
Submit all data put in the form objects. |
Methods inherited from class java.awt.Component |
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
wait,
wait,
wait |
Field Detail |
private final java.lang.String kstrRect
private final java.lang.String kstrPoint
private final java.lang.String kstrEllipse
private final java.lang.String kstrPoly
private final java.lang.String kstrLegend
private final java.lang.String kstrDistance
private final java.lang.String kstrSubmit
private final java.lang.String kstrAutoMode
private final java.lang.String kstrFormParam
private final java.lang.String kstrTypeParam
private final java.lang.String kstrCoordParam
private final java.lang.String kstrMapCoordParam
private java.awt.Image m_ImagMap
private java.awt.Graphics m_Graphics
private DrawObj m_curDrawObj
private ButtonCtrl m_curButton
private java.awt.Point m_coord
private boolean m_bAlreadyUsed
private java.lang.String m_strFormName
private java.lang.String m_strTypeName
private java.lang.String m_strCoordName
private Rosa2000 m_parent
Constructor Detail |
public Map(Rosa2000 applet, java.awt.Image map, int nWidth, int nHeight)
applet
- Parent objectmap
- Image to hadle.nWidth
- width of the current map.nHeight
- height of the current map.Method Detail |
public void setObjectDrawer(DrawObj drawObj)
drawObj
- New drawing object.public DrawObj getObjectDrawer()
public java.awt.Image getImage()
Image
public boolean isAutoMode()
public java.awt.Graphics getGraphics()
public void paint(java.awt.Graphics g)
g
- The graphics context to use for painting.Component.update(java.awt.Graphics)
public void commitOperation()
protected void destroyCommand()
public void submitData(JSObject form)
form
- Live connect object used to sumit the data. All data should be
setted before call this methodpublic void actionPerformed(java.awt.event.ActionEvent e)
e
- ActionEvent send by the ButtonHandlerpublic void startAction(ButtonCtrl buttonPress)
buttonPress
- Active button pressed by the user.protected void readLocation()
protected void centerMap()
protected void readSubmitParams()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |