jtoolbox
Class Pfeil

java.lang.Object
  extended by jtoolbox.Pfeil
All Implemented Interfaces:
IComponente

public class Pfeil
extends java.lang.Object
implements IComponente


Field Summary
protected  int breite
           
protected  java.lang.String farbe
           
protected  jtoolbox.CPfeil obj
           
protected  boolean sichtbar
           
protected  boolean spitzeEnde
           
protected  boolean spitzeStart
           
protected  int x1
           
protected  int x2
           
protected  int y1
           
protected  int y2
           
 
Constructor Summary
Pfeil()
          Konstruktor fuer Hauptfenster
Pfeil(IContainer behaelter)
          Konstruktor
Pfeil(IContainer behaelter, int x1, int y1, int x2, int y2)
          allgemeiner Konstruktor
Pfeil(int x1, int y1, int x2, int y2)
          Konstruktor fuer Hauptfenster
 
Method Summary
 void cObjectSetzen()
           
 BasisComponente getBasisComponente()
          Das Interface IComponente fordert eine Methode die eine BasisComponente zurueckliefert.
 void setzeBreite(int neueBreite)
          Liniendicke setzen
 void setzeEnden(boolean start, boolean ende)
          Enden setzen
 void setzeEndpunkte(int neuesX1, int neuesY1, int neuesX2, int neuesY2)
           
 void setzeFarbe(java.lang.String neueFarbe)
           
 void sichtbarMachen()
           
 void unsichtbarMachen()
          Mache unsichtbar.
 void verschieben(int dx, int dy)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

breite

protected int breite

farbe

protected java.lang.String farbe

obj

protected jtoolbox.CPfeil obj

sichtbar

protected boolean sichtbar

spitzeEnde

protected boolean spitzeEnde

spitzeStart

protected boolean spitzeStart

x1

protected int x1

x2

protected int x2

y1

protected int y1

y2

protected int y2
Constructor Detail

Pfeil

public Pfeil()
Konstruktor fuer Hauptfenster


Pfeil

public Pfeil(IContainer behaelter)
Konstruktor

Parameters:
behaelter -

Pfeil

public Pfeil(IContainer behaelter,
             int x1,
             int y1,
             int x2,
             int y2)
allgemeiner Konstruktor

Parameters:
behaelter -
x2 -
y2 -

Pfeil

public Pfeil(int x1,
             int y1,
             int x2,
             int y2)
Konstruktor fuer Hauptfenster

Parameters:
x1 -
y1 -
x2 -
y2 -
Method Detail

cObjectSetzen

public void cObjectSetzen()

getBasisComponente

public BasisComponente getBasisComponente()
Das Interface IComponente fordert eine Methode die eine BasisComponente zurueckliefert. Sie wird benoetigt, um ein Objekt zu einem anderen Behaelter hinzuzufuegen

Specified by:
getBasisComponente in interface IComponente

setzeBreite

public void setzeBreite(int neueBreite)
Liniendicke setzen

Parameters:
neueDicke -

setzeEnden

public void setzeEnden(boolean start,
                       boolean ende)
Enden setzen

Parameters:
start -
ende -

setzeEndpunkte

public void setzeEndpunkte(int neuesX1,
                           int neuesY1,
                           int neuesX2,
                           int neuesY2)
Parameters:
neuesX1 -
neuesY1 -
neuesX2 -
neuesY2 -

setzeFarbe

public void setzeFarbe(java.lang.String neueFarbe)

sichtbarMachen

public void sichtbarMachen()

unsichtbarMachen

public void unsichtbarMachen()
Mache unsichtbar. Wenn es bereits unsichtbar ist, tue nichts.


verschieben

public void verschieben(int dx,
                        int dy)