Class WireConnector
java.lang.Object
|
+----Element
|
+----WireElement
|
+----WireConnector
- public class WireConnector
- extends WireElement
Wire Connector
-
absMaxVoltage
-
-
WireConnector()
- Constructs WireConnector without initial wires.
-
WireConnector(WireConnector)
- Constructs new WireConnector from given one.
-
paint(Graphics, int, Dimension, boolean, boolean)
-
Paints the element on the given graphic context.
-
setContact(int)
-
-
setContacts(Element)
-
-
setMaxVoltage(double)
-
absMaxVoltage
public double absMaxVoltage
WireConnector
public WireConnector()
- Constructs WireConnector without initial wires.
WireConnector
public WireConnector(WireConnector e)
- Constructs new WireConnector from given one.
- Parameters:
- e - WireConnector to copy.
setContacts
public void setContacts(Element e)
setContact
public void setContact(int dir)
setMaxVoltage
public void setMaxVoltage(double newMax)
paint
public void paint(Graphics g,
int angle,
Dimension size,
boolean isSimulating,
boolean animated)
- Paints the element on the given graphic context.
- Overrides:
- paint in class WireElement