|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.maps.translator.DynamicMapTranslator
public class DynamicMapTranslator
Frontend for dynamic map translation - actually, for pretty much all translation now. This is the class of the "translator" variable passed to translator frontend scripts.
Copyright 2009 Partner Software, Inc.
| Constructor Summary | |
|---|---|
DynamicMapTranslator(MapSpace space,
MapSet mapSet,
DatabaseRoverSet roverSet)
|
|
DynamicMapTranslator(MapSpace space,
MapSet mapSet,
MemoryRoverSet roverSet)
|
|
DynamicMapTranslator(MapSpace space,
MapSet mapSet,
RoverSet roverSet,
java.lang.String publishedName)
|
|
| Method Summary | |
|---|---|
RoverBundle |
finish()
|
java.lang.String |
getCurrentEntityName()
|
java.lang.String |
getCurrentFileName()
|
java.lang.String |
getCurrentFrontendName()
|
RoverDatabase |
getDatabase()
|
RoverDatabaseBuilder |
getDatabaseBuilder()
|
MapDataItem |
getMapDataItem(java.lang.String findItemType,
java.lang.String findItemValue)
|
RoverProfile |
getProfile()
|
boolean |
getReadFromFrontendSpools()
|
boolean |
getWriteToFrontendSpools()
|
boolean |
isDataMerging()
|
boolean |
isIncremental()
Returns true if this is an incremental translator, and therefore allows use of the remove functions. |
boolean |
placePointsUsingDataItem(java.lang.String mapsetName,
int dataID,
java.lang.String dataType,
java.lang.String graphicType,
Naming data)
Similar to placeShapesUsingDataItem, |
boolean |
placePointsUsingFindItem(java.lang.String findItemType,
java.lang.String findItemValue,
java.lang.String dataType,
java.lang.String graphicType,
Naming data)
Similar to placeShapesUsingFindItem(), but forces the shapes to points instead of copying text or lines or other shapes. |
boolean |
placeShapesUsingDataItem(java.lang.String mapsetName,
int dataID,
java.lang.String dataType,
java.lang.String graphicType,
Naming data)
This is similar to placeShapesUsingFindItem(), but instead refers to a data item directly by rover ID. |
boolean |
placeShapesUsingFindItem(java.lang.String findItemType,
java.lang.String findItemValue,
java.lang.String dataType,
java.lang.String graphicType,
Naming data)
A powerful little method. |
void |
process(MapDataGraphic graphic)
|
boolean |
processDataItem(int dataID,
java.lang.String dataType,
java.lang.String graphicType,
Naming data)
Deprecated. old name for placeShapesUsingDataItem(). |
boolean |
processDataItemAsPoints(int dataID,
java.lang.String dataType,
java.lang.String graphicType,
Naming data)
Deprecated. placePointsUsingDataItem(), but forces the shapes to points instead of copying text or lines or other shapes. Generally the points will be placed at the beginnings of lines or other graphics. |
boolean |
processDataItemColor(int dataID,
java.lang.String dataType,
java.lang.String graphicType,
Naming data,
int red,
int green,
int blue,
int alpha)
Deprecated. |
boolean |
processFindItem(java.lang.String findItemType,
java.lang.String findItemValue,
java.lang.String dataType,
java.lang.String graphicType,
Naming data)
Deprecated. old name for placeShapesUsingFindItem |
boolean |
processFindItemAsPoints(java.lang.String findItemType,
java.lang.String findItemValue,
java.lang.String dataType,
java.lang.String graphicType,
Naming data)
Deprecated. use placePointsUsingFindItem() instead |
boolean |
processFindItemColor(java.lang.String findItemType,
java.lang.String findItemValue,
java.lang.String dataType,
java.lang.String graphicType,
Naming data,
int red,
int green,
int blue,
int alpha)
Deprecated. |
void |
removeByEntity(java.lang.String frontendName,
java.lang.String fileName,
java.lang.String entityName)
|
void |
removeByFile(java.lang.String frontendName,
java.lang.String fileName)
|
void |
removeByFrontend(java.lang.String frontendName)
|
void |
setCurrentEntityName(java.lang.String currentEntityName)
|
void |
setCurrentFileName(java.lang.String currentFileName)
|
void |
setCurrentFrontendName(java.lang.String currentFrontendName)
|
void |
setDataMerging(boolean tizit)
|
void |
setReadFromFrontendSpools(boolean readFromFrontendSpools)
|
void |
setTiledRoverBuilderListeners(java.util.Collection<TiledRoverBuilderListener> tiledRoverBuilderListeners)
|
void |
setWriteToFrontendSpools(boolean writeToFrontendSpools)
|
void |
start()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DynamicMapTranslator(MapSpace space,
MapSet mapSet,
MemoryRoverSet roverSet)
throws java.io.IOException
java.io.IOException
public DynamicMapTranslator(MapSpace space,
MapSet mapSet,
DatabaseRoverSet roverSet)
throws java.io.IOException
java.io.IOException
public DynamicMapTranslator(MapSpace space,
MapSet mapSet,
RoverSet roverSet,
java.lang.String publishedName)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public void start()
throws java.io.IOException
java.io.IOException
public RoverBundle finish()
throws java.io.IOException
java.io.IOException
public void process(MapDataGraphic graphic)
throws java.io.IOException
java.io.IOExceptionpublic boolean isIncremental()
public void removeByFrontend(java.lang.String frontendName)
throws java.sql.SQLException
java.sql.SQLException
public void removeByFile(java.lang.String frontendName,
java.lang.String fileName)
throws java.sql.SQLException
java.sql.SQLException
public void removeByEntity(java.lang.String frontendName,
java.lang.String fileName,
java.lang.String entityName)
throws java.sql.SQLException
java.sql.SQLExceptionpublic boolean isDataMerging()
public void setDataMerging(boolean tizit)
public boolean processFindItem(java.lang.String findItemType,
java.lang.String findItemValue,
java.lang.String dataType,
java.lang.String graphicType,
Naming data)
throws java.io.IOException
findItemType - findItemValue - dataType - graphicType - data -
java.io.IOException
public boolean placeShapesUsingFindItem(java.lang.String findItemType,
java.lang.String findItemValue,
java.lang.String dataType,
java.lang.String graphicType,
Naming data)
throws java.io.IOException
Generally you'll want to use a Find Item on static (background) maps. Regardless you should never specify a find item for the map set that you're calling this from, that would be a loop or something.
findItemType - findItemValue - dataType - graphicType - data -
java.io.IOException
public boolean processFindItemColor(java.lang.String findItemType,
java.lang.String findItemValue,
java.lang.String dataType,
java.lang.String graphicType,
Naming data,
int red,
int green,
int blue,
int alpha)
throws java.io.IOException
java.io.IOException
public MapDataItem getMapDataItem(java.lang.String findItemType,
java.lang.String findItemValue)
public boolean processDataItem(int dataID,
java.lang.String dataType,
java.lang.String graphicType,
Naming data)
throws java.io.IOException
dataID - dataType - graphicType - data -
java.io.IOException
public boolean placeShapesUsingDataItem(java.lang.String mapsetName,
int dataID,
java.lang.String dataType,
java.lang.String graphicType,
Naming data)
throws java.io.IOException
dataID - dataType - graphicType - data -
java.io.IOException
public boolean processDataItemColor(int dataID,
java.lang.String dataType,
java.lang.String graphicType,
Naming data,
int red,
int green,
int blue,
int alpha)
throws java.io.IOException
dataID - dataType - graphicType - data - red - green - blue - alpha -
java.io.IOException
public boolean processFindItemAsPoints(java.lang.String findItemType,
java.lang.String findItemValue,
java.lang.String dataType,
java.lang.String graphicType,
Naming data)
throws java.io.IOException
java.io.IOException
public boolean placePointsUsingFindItem(java.lang.String findItemType,
java.lang.String findItemValue,
java.lang.String dataType,
java.lang.String graphicType,
Naming data)
throws java.io.IOException
findItemType - findItemValue - dataType - graphicType - data -
java.io.IOException
public boolean processDataItemAsPoints(int dataID,
java.lang.String dataType,
java.lang.String graphicType,
Naming data)
throws java.io.IOException
java.io.IOException
public boolean placePointsUsingDataItem(java.lang.String mapsetName,
int dataID,
java.lang.String dataType,
java.lang.String graphicType,
Naming data)
throws java.io.IOException
dataID - dataType - graphicType - data -
java.io.IOExceptionpublic RoverProfile getProfile()
public java.lang.String getCurrentFrontendName()
public void setCurrentFrontendName(java.lang.String currentFrontendName)
public java.lang.String getCurrentFileName()
public void setCurrentFileName(java.lang.String currentFileName)
public java.lang.String getCurrentEntityName()
public void setCurrentEntityName(java.lang.String currentEntityName)
public RoverDatabaseBuilder getDatabaseBuilder()
public RoverDatabase getDatabase()
public boolean getWriteToFrontendSpools()
public void setWriteToFrontendSpools(boolean writeToFrontendSpools)
public boolean getReadFromFrontendSpools()
public void setReadFromFrontendSpools(boolean readFromFrontendSpools)
public void setTiledRoverBuilderListeners(java.util.Collection<TiledRoverBuilderListener> tiledRoverBuilderListeners)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||