public abstract class RouteElement
extends java.lang.Object
implements java.io.Serializable
Arc/node delete happens when an existing arc is replaced by two or more new arcs, or when an existing route needs to be uprooted in order to make room for new routes. Author: gainsley
Modifier and Type | Class and Description |
---|---|
static class |
RouteElement.RouteElementAction
RouteElementAction is a type safe enum class for
describing the action to be take by a RouteElement
object.
|
Modifier | Constructor and Description |
---|---|
protected |
RouteElement(RouteElement.RouteElementAction action,
Cell cell)
Private Constructor
|
Modifier and Type | Method and Description |
---|---|
abstract void |
addHighlightArea(Highlighter highlighter)
Adds RouteElement to highlights
|
abstract ElectricObject |
doAction()
Perform the action specified by RouteElementAction action.
|
RouteElement.RouteElementAction |
getAction()
get RouteElementAction
|
Cell |
getCell()
Return the cell in which this RouteElement will do it's action
|
boolean |
isDone()
see if action has been done
|
boolean |
isShowHighlight()
Get show highlight property
|
void |
setDone()
set done to true to indication action has been done
|
void |
setShowHighlight(boolean b)
Set show highlight property
|
abstract java.lang.String |
toString()
Return string decribing the RouteElement
|
protected RouteElement(RouteElement.RouteElementAction action, Cell cell)
action
- the action this RouteElementAction will do.public boolean isDone()
public void setDone()
public RouteElement.RouteElementAction getAction()
public Cell getCell()
public boolean isShowHighlight()
public void setShowHighlight(boolean b)
public abstract java.lang.String toString()
toString
in class java.lang.Object
public abstract ElectricObject doAction()
public abstract void addHighlightArea(Highlighter highlighter)