com.partnersoft.staker.actors
Class AbstractStakingActor

java.lang.Object
  extended by AbstractMapEditActor
      extended by com.partnersoft.staker.actors.AbstractStakingActor
Direct Known Subclasses:
AddAnnotationLineActor, AddAnnotationSymbolActor, AddAnnotationTextActor, AddLocationActor, AddMapDataCopyActor, AddStationActor, AddTemplateActor, AnnotationLineActor, AnnotationSymbolActor, AnnotationTextActor, ConstructionIdActor, FollowTheCurveActor, LocationActor, LocationUnitActor, MapDataCopyActor, SnapshotActor, SpanActor, StationActor, UnitsLegendActor, ViewOtherJobActor

public abstract class AbstractStakingActor
extends AbstractMapEditActor

Superclass for MapEditActors in the staker. Mainly takes care of the standard variables needed.

Copyright 2007 Partner Software, Inc.


Field Summary
protected  MapApp app
           
protected  java.lang.String DESIGN_CATEGORY
           
static java.lang.String LOCATION_DATATYPE
           
protected  MapSet mapset
           
protected  java.lang.String MOVE_LINE_WITH_ARROW_STYLE
           
static java.lang.String SPAN_DATATYPE
           
protected  Staker staker
           
static java.lang.String STATION_DATATYPE
           
protected  java.lang.String TEMPLATE_CATEGORY
           
 
Constructor Summary
AbstractStakingActor(MapApp app, MapSet mapset)
           
 
Method Summary
 void clearSelectionList()
          Clears the current selection list.
 boolean isLocation(MapEditContext context)
          Determines if the selected item on the map is a Location or not.
 boolean isMapCopyDataLine(MapEditContext context)
           
 boolean isMapCopyDataPoint(MapDataLink link)
           
 boolean isSpan(MapEditContext context)
          Determines if the selected item on the map is a Span or not.
 boolean isStation(MapEditContext context)
          Determines if the selected item on the map is a Station or not.
 void refresh()
          Fires a job change event, which triggers a mapset refresh.
 boolean refreshAndReselect(MapEditContext context)
          Refreshes and reselects the currently selected data item based on its guid and other context.
 boolean refreshAndSelect(java.lang.String dataType, java.lang.String fieldName, java.lang.Object fieldValue, double x, double y)
          Selects the item with the desired data type, field name, and field value.
 boolean refreshAndSelect(java.lang.String dataType, java.lang.String fieldName, java.lang.Object fieldValue, XyPoint location)
          Refreshes, then calls select.
 boolean select(java.lang.String dataType, java.lang.String fieldName, java.lang.Object fieldValue, double x, double y)
          Selects the item with the desired data type, field name, and field value.
 boolean select(java.lang.String dataType, java.lang.String fieldName, java.lang.Object fieldValue, XyPoint location)
          Selects the item with the desired data type, field name, and field value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DESIGN_CATEGORY

protected final java.lang.String DESIGN_CATEGORY
See Also:
Constant Field Values

TEMPLATE_CATEGORY

protected final java.lang.String TEMPLATE_CATEGORY
See Also:
Constant Field Values

LOCATION_DATATYPE

public static final java.lang.String LOCATION_DATATYPE
See Also:
Constant Field Values

STATION_DATATYPE

public static final java.lang.String STATION_DATATYPE
See Also:
Constant Field Values

SPAN_DATATYPE

public static final java.lang.String SPAN_DATATYPE
See Also:
Constant Field Values

MOVE_LINE_WITH_ARROW_STYLE

protected final java.lang.String MOVE_LINE_WITH_ARROW_STYLE
See Also:
Constant Field Values

staker

protected Staker staker

mapset

protected MapSet mapset

app

protected MapApp app
Constructor Detail

AbstractStakingActor

public AbstractStakingActor(MapApp app,
                            MapSet mapset)
Method Detail

refresh

public void refresh()
Fires a job change event, which triggers a mapset refresh.


clearSelectionList

public void clearSelectionList()
Clears the current selection list. Useful after you delete something.


select

public boolean select(java.lang.String dataType,
                      java.lang.String fieldName,
                      java.lang.Object fieldValue,
                      XyPoint location)
Selects the item with the desired data type, field name, and field value. Useful for automatically selecting something after moving or adding it.


select

public boolean select(java.lang.String dataType,
                      java.lang.String fieldName,
                      java.lang.Object fieldValue,
                      double x,
                      double y)
Selects the item with the desired data type, field name, and field value. Useful for automatically selecting something after moving or adding it.


refreshAndSelect

public boolean refreshAndSelect(java.lang.String dataType,
                                java.lang.String fieldName,
                                java.lang.Object fieldValue,
                                XyPoint location)
Refreshes, then calls select.


refreshAndSelect

public boolean refreshAndSelect(java.lang.String dataType,
                                java.lang.String fieldName,
                                java.lang.Object fieldValue,
                                double x,
                                double y)
Selects the item with the desired data type, field name, and field value. Useful for automatically selecting something after moving or adding it.


refreshAndReselect

public boolean refreshAndReselect(MapEditContext context)
Refreshes and reselects the currently selected data item based on its guid and other context.


isLocation

public boolean isLocation(MapEditContext context)
Determines if the selected item on the map is a Location or not.


isStation

public boolean isStation(MapEditContext context)
Determines if the selected item on the map is a Station or not.


isSpan

public boolean isSpan(MapEditContext context)
Determines if the selected item on the map is a Span or not.


isMapCopyDataPoint

public boolean isMapCopyDataPoint(MapDataLink link)

isMapCopyDataLine

public boolean isMapCopyDataLine(MapEditContext context)