com.partnersoft.staker.actors
Class SnapshotActor

java.lang.Object
  extended by AbstractMapEditActor
      extended by com.partnersoft.staker.actors.AbstractStakingActor
          extended by com.partnersoft.staker.actors.SnapshotActor

public class SnapshotActor
extends AbstractStakingActor

This is the editing actor for selected Snapshot objects in a job.

Copyright 2007 Partner Software, Inc.


Field Summary
 
Fields inherited from class com.partnersoft.staker.actors.AbstractStakingActor
app, DESIGN_CATEGORY, LOCATION_DATATYPE, mapset, MOVE_LINE_WITH_ARROW_STYLE, SPAN_DATATYPE, staker, STATION_DATATYPE, TEMPLATE_CATEGORY
 
Constructor Summary
SnapshotActor(MapApp app, MapSet mapset)
           
 
Method Summary
 void add(MapEditContext context)
           
 void convert(MapEditContext context)
           
 void copy(MapEditContext context)
           
 void delete(MapEditContext context)
           
 void deleteSnapshot(java.lang.Object id)
           
 void edit(MapEditContext context)
           
 Ephemeron ephemeronFor(MapEditContext context)
           
 StakingSheetFormat formatNamed(java.lang.String name)
          Looks up a specific named staking sheet format.
  getFormats()
          Lists available staking sheet formats.
 StakingSheetFormat getJobFormat()
          Returns the current staking sheet format for the currently open job.
 java.util.List<RenderMold> getJobSnapshots()
          Returns the current list of snapshots for the currently open job.
 boolean isAddSupported(MapEditContext context)
           
 boolean isConvertSupported(MapEditContext context)
           
 boolean isCopySupported(MapEditContext context)
           
 boolean isDeleteSupported(MapEditContext item)
           
 boolean isEditSupported(MapEditContext context)
           
 boolean isMoveSupported(MapEditContext item)
           
 boolean isRotateSupported(MapEditContext context)
           
 boolean isSnapShot(MapDataItem item)
           
 boolean isSnapShotCenter(MapDataItem item)
           
 boolean isSnapShotCorner(MapDataItem item)
           
 boolean isSnapShotLine(MapDataItem item)
           
 java.util.List<java.lang.String> listSupportedActions(MapEditContext item)
           
 java.util.List<MapEditTool> listSupportedTools()
           
 void move(MapEditContext context)
           
 double ratioToScale(int ratio)
           
 void rotate(MapEditContext context)
           
 int scaleToRatio(double scale)
           
 void setJobFormat(StakingSheetFormat format)
          Sets the current staking sheet format for the currently open job.
 RenderMold snapshotForItem(MapDataItem item)
          Looks up the RenderMold based on its MapDataItem representation.
 
Methods inherited from class com.partnersoft.staker.actors.AbstractStakingActor
clearSelectionList, isLocation, isMapCopyDataLine, isMapCopyDataPoint, isSpan, isStation, refresh, refreshAndReselect, refreshAndSelect, refreshAndSelect, select, select
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SnapshotActor

public SnapshotActor(MapApp app,
                     MapSet mapset)
Method Detail

getJobSnapshots

public java.util.List<RenderMold> getJobSnapshots()
Returns the current list of snapshots for the currently open job.


getJobFormat

public StakingSheetFormat getJobFormat()
Returns the current staking sheet format for the currently open job.


setJobFormat

public void setJobFormat(StakingSheetFormat format)
Sets the current staking sheet format for the currently open job.

Parameters:
format -

snapshotForItem

public RenderMold snapshotForItem(MapDataItem item)
Looks up the RenderMold based on its MapDataItem representation.

Parameters:
item - map data item representing snapshot
Returns:
snapshot corresponding to map data item

getFormats

public  getFormats()
Lists available staking sheet formats.

Returns:
naming of formats

formatNamed

public StakingSheetFormat formatNamed(java.lang.String name)
Looks up a specific named staking sheet format.

Parameters:
name - format name
Returns:
StakingSheetFormat for the name, or null if no match is found

deleteSnapshot

public void deleteSnapshot(java.lang.Object id)

isSnapShot

public boolean isSnapShot(MapDataItem item)

isSnapShotCenter

public boolean isSnapShotCenter(MapDataItem item)

isSnapShotCorner

public boolean isSnapShotCorner(MapDataItem item)

isSnapShotLine

public boolean isSnapShotLine(MapDataItem item)

scaleToRatio

public int scaleToRatio(double scale)

ratioToScale

public double ratioToScale(int ratio)

isConvertSupported

public boolean isConvertSupported(MapEditContext context)

convert

public void convert(MapEditContext context)

isCopySupported

public boolean isCopySupported(MapEditContext context)

copy

public void copy(MapEditContext context)

isAddSupported

public boolean isAddSupported(MapEditContext context)

add

public void add(MapEditContext context)

isDeleteSupported

public boolean isDeleteSupported(MapEditContext item)

delete

public void delete(MapEditContext context)

isMoveSupported

public boolean isMoveSupported(MapEditContext item)

move

public void move(MapEditContext context)

isEditSupported

public boolean isEditSupported(MapEditContext context)

edit

public void edit(MapEditContext context)

isRotateSupported

public boolean isRotateSupported(MapEditContext context)

rotate

public void rotate(MapEditContext context)

ephemeronFor

public Ephemeron ephemeronFor(MapEditContext context)

listSupportedActions

public java.util.List<java.lang.String> listSupportedActions(MapEditContext item)

listSupportedTools

public java.util.List<MapEditTool> listSupportedTools()