|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.actionprovider.commands.MapCollapseCommand
public class MapCollapseCommand
This class implements the map's collapse command.
Field Summary |
---|
Fields inherited from interface com.sas.actionprovider.CommandStatusInterface |
---|
DISABLED, ENABLED, IS_CURRENT_STATE_DISABLED, MODEL_MEMBER_DISABLED, MODEL_STATE_DISABLED, MODEL_TYPE_DISABLED |
Fields inherited from interface com.sas.commands.DynamicAttributeCommandInterface |
---|
COMMAND_NAME_PREFIX |
Constructor Summary | |
---|---|
MapCollapseCommand(java.lang.String name)
Constructor that accepts a command name |
|
MapCollapseCommand(java.lang.String name,
boolean swing)
e Constructor that accepts a command name and an action class type |
Method Summary | |
---|---|
void |
collapse(int x,
int y,
OLAPESRIMapChart map,
ESRIMap myMap)
Collapse a region based on Mouse click location |
void |
execute(java.lang.Object o)
This method implements the execute method on the CommandInterface, which is not implemented by the abstract Base classes. |
int |
getClickX()
|
int |
getClickY()
|
int |
getCommandStatus(ActionSupportFilter filter)
Returns a int value indicating whether the command is enabled for the given area as specified by the current area information encapsulate in the ActionSupportFilter. |
java.lang.Object |
getMapViewer()
|
protected int |
isExpandPresent(java.util.List steps,
java.lang.String elementName)
|
boolean |
isSupported(ActionSupportFilter actionFilter)
Deprecated. Use getCommandStatus(). |
void |
setClickX(int clickX)
|
void |
setClickY(int clickY)
|
void |
setMapViewer(java.lang.Object mapViewer)
|
Methods inherited from class com.sas.commands.BaseCommand |
---|
getLocale, getName, getNextCommandName, getText, isExecutable, isUndoable, setLocale, setName, setText, undo |
Methods inherited from class com.sas.entities.BaseEntity |
---|
containsAttributeNamed, equals, equals, getAttribute, getAttribute, getAttributeCount, getAttributes, getEntityKey, getPropertyDescriptors, getStringAttribute, listAttributeNames, removeAllAttributes, removeAttribute, reset, sameEntity, setAttribute, setAttributes, setEntityKey, toString |
Methods inherited from interface com.sas.entities.BaseEntityValueInterface |
---|
getAttribute, setAttribute |
Constructor Detail |
---|
public MapCollapseCommand(java.lang.String name)
name
- command namepublic MapCollapseCommand(java.lang.String name, boolean swing)
name
- command nameswing
- true if a swing viewer is used, false otherwiseMethod Detail |
---|
public void execute(java.lang.Object o)
execute
in interface com.sas.util.SimpleCommand
execute
in class com.sas.commands.olap.CollapseCommand
o
- currently ignoredpublic boolean isSupported(ActionSupportFilter actionFilter)
isSupported
in class com.sas.commands.olap.CollapseCommand
actionFilter
- The object that describes the current area.
public int getCommandStatus(ActionSupportFilter filter)
getCommandStatus
in interface CommandStatusInterface
getCommandStatus
in class com.sas.commands.olap.CollapseCommand
filter
- The ActionSupportFilter that encapsulates all the necessary
information to describe the current area.
BaseAction.setReturnStatus(int)
public void collapse(int x, int y, OLAPESRIMapChart map, ESRIMap myMap) throws java.lang.Exception
x
- the X pixel value of drill event.y
- the Y pixel value of drill event.
java.lang.Exception
protected int isExpandPresent(java.util.List steps, java.lang.String elementName)
isExpandPresent
in class com.sas.commands.olap.BaseTupleElementCommand
public java.lang.Object getMapViewer()
public void setMapViewer(java.lang.Object mapViewer)
mapViewer
- The mapViewer to set.public int getClickX()
public void setClickX(int clickX)
clickX
- The clickX to set.public int getClickY()
public void setClickY(int clickY)
clickY
- The clickY to set.
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |