|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JLabel
verinec.gui.core.NwComponent
verinec.gui.core.NwInterface
verinec.gui.core.MultiInterface
public class MultiInterface
Represents an interface for the network type serial.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class verinec.gui.core.NwComponent |
|---|
NwComponent.Mouse |
| Nested classes/interfaces inherited from class javax.swing.JLabel |
|---|
JLabel.AccessibleJLabel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
private Vector |
bindingVector
|
| Fields inherited from class verinec.gui.core.NwInterface |
|---|
owner, side |
| Fields inherited from class verinec.gui.core.NwComponent |
|---|
componentIcon, componentIconNeg, config, drawPanel, gui, pos, selection, type |
| Fields inherited from class javax.swing.JLabel |
|---|
labelFor |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface javax.swing.SwingConstants |
|---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
protected |
MultiInterface(Element config,
Point pos,
PCNode owner,
VerinecStudio gui)
Instantiates the bindings. |
|
MultiInterface(int type,
Point pos,
int side,
PCNode owner,
VerinecStudio gui)
Create an interface with one binding. |
| Method Summary | |
|---|---|
void |
addBinding(NwBinding nwBinding)
Adds a binding to the interface. |
protected Point |
bindingPosition()
Calculates the position for the next binding to be added. |
protected Point |
bindingPosition(int pos)
Calculates the position for the binding at position pos. |
private void |
computeNewBindingPosition()
Computes the new positions for the bindings. |
MultiBinding |
createBinding()
Create a new MultiBinding and add it to this interface. |
void |
delete()
Deletes all bindings and lets the super class delete itselves. |
Vector |
getBindings()
Get all bindings owned by this interface. |
void |
removeBinding(NwBinding nwBinding)
Removes a binding from the interface. |
void |
setBounds(int x,
int y,
int w,
int h)
Move the interface and all its bindings. |
| Methods inherited from class verinec.gui.core.NwInterface |
|---|
createElement, createInterfaceInfo, getLayoutChild, getOwner, getSide, setSide |
| Methods inherited from class verinec.gui.core.NwComponent |
|---|
addContextMenu, addContextMenuSeparator, changeIcon, getAbsX, getAbsY, getConfig, getDefaultSize, getRandomId, getType, initialize, isSelected, moveComponent, resizeComponent, resizeDefaultSize, setBounds, setLocation, setLocation, setSelected, showIcon |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private Vector bindingVector
| Constructor Detail |
|---|
public MultiInterface(int type,
Point pos,
int side,
PCNode owner,
VerinecStudio gui)
type - Network type to create interface for.pos - The position of the interface.side - The side of the node this interface is on.owner - Node this interface is part of.gui - The main application.
protected MultiInterface(Element config,
Point pos,
PCNode owner,
VerinecStudio gui)
config - the config element of the component.pos - The position of the interface.owner - the owner of the interface.gui - The main application.| Method Detail |
|---|
public final void setBounds(int x,
int y,
int w,
int h)
setBounds in class NwComponentx - Top left corner x coordinatey - Top left corner y coordinatew - With of componenth - Height of componentprivate void computeNewBindingPosition()
public void delete()
delete in class NwInterfacepublic Vector getBindings()
getBindings in class NwInterfacepublic void removeBinding(NwBinding nwBinding)
removeBinding in class NwInterfacenwBinding - The binding to remove.public MultiBinding createBinding()
public void addBinding(NwBinding nwBinding)
addBinding in class NwInterfacenwBinding - The new binding.protected Point bindingPosition()
protected Point bindingPosition(int pos)
bindingPosition() to add a new binding.
pos - The position of the binding in the list.
|
Copyright © 2005 Verinec, DIUF | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||