|
|||||||||
| 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.SingleInterface
public class SingleInterface
Represents an interface for a network type with single binding.
NetworkTypes,
Serialized Form| 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 SingleBinding |
binding
|
| 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 | |
|---|---|
SingleInterface(Element config,
Point pos,
PCNode owner,
VerinecStudio gui)
Load a node from XML and add the binding. |
|
SingleInterface(int type,
Point pos,
int side,
PCNode owner,
VerinecStudio gui)
Create an interface that can have only one binding. |
|
| Method Summary | |
|---|---|
void |
addBinding(NwBinding nwBinding)
Changes the binding of this interface. |
void |
connect(NwHub hub)
Connect the binding of this interface to a hub. |
void |
deconnect()
Deconnect the binding of this interface. |
void |
delete()
Deletes the interface and its binding. |
Vector |
getBindings()
Get all bindings owned by this interface. |
void |
removeBinding(NwBinding nwBinding)
Remove the (only) binding from the interface. |
void |
setBounds(int x,
int y,
int w,
int h)
Set the position and size of the interface. |
| 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 SingleBinding binding
| Constructor Detail |
|---|
public SingleInterface(int type,
Point pos,
int side,
PCNode owner,
VerinecStudio gui)
type - The network type of this interface.pos - The position of the interface.side - The side of the node this interface is on.owner - the owner of the interface.gui - The main application.
public SingleInterface(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 void connect(NwHub hub)
hub - The hub to connect to.public void deconnect()
public void delete()
delete in class NwInterfacepublic final void addBinding(NwBinding nwBinding)
addBinding in class NwInterfacenwBinding - the binding that shall be added.public void removeBinding(NwBinding nwBinding)
removeBinding in class NwInterfacenwBinding - The binding to removepublic Vector getBindings()
getBindings in class NwInterface
public 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 component
|
Copyright © 2005 Verinec, DIUF | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||