Klasse WiringComponentImpl

Alle implementierten Schnittstellen:
MouseListener, EventListener
Bekannte direkte Unterklassen:
SystemImpl, WireImpl

public abstract class WiringComponentImpl extends BaseWiringComponent implements MouseListener
Abstract class for systems and wires. Implements common tasks, e.g. Layout, UI. Layout: Manages Layout User Interface: Receives mouse events, shows MeasureChoice and activates Measures.
  • Konstruktordetails

    • WiringComponentImpl

      public WiringComponentImpl()
      Parameter:
      name - (short) name of the WC as shown in the MainWindow
  • Methodendetails

    • setParent

      public void setParent(MainWindow parent)
      Called by the WiringLayout. Needed for creating subwindows to parent (Dialog(Frame);).
      Parameter:
      parent - the main Frame
    • getParent

      public MainWindow getParent()
      Gibt zurück:
      Parent/Owner Frame
    • name

      public void name(String name)
    • name

      public void name(Label label)
    • name

      public void name(String name, String longName)
      Sets both name and long name
      Parameter:
      name -
      longName -
    • nameIfNotNamed

      public void nameIfNotNamed(Label label)
    • getName

      public String getName()
      (full) name of the WC as shown in the PropertyWindow
      Setzt außer Kraft:
      getName in Klasse BaseWiringComponent
      Gibt zurück:
      Name of the WC
    • getFullLabel

      public String getFullLabel()
      Gibt zurück:
      Concatenated (short) name and long name, e.g. "s(t) - Sendesignal". If a long name doesn't exist only the (short) name, e.g. "s(t)", is returned.
    • setLongLabel

      public void setLongLabel(String longLabel)
      Parameter:
      longLabel - (long) name of the WC as shown in the PropertyWindow or measure window
    • getLongLabel

      public String getLongLabel()
    • setSymbolResolver

      public void setSymbolResolver(SymbolResolver symbolResolver)
    • getSymbolResolver

      public SymbolResolver getSymbolResolver()
    • getSymbols

      public Symbols getSymbols()
      Layout:
    • addSymbol

      public Symbol addSymbol(Position position)
    • addSymbol

      public Symbol addSymbol(Symbol symbolInstance)
    • addSymbol

      public Symbol addSymbol(int xPosition, int yPosition)
    • addPointBetween

      public void addPointBetween(Symbol symbolInstance)
    • setName

      public void setName(Symbol symbolInstance)
    • setSymbol

      public void setSymbol(CanvasFactory symbol)
    • getCanvas

      public Canvas getCanvas(Symbol symbol)
    • toString

      public String toString()
      Setzt außer Kraft:
      toString in Klasse Object
    • getFromWC

      public abstract WiringComponentImpl getFromWC()
    • getToWC

      public abstract WiringComponentImpl getToWC()
    • getToWC

      public abstract WiringComponentImpl getToWC(int port)
    • isMux

      public abstract boolean isMux()
    • isHidden

      public boolean isHidden()
    • hide

      public void hide()
    • mouseClicked

      public void mouseClicked(MouseEvent e)
      User Interface:
      Angegeben von:
      mouseClicked in Schnittstelle MouseListener
    • mouseEntered

      public void mouseEntered(MouseEvent e)
      Angegeben von:
      mouseEntered in Schnittstelle MouseListener
    • mouseExited

      public void mouseExited(MouseEvent e)
      Angegeben von:
      mouseExited in Schnittstelle MouseListener
    • mousePressed

      public void mousePressed(MouseEvent e)
      Angegeben von:
      mousePressed in Schnittstelle MouseListener
    • mouseReleased

      public void mouseReleased(MouseEvent e)
      Angegeben von:
      mouseReleased in Schnittstelle MouseListener
    • setSymbols

      public void setSymbols(Symbols consolidatedSymbols)