|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.maps.model.RoverSet
com.partnersoft.maps.model.JobRoverSet
public class JobRoverSet
A RoverSet based on Jobs. This class is made much more complicated than a read-only map set by the demands of an interactive GUI. We track not only the jobs in the set, but which one is the current focus for manipulation. We do the same for the current alternative, current chain, and so forth. This differs subtly from the immediate selection (which may be as specific as a location unit, or as general as the whole job). To distinguish it from the selection, we call it the "editing context". Rendering is based on the configurable legend for a job and its components. The editing context is indicated by an additional rendering of the "skeleton" of the current chain. The skeleton provides consistent graphical handles and feedback for interacting with and modifying a chain. For example, a chain may not render its locations (it forms a polyline or line mesh without icons), yet you need to be able to select and move the locations. The same holds true for chains whose spans are not configured to be visible.
| Field Summary | |
|---|---|
static int |
ALTERNATIVE
|
static int |
CHAIN
|
static int |
JOB
|
static int |
LOCATION
|
static int |
LOCATIONUNIT
|
static int |
SPAN
|
static int |
SPANUNIT
|
| Fields inherited from class com.partnersoft.maps.model.RoverSet |
|---|
areaToGroup, areaTypes, changeGadget, enabled, findItems, groups, legendAliases, lineToGroup, lineTypes, lookups, mapSet, pointToGroup, pointTypes, renderLegends, space, textToGroup, textTypes, viewSettings |
| Constructor Summary | |
|---|---|
JobRoverSet(MapSpace space,
MapSet mapSet)
|
|
| Method Summary | |
|---|---|
void |
addJob(Job newJob)
|
void |
addToJob(Job newJob)
Adds data from one job into the current job. |
MapDataItem |
dataFor(int dataID)
Subclasses must also provide this facility. |
JobDataComponent |
fetchJobDataComponent(int dataID)
|
void |
fireChanged()
We need update the rover before notifying anyone about the changes. |
int[] |
getContextIDs()
|
Alternative |
getCurrentAlternative()
|
Chain |
getCurrentChain()
|
Job |
getCurrentJob()
|
Location |
getCurrentLocation()
|
Span |
getCurrentSpan()
|
int |
getDataItemCount()
This returns the number of data items. |
Naming |
getDataTypes()
|
java.util.ArrayList |
getJobs()
|
java.lang.String |
getName()
|
JobDataComponent |
getSelection()
|
RoverBytes |
graphicsFor(int dataID)
All subclasses must provide this facility. |
RoverBytes[] |
graphicsInside(MapViewFrame frame)
Currently returns all job data, whether visible or not. |
void |
reload()
|
void |
removeJob(Job oldJob)
|
void |
replaceJob(Job newJob)
Replaces the current job. |
void |
select(int dataID)
Selects the JobDataComponent with the given ID, and sets the context appropriately. |
void |
select(JobDataComponent what)
Selects the given JobDataComponent, and sets the context appropriately. |
void |
setName(java.lang.String newName)
|
void |
setSpinning(boolean tizit)
|
void |
setStretching(boolean tizit)
|
void |
stretchTo(double x,
double y)
|
| Methods inherited from class com.partnersoft.maps.model.RoverSet |
|---|
addChangeListener, areaTypeCodeFor, findItemNamed, getAreaTypes, getFindItems, getGroupIDFor, getLineTypes, getMapSet, getPointTypes, getProfile, getTextTypes, isDrawable, isEnabled, lineTypeCodeFor, lookupNamed, pointTypeCodeFor, removeChangeListener, scaleRegionFor, setEnabled, setProfile, textTypeCodeFor, updateGroups |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int JOB
public static final int ALTERNATIVE
public static final int CHAIN
public static final int LOCATION
public static final int SPAN
public static final int LOCATIONUNIT
public static final int SPANUNIT
| Constructor Detail |
|---|
public JobRoverSet(MapSpace space,
MapSet mapSet)
| Method Detail |
|---|
public void replaceJob(Job newJob)
public void addToJob(Job newJob)
public void addJob(Job newJob)
public void removeJob(Job oldJob)
public java.util.ArrayList getJobs()
public void select(int dataID)
public void select(JobDataComponent what)
public void fireChanged()
fireChanged in class RoverSetpublic JobDataComponent fetchJobDataComponent(int dataID)
public void setStretching(boolean tizit)
public void setSpinning(boolean tizit)
public void stretchTo(double x,
double y)
public RoverBytes[] graphicsInside(MapViewFrame frame)
graphicsInside in class RoverSetpublic RoverBytes graphicsFor(int dataID)
graphicsFor in class RoverSetpublic MapDataItem dataFor(int dataID)
dataFor in class RoverSetpublic int getDataItemCount()
RoverSet
getDataItemCount in class RoverSetpublic Naming getDataTypes()
public void reload()
throws java.io.IOException
reload in class RoverSetjava.io.IOExceptionpublic int[] getContextIDs()
public java.lang.String getName()
public void setName(java.lang.String newName)
public Job getCurrentJob()
public Alternative getCurrentAlternative()
public Chain getCurrentChain()
public Location getCurrentLocation()
public Span getCurrentSpan()
public JobDataComponent getSelection()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||