Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4ec7e6bc4c | ||
|
|
e8f0fd53d6 | ||
|
|
7ae10ac02f |
@@ -1067,15 +1067,6 @@ is divided into following sections:
|
||||
<propertyfile file="${built-jar.properties}">
|
||||
<entry key="${basedir}" value=""/>
|
||||
</propertyfile>
|
||||
<antcall target="-maybe-call-dep">
|
||||
<param name="call.built.properties" value="${built-jar.properties}"/>
|
||||
<param location="${project.Aufgabe9_mvcGrafik}" name="call.subproject"/>
|
||||
<param location="${project.Aufgabe9_mvcGrafik}/build.xml" name="call.script"/>
|
||||
<param name="call.target" value="jar"/>
|
||||
<param name="transfer.built-jar.properties" value="${built-jar.properties}"/>
|
||||
<param name="transfer.not.archive.disabled" value="true"/>
|
||||
<param name="transfer.do.jlink" value="false"/>
|
||||
</antcall>
|
||||
</target>
|
||||
<target depends="init,-check-automatic-build,-clean-after-automatic-build" name="-verify-automatic-build"/>
|
||||
<target depends="init" name="-check-automatic-build">
|
||||
@@ -1747,15 +1738,6 @@ is divided into following sections:
|
||||
<propertyfile file="${built-clean.properties}">
|
||||
<entry key="${basedir}" value=""/>
|
||||
</propertyfile>
|
||||
<antcall target="-maybe-call-dep">
|
||||
<param name="call.built.properties" value="${built-clean.properties}"/>
|
||||
<param location="${project.Aufgabe9_mvcGrafik}" name="call.subproject"/>
|
||||
<param location="${project.Aufgabe9_mvcGrafik}/build.xml" name="call.script"/>
|
||||
<param name="call.target" value="clean"/>
|
||||
<param name="transfer.built-clean.properties" value="${built-clean.properties}"/>
|
||||
<param name="transfer.not.archive.disabled" value="true"/>
|
||||
<param name="transfer.do.jlink" value="false"/>
|
||||
</antcall>
|
||||
</target>
|
||||
<target depends="init" name="-do-clean">
|
||||
<delete dir="${build.dir}"/>
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
build.xml.data.CRC32=d624b1fd
|
||||
build.xml.data.CRC32=126b3ece
|
||||
build.xml.script.CRC32=1a88b66a
|
||||
build.xml.stylesheet.CRC32=f85dc8f2@1.108.0.48
|
||||
# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
|
||||
# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
|
||||
nbproject/build-impl.xml.data.CRC32=d624b1fd
|
||||
nbproject/build-impl.xml.script.CRC32=476a1ac9
|
||||
nbproject/build-impl.xml.data.CRC32=126b3ece
|
||||
nbproject/build-impl.xml.script.CRC32=fdc076e6
|
||||
nbproject/build-impl.xml.stylesheet.CRC32=12e0a6c2@1.108.0.48
|
||||
|
||||
@@ -37,8 +37,7 @@ endorsed.classpath=
|
||||
excludes=
|
||||
includes=**
|
||||
jar.compress=false
|
||||
javac.classpath=\
|
||||
${reference.Aufgabe9_mvcGrafik.jar}
|
||||
javac.classpath=
|
||||
# Space-separated list of extra javac options
|
||||
javac.compilerargs=
|
||||
javac.deprecation=false
|
||||
@@ -79,8 +78,6 @@ manifest.file=manifest.mf
|
||||
meta.inf.dir=${src.dir}/META-INF
|
||||
mkdist.disabled=false
|
||||
platform.active=default_platform
|
||||
project.Aufgabe9_mvcGrafik=../../T9_mvcGrafik/Aufgabe9_mvcGrafik
|
||||
reference.Aufgabe9_mvcGrafik.jar=${project.Aufgabe9_mvcGrafik}/dist/Aufgabe9_mvcGrafik.jar
|
||||
run.classpath=\
|
||||
${javac.classpath}:\
|
||||
${build.classes.dir}
|
||||
|
||||
+1
-10
@@ -11,15 +11,6 @@
|
||||
<root id="test.src.dir"/>
|
||||
</test-roots>
|
||||
</data>
|
||||
<references xmlns="http://www.netbeans.org/ns/ant-project-references/1">
|
||||
<reference>
|
||||
<foreign-project>Aufgabe9_mvcGrafik</foreign-project>
|
||||
<artifact-type>jar</artifact-type>
|
||||
<script>build.xml</script>
|
||||
<target>jar</target>
|
||||
<clean-target>clean</clean-target>
|
||||
<id>jar</id>
|
||||
</reference>
|
||||
</references>
|
||||
<references xmlns="http://www.netbeans.org/ns/ant-project-references/1"/>
|
||||
</configuration>
|
||||
</project>
|
||||
|
||||
@@ -6,10 +6,8 @@
|
||||
package ChatProgramm;
|
||||
|
||||
import ChatProgramm.controller.CommandController;
|
||||
import ChatProgramm.controller.GrafikController;
|
||||
import ChatProgramm.model.GrafikModel;
|
||||
import ChatProgramm.model.ChatModel;
|
||||
import ChatProgramm.view.ChatView;
|
||||
import ChatProgramm.view.GrafikView;
|
||||
import javax.swing.JOptionPane;
|
||||
import javax.swing.UIManager;
|
||||
|
||||
@@ -21,21 +19,12 @@ public class Start
|
||||
{
|
||||
public Start()
|
||||
{
|
||||
GrafikModel model = new GrafikModel();
|
||||
ChatView view = new ChatView();
|
||||
GrafikView zeichenflaeche = view.getGvZeichenflaeche();
|
||||
zeichenflaeche.setModel(model);
|
||||
|
||||
GrafikController controller = new GrafikController(zeichenflaeche, model);
|
||||
controller.registerEvents();
|
||||
|
||||
CommandController controller_commands = new CommandController(view, model, controller, zeichenflaeche);
|
||||
ChatModel model = new ChatModel(view);
|
||||
view.getGvZeichenflaeche().setModel(model.getGrafikDaten());
|
||||
CommandController controller_commands = new CommandController(view, model);
|
||||
controller_commands.registerEvents();
|
||||
controller_commands.registerCommands();
|
||||
|
||||
|
||||
|
||||
|
||||
view.setVisible(true);
|
||||
}
|
||||
|
||||
|
||||
@@ -8,41 +8,43 @@ package ChatProgramm.controller;
|
||||
import ChatProgramm.controller.commands.CommandConnect;
|
||||
import ChatProgramm.controller.commands.CommandInvoker;
|
||||
import ChatProgramm.controller.commands.CommandSend;
|
||||
import ChatProgramm.model.GrafikModel;
|
||||
import ChatProgramm.model.ChatModel;
|
||||
import ChatProgramm.view.ChatView;
|
||||
import ChatProgramm.view.GrafikView;
|
||||
import java.awt.Component;
|
||||
import java.awt.Point;
|
||||
import java.awt.event.ActionEvent;
|
||||
import java.awt.event.ActionListener;
|
||||
import java.awt.event.MouseAdapter;
|
||||
import java.awt.event.MouseEvent;
|
||||
import static java.awt.event.MouseEvent.MOUSE_RELEASED;
|
||||
import java.awt.event.MouseMotionListener;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author ahren
|
||||
*/
|
||||
public class CommandController implements ActionListener{
|
||||
public class CommandController extends MouseAdapter implements MouseMotionListener, ActionListener{
|
||||
|
||||
private ChatView view;
|
||||
private GrafikModel model;
|
||||
private GrafikView gView;
|
||||
private ChatModel model;
|
||||
private CommandInvoker invoker;
|
||||
private GrafikController controller;
|
||||
|
||||
public CommandController(ChatView view, GrafikModel model, GrafikController controller, GrafikView gView){
|
||||
public CommandController(ChatView view, ChatModel model){
|
||||
this.view = view;
|
||||
this.model = model;
|
||||
this.gView = gView;
|
||||
this.invoker = new CommandInvoker();
|
||||
this.controller = controller;
|
||||
}
|
||||
|
||||
public void registerEvents(){
|
||||
view.getBtnConnect().addActionListener(this);
|
||||
view.addMouseMotionListener(this);
|
||||
view.addMouseListener(this);
|
||||
}
|
||||
|
||||
public void registerCommands(){
|
||||
CommandSend commandSend = new CommandSend(view.getGvZeichenflaeche(), model);
|
||||
invoker.addCommand(view.getBtnConnect(), new CommandConnect(view, commandSend, model, gView));
|
||||
this.controller.setCommand(commandSend);
|
||||
invoker.addCommand(view.getBtnConnect(), new CommandConnect(view, model));
|
||||
|
||||
invoker.addCommand(view.getGvZeichenflaeche(), new CommandSend(view, model));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -55,6 +57,20 @@ public CommandController(ChatView view, GrafikModel model, GrafikController cont
|
||||
invoker.executeCommand(key);
|
||||
|
||||
}
|
||||
@Override
|
||||
public void mouseDragged(MouseEvent evt)
|
||||
{
|
||||
Point p = evt.getPoint();
|
||||
model.getGrafikDaten().addPoint(p);
|
||||
view.getGvZeichenflaeche().drawPoint();
|
||||
}
|
||||
@Override
|
||||
public void mouseReleased(MouseEvent evt)
|
||||
{
|
||||
model.getGrafikDaten().endShape();
|
||||
invoker.executeCommand(view.getGvZeichenflaeche());
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,67 +0,0 @@
|
||||
/*
|
||||
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
|
||||
* Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
|
||||
*/
|
||||
|
||||
package ChatProgramm.controller;
|
||||
|
||||
import ChatProgramm.controller.commands.CommandSend;
|
||||
import java.awt.Point;
|
||||
import java.awt.event.MouseAdapter;
|
||||
import java.awt.event.MouseEvent;
|
||||
import java.awt.event.MouseMotionListener;
|
||||
import ChatProgramm.model.GrafikModel;
|
||||
import ChatProgramm.view.GrafikView;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author le
|
||||
*/
|
||||
public class GrafikController extends MouseAdapter implements MouseMotionListener
|
||||
{
|
||||
private GrafikView view;
|
||||
private GrafikModel model;
|
||||
private CommandSend commandSend;
|
||||
|
||||
public GrafikController(GrafikView view, GrafikModel model)
|
||||
{
|
||||
this.view = view;
|
||||
this.model = model;
|
||||
commandSend = null;
|
||||
}
|
||||
|
||||
void setCommand(CommandSend command){
|
||||
this.commandSend = command;
|
||||
}
|
||||
|
||||
public void registerEvents()
|
||||
{
|
||||
view.addMouseMotionListener(this);
|
||||
view.addMouseListener(this);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public void mouseDragged(MouseEvent evt)
|
||||
{
|
||||
Point p = evt.getPoint();
|
||||
model.addPoint(p);
|
||||
view.drawPoint();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void mouseMoved(MouseEvent e)
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public void mouseReleased(MouseEvent evt)
|
||||
{
|
||||
model.endShape();
|
||||
if(commandSend != null){
|
||||
commandSend.execute();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -5,9 +5,11 @@
|
||||
|
||||
package ChatProgramm.controller.commands;
|
||||
|
||||
import ChatProgramm.model.ChatModel;
|
||||
import ChatProgramm.model.Client;
|
||||
import ChatProgramm.model.GrafikModel;
|
||||
import ChatProgramm.model.GrafikDaten;
|
||||
import ChatProgramm.model.Server;
|
||||
import ChatProgramm.model.Transmitter;
|
||||
import ChatProgramm.util.OhmLogger;
|
||||
import ChatProgramm.view.ChatView;
|
||||
import ChatProgramm.view.GrafikView;
|
||||
@@ -26,22 +28,16 @@ public class CommandConnect implements CommandInterface
|
||||
private JRadioButton rBtnClient;
|
||||
private JDialog dialogFenster;
|
||||
private static Logger lg = OhmLogger.getLogger();
|
||||
private CommandSend commandSend;
|
||||
private ChatView view;
|
||||
private GrafikModel model;
|
||||
private GrafikView gView;
|
||||
private ChatModel model;
|
||||
|
||||
public CommandConnect(ChatView view, CommandInterface value, GrafikModel model, GrafikView gView)
|
||||
public CommandConnect(ChatView view, ChatModel model)
|
||||
{
|
||||
rBtnServer = view.getBtnServer();
|
||||
rBtnClient = view.getBtnClient();
|
||||
dialogFenster = view.getjDialog1();
|
||||
|
||||
commandSend = (CommandSend) value;
|
||||
|
||||
this.view = view;
|
||||
this.model = model;
|
||||
this.gView = gView;
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -50,7 +46,7 @@ public class CommandConnect implements CommandInterface
|
||||
if(rBtnServer.isSelected()){
|
||||
lg.info("Server ausgewählt");
|
||||
try {
|
||||
commandSend.setTransmitter(new Server(view, model, gView));
|
||||
model.setTransmitterToServer();
|
||||
} catch (IOException ex) {
|
||||
lg.info("Die Verbindung zum Server ist Fehlgeschlagen");
|
||||
}
|
||||
@@ -59,13 +55,12 @@ public class CommandConnect implements CommandInterface
|
||||
if(rBtnClient.isSelected()){
|
||||
lg.info("Client ausgewählt");
|
||||
try {
|
||||
commandSend.setTransmitter(new Client(view, model, gView));
|
||||
model.setTransmitterToClient();
|
||||
} catch (IOException ex) {
|
||||
lg.info("Die Verbindung zum Client ist Fehlgeschlagen");
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
dialogFenster.setVisible(false);
|
||||
}
|
||||
|
||||
|
||||
@@ -5,16 +5,11 @@
|
||||
|
||||
package ChatProgramm.controller.commands;
|
||||
|
||||
import ChatProgramm.model.Client;
|
||||
import ChatProgramm.model.ChatModel;
|
||||
import ChatProgramm.model.Figur;
|
||||
import ChatProgramm.model.GrafikModel;
|
||||
import ChatProgramm.model.Server;
|
||||
import ChatProgramm.model.TransmitterInterface;
|
||||
import ChatProgramm.util.OhmLogger;
|
||||
import ChatProgramm.view.ChatView;
|
||||
import java.util.logging.Logger;
|
||||
import javax.swing.JTextField;
|
||||
import ChatProgramm.view.GrafikView;
|
||||
|
||||
/**
|
||||
*
|
||||
@@ -24,33 +19,22 @@ public class CommandSend implements CommandInterface
|
||||
{
|
||||
private static Logger lg = OhmLogger.getLogger();
|
||||
|
||||
private GrafikView view;
|
||||
private GrafikModel model;
|
||||
private ChatView view;
|
||||
private ChatModel model;
|
||||
|
||||
public TransmitterInterface transmitterInterface;
|
||||
public Server server;
|
||||
public Client client;
|
||||
|
||||
|
||||
|
||||
|
||||
public CommandSend(GrafikView view, GrafikModel model)
|
||||
public CommandSend(ChatView view, ChatModel model)
|
||||
{
|
||||
this.view = view;
|
||||
this.model = model;
|
||||
//ToDo: Hier muss auch der gFrame referenziert werden
|
||||
//this.eingabeFeld = view.getTfNachricht();
|
||||
transmitterInterface = null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void execute()
|
||||
{
|
||||
Figur aktuelleFigur = model.getFiguren().getLast();
|
||||
Figur aktuelleFigur = model.getGrafikDaten().getFiguren().getLast();
|
||||
try
|
||||
{
|
||||
transmitterInterface.send(aktuelleFigur);
|
||||
|
||||
model.getTransmitter().send(aktuelleFigur);
|
||||
}
|
||||
catch(Exception NullPointerExeption)
|
||||
{
|
||||
@@ -58,7 +42,6 @@ public class CommandSend implements CommandInterface
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean isUndoable()
|
||||
{
|
||||
@@ -69,15 +52,4 @@ public class CommandSend implements CommandInterface
|
||||
public void undo()
|
||||
{
|
||||
}
|
||||
|
||||
void setTransmitter(TransmitterInterface transmitter) {
|
||||
lg.info("Transmitter wird gesetzt");
|
||||
if(transmitter != null){
|
||||
this.transmitterInterface = transmitter;
|
||||
|
||||
}
|
||||
else{
|
||||
lg.info("der transmitter kommt hier als null an");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
|
||||
* Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
|
||||
*/
|
||||
|
||||
package ChatProgramm.model;
|
||||
|
||||
import ChatProgramm.util.OhmLogger;
|
||||
import ChatProgramm.view.ChatView;
|
||||
import java.io.IOException;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author ahren
|
||||
*/
|
||||
public class ChatModel
|
||||
{
|
||||
|
||||
private Transmitter transmitter;
|
||||
private static Logger lg = OhmLogger.getLogger();
|
||||
private GrafikDaten grafikdaten = new GrafikDaten();
|
||||
private ChatView view;
|
||||
|
||||
public ChatModel(ChatView view)
|
||||
{
|
||||
this.view = view;
|
||||
}
|
||||
|
||||
public GrafikDaten getGrafikDaten()
|
||||
{
|
||||
return grafikdaten;
|
||||
}
|
||||
|
||||
public void setTransmitterToClient() throws IOException
|
||||
{
|
||||
transmitter = new Client(view, this);
|
||||
}
|
||||
|
||||
public void setTransmitterToServer()throws IOException
|
||||
{
|
||||
transmitter = new Server(view, this);
|
||||
}
|
||||
|
||||
public Transmitter getTransmitter()
|
||||
{
|
||||
return transmitter;
|
||||
}
|
||||
}
|
||||
@@ -23,8 +23,8 @@ public class Client extends Transmitter {
|
||||
private static final String IP = "127.0.0.1";
|
||||
|
||||
|
||||
public Client(ChatView view, GrafikModel model, GrafikView gView) throws IOException {
|
||||
super(view, model, gView);
|
||||
public Client(ChatView view, ChatModel model) throws IOException {
|
||||
super(view, model);
|
||||
connect();
|
||||
initIO();
|
||||
}
|
||||
|
||||
@@ -24,14 +24,14 @@ import ChatProgramm.util.OhmLogger;
|
||||
*
|
||||
* @author le
|
||||
*/
|
||||
public class GrafikModel {
|
||||
public class GrafikDaten {
|
||||
|
||||
private Figur aktuelleFigur;
|
||||
private ArrayList<Figur> figuren;
|
||||
private Preferences pref;
|
||||
private static Logger lg = OhmLogger.getLogger();
|
||||
|
||||
public GrafikModel() {
|
||||
public GrafikDaten() {
|
||||
aktuelleFigur = new Figur();
|
||||
figuren = new ArrayList<>();
|
||||
}
|
||||
@@ -20,16 +20,12 @@ public class ReceiveAdapter implements Subscriber<Figur> {
|
||||
private static Logger lg = OhmLogger.getLogger();
|
||||
|
||||
private ChatView view;
|
||||
private GrafikModel model;
|
||||
private GrafikView gView;
|
||||
private ChatModel model;
|
||||
private Flow.Subscription subscription;
|
||||
|
||||
public ReceiveAdapter(ChatView view, GrafikModel model, GrafikView gView) {
|
||||
public ReceiveAdapter(ChatView view, ChatModel model) {
|
||||
this.view = view;
|
||||
this.model = model;
|
||||
this.gView = gView;
|
||||
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -39,9 +35,8 @@ public class ReceiveAdapter implements Subscriber<Figur> {
|
||||
}
|
||||
|
||||
public void onNext(Figur item) {
|
||||
model.addFigure(item);
|
||||
gView.drawFigur();
|
||||
|
||||
model.getGrafikDaten().addFigure(item);
|
||||
view.getGvZeichenflaeche().drawFigur();
|
||||
lg.info("Figur wurde dem Grafikmodel hinzugefügt");
|
||||
this.subscription.request(1);
|
||||
}
|
||||
|
||||
@@ -21,8 +21,8 @@ public class Server extends Transmitter
|
||||
private static Logger lg = OhmLogger.getLogger();
|
||||
private static final int PORT = 35000; //lt. iana port > 2¹⁵
|
||||
|
||||
public Server(ChatView view, GrafikModel model, GrafikView gView) throws IOException {
|
||||
super(view, model, gView);
|
||||
public Server(ChatView view, ChatModel model) throws IOException {
|
||||
super(view, model);
|
||||
connect();
|
||||
initIO();
|
||||
}
|
||||
|
||||
@@ -5,18 +5,11 @@
|
||||
package ChatProgramm.model;
|
||||
|
||||
import ChatProgramm.view.ChatView;
|
||||
import ChatProgramm.view.GrafikView;
|
||||
import java.io.BufferedInputStream;
|
||||
import java.io.BufferedOutputStream;
|
||||
import java.io.BufferedReader;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.io.InputStreamReader;
|
||||
import java.io.ObjectInputStream;
|
||||
import java.io.ObjectOutputStream;
|
||||
import java.io.OutputStream;
|
||||
import java.io.OutputStreamWriter;
|
||||
import java.io.PrintWriter;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.net.Socket;
|
||||
import java.util.concurrent.ExecutorService;
|
||||
@@ -31,7 +24,7 @@ import java.util.logging.Logger;
|
||||
*
|
||||
* @author ahren
|
||||
*/
|
||||
public abstract class Transmitter implements Runnable, Subscriber<Figur>, TransmitterInterface {
|
||||
public abstract class Transmitter implements Runnable {
|
||||
|
||||
static final int timeout = 60000;
|
||||
private static final int PORT = 35000;
|
||||
@@ -47,14 +40,14 @@ public abstract class Transmitter implements Runnable, Subscriber<Figur>, Transm
|
||||
private ExecutorService eService;
|
||||
private String receivedString;
|
||||
private ChatView view;
|
||||
private GrafikModel model;
|
||||
private ChatModel model;
|
||||
private ReceiveAdapter receiveAdapter;
|
||||
|
||||
public Transmitter(ChatView view, GrafikModel model, GrafikView gView)
|
||||
public Transmitter(ChatView view, ChatModel model)
|
||||
{
|
||||
socket = new Socket();
|
||||
eService = null;
|
||||
receiveAdapter = new ReceiveAdapter(view, model, gView);
|
||||
receiveAdapter = new ReceiveAdapter(view, model);
|
||||
figurPublisher = new SubmissionPublisher<>();
|
||||
this.view = view;
|
||||
addWertSubscription(receiveAdapter);
|
||||
@@ -93,7 +86,6 @@ public abstract class Transmitter implements Runnable, Subscriber<Figur>, Transm
|
||||
* @param figur
|
||||
* @throws IOException
|
||||
*/
|
||||
@Override
|
||||
public void send(Figur figur){
|
||||
try
|
||||
{
|
||||
@@ -140,28 +132,7 @@ public abstract class Transmitter implements Runnable, Subscriber<Figur>, Transm
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void onSubscribe(Flow.Subscription subscription) {
|
||||
throw new UnsupportedOperationException("Not supported yet."); // Generated from nbfs://nbhost/SystemFileSystem/Templates/Classes/Code/GeneratedMethodBody
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onNext(Figur item) {
|
||||
throw new UnsupportedOperationException("Not supported yet."); // Generated from nbfs://nbhost/SystemFileSystem/Templates/Classes/Code/GeneratedMethodBody
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onError(Throwable throwable) {
|
||||
throw new UnsupportedOperationException("Not supported yet."); // Generated from nbfs://nbhost/SystemFileSystem/Templates/Classes/Code/GeneratedMethodBody
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onComplete() {
|
||||
throw new UnsupportedOperationException("Not supported yet."); // Generated from nbfs://nbhost/SystemFileSystem/Templates/Classes/Code/GeneratedMethodBody
|
||||
}
|
||||
|
||||
private void startempfangen()
|
||||
private void startempfangen()
|
||||
{
|
||||
synchronized (this){
|
||||
}
|
||||
|
||||
@@ -1,16 +0,0 @@
|
||||
/*
|
||||
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
|
||||
* Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Interface.java to edit this template
|
||||
*/
|
||||
package ChatProgramm.model;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author ahren
|
||||
*/
|
||||
public interface TransmitterInterface
|
||||
{
|
||||
public void send(Figur figur);
|
||||
public Figur receive();
|
||||
|
||||
}
|
||||
@@ -22,7 +22,7 @@ import javax.print.attribute.HashPrintRequestAttributeSet;
|
||||
import javax.print.attribute.standard.DialogTypeSelection;
|
||||
import javax.swing.JComponent;
|
||||
import javax.swing.JOptionPane;
|
||||
import ChatProgramm.model.GrafikModel;
|
||||
import ChatProgramm.model.GrafikDaten;
|
||||
import ChatProgramm.util.OhmLogger;
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ public class GrafikView extends JComponent
|
||||
private static Dimension EINS = new Dimension(1, 1); // Dimension ist eine Klasse die width udn height hält
|
||||
private Rectangle2D.Float pixel;
|
||||
private Line2D.Float line;
|
||||
private GrafikModel model;
|
||||
private GrafikDaten model;
|
||||
|
||||
private Point from = null;
|
||||
private Point to = null;
|
||||
@@ -47,7 +47,7 @@ public class GrafikView extends JComponent
|
||||
line = new Line2D.Float();
|
||||
}
|
||||
|
||||
public void setModel(GrafikModel model)
|
||||
public void setModel(GrafikDaten model)
|
||||
{
|
||||
this.model = model;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user