<propertyfile file="${built-jar.properties}"> | <propertyfile file="${built-jar.properties}"> | ||||
<entry key="${basedir}" value=""/> | <entry key="${basedir}" value=""/> | ||||
</propertyfile> | </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> | ||||
<target depends="init,-check-automatic-build,-clean-after-automatic-build" name="-verify-automatic-build"/> | <target depends="init,-check-automatic-build,-clean-after-automatic-build" name="-verify-automatic-build"/> | ||||
<target depends="init" name="-check-automatic-build"> | <target depends="init" name="-check-automatic-build"> | ||||
<propertyfile file="${built-clean.properties}"> | <propertyfile file="${built-clean.properties}"> | ||||
<entry key="${basedir}" value=""/> | <entry key="${basedir}" value=""/> | ||||
</propertyfile> | </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> | ||||
<target depends="init" name="-do-clean"> | <target depends="init" name="-do-clean"> | ||||
<delete dir="${build.dir}"/> | <delete dir="${build.dir}"/> |
build.xml.data.CRC32=d624b1fd | |||||
build.xml.data.CRC32=126b3ece | |||||
build.xml.script.CRC32=1a88b66a | build.xml.script.CRC32=1a88b66a | ||||
build.xml.stylesheet.CRC32=f85dc8f2@1.108.0.48 | 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. | # 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. | # 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 | nbproject/build-impl.xml.stylesheet.CRC32=12e0a6c2@1.108.0.48 |
excludes= | excludes= | ||||
includes=** | includes=** | ||||
jar.compress=false | jar.compress=false | ||||
javac.classpath=\ | |||||
${reference.Aufgabe9_mvcGrafik.jar} | |||||
javac.classpath= | |||||
# Space-separated list of extra javac options | # Space-separated list of extra javac options | ||||
javac.compilerargs= | javac.compilerargs= | ||||
javac.deprecation=false | javac.deprecation=false | ||||
meta.inf.dir=${src.dir}/META-INF | meta.inf.dir=${src.dir}/META-INF | ||||
mkdist.disabled=false | mkdist.disabled=false | ||||
platform.active=default_platform | platform.active=default_platform | ||||
project.Aufgabe9_mvcGrafik=../../T9_mvcGrafik/Aufgabe9_mvcGrafik | |||||
reference.Aufgabe9_mvcGrafik.jar=${project.Aufgabe9_mvcGrafik}/dist/Aufgabe9_mvcGrafik.jar | |||||
run.classpath=\ | run.classpath=\ | ||||
${javac.classpath}:\ | ${javac.classpath}:\ | ||||
${build.classes.dir} | ${build.classes.dir} |
<root id="test.src.dir"/> | <root id="test.src.dir"/> | ||||
</test-roots> | </test-roots> | ||||
</data> | </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> | </configuration> | ||||
</project> | </project> |
private static Logger lg = OhmLogger.getLogger(); | private static Logger lg = OhmLogger.getLogger(); | ||||
private static final int PORT = 35000; //lt. iana port > 2¹⁵ | private static final int PORT = 35000; //lt. iana port > 2¹⁵ | ||||
private static final String IP = "127.0.0.1"; | |||||
private static final String IP = "100.83.18.179"; | |||||
public Client(ChatView view, GrafikModel model, GrafikView gView) throws IOException { | public Client(ChatView view, GrafikModel model, GrafikView gView) throws IOException { |
this.view = view; | this.view = view; | ||||
this.model = model; | this.model = model; | ||||
this.gView = gView; | this.gView = gView; | ||||
} | } | ||||
@Override | @Override | ||||
public void onNext(Figur item) { | public void onNext(Figur item) { | ||||
model.addFigure(item); | model.addFigure(item); | ||||
gView.drawFigur(); | gView.drawFigur(); | ||||
lg.info("Figur wurde dem Grafikmodel hinzugefügt"); | lg.info("Figur wurde dem Grafikmodel hinzugefügt"); | ||||
this.subscription.request(1); | this.subscription.request(1); | ||||
} | } |