|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--uci.gef.Layer
|
+--uci.gef.LayerDiagram
A Layer like found in many drawing applications. It contains a collection of Fig's, ordered from back to front. Each LayerDiagram contains part of the overall picture that the user is drawing. Needs-More-Work: eventually add a "Layers" menu to the Editor. FEATURE: graph_visualization
| Field Summary | |
protected Vector |
_contents
The Fig's that are contained in this layer. |
protected static int |
_nextLayerNumbered
A counter so that layers have default names like 'One', 'Two', ... |
| Fields inherited from class uci.gef.Layer |
_editors,
_onMenu |
| Constructor Summary | |
LayerDiagram()
Construct a new LayerDiagram with a default name and do not put it on the Layer's menu. |
|
LayerDiagram(String name)
Construct a new LayerDiagram with the given name, and add it to the menu of layers. |
|
| Method Summary | |
void |
add(Fig f)
Add a Fig to the contents of this layer. |
void |
bringForward(Fig f)
Reorder the given Fig in this layer. |
void |
bringInFrontOf(Fig f1,
Fig f2)
Reorder the given Fig in this layer. |
void |
bringToFront(Fig f)
Reorder the given Fig in this layer. |
Enumeration |
elements()
Enumerate over all Fig's in this layer. |
Vector |
getContents()
Reply the contents of this layer. |
FigNode |
getPortFig(Object port)
Find the FigNode that is being used to visualize the given NetPort, or null if there is none in this layer. |
Fig |
hit(Rectangle r)
Reply the 'top' Fig under the given (mouse) coordinates. |
int |
indexOf(Fig f)
Add a Fig to the contents of this layer. |
void |
insertAt(Fig f,
int index)
Add a Fig to the contents of this layer. |
protected static String |
numberWordFor(int n)
A utility function to give the spelled-out word for numbers. |
void |
paintContents(Graphics g)
Paint all the Fig's that belong to this layer. |
void |
postLoad()
|
void |
postSave()
|
void |
preSave()
|
int |
presentationCountFor(Object obj)
|
Fig |
presentationFor(Object obj)
Find the Fig that visualized the given NetNode in this layer, or null if there is none. |
void |
remove(Fig f)
Remove the given Fig from this layer. |
void |
removeAll()
Delete all Fig's from this layer. |
void |
reorder(Fig f,
int function)
Reorder the given Fig in this layer. |
void |
sendBackward(Fig f)
Reorder the given Fig in this layer. |
void |
sendToBack(Fig f)
Reorder the given Fig in this layer. |
| Methods inherited from class uci.gef.Layer |
addEditor,
adjust,
damaged,
deleted,
elementsIn,
fetHidden,
findLayerNamed,
getContentsEdgesOnly,
getContentsNoEdges,
getEditors,
getGrayed,
getLocked,
getName,
getOnMenu,
getPerspectiveType,
nodesIn,
paint,
paintGrayContents,
print,
refreshEditors,
removeEditor,
setGrayed,
setHidden,
setLocked,
setName,
setOnMenu,
setPerspectiveType,
toString |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Field Detail |
protected Vector _contents
protected static int _nextLayerNumbered
| Constructor Detail |
public LayerDiagram()
public LayerDiagram(String name)
| Method Detail |
protected static String numberWordFor(int n)
public void add(Fig f)
public void insertAt(Fig f,
int index)
public int indexOf(Fig f)
public void remove(Fig f)
public Enumeration elements()
public Vector getContents()
public Fig hit(Rectangle r)
public void removeAll()
public FigNode getPortFig(Object port)
public Fig presentationFor(Object obj)
public int presentationCountFor(Object obj)
public void paintContents(Graphics g)
public void sendToBack(Fig f)
public void bringToFront(Fig f)
public void sendBackward(Fig f)
public void bringForward(Fig f)
public void bringInFrontOf(Fig f1,
Fig f2)
public void reorder(Fig f,
int function)
public void preSave()
public void postSave()
public void postLoad()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||