Coder Social home page Coder Social logo

langagedessinvectoriel's People

Contributors

anqitong avatar starsasumi avatar thomas-dot-g avatar yazgoo avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

langagedessinvectoriel's Issues

Add ShapeXMLFactory?

As ShapeFactory, usesShapeName to create for example EllipseXML, LineXML, ... etc

Create a java interface ?

With a frame to add directly shapes, colors... and display them somewhere physically (using swing)

Package structure

#16

Is it okay if I add a package "test"? So the stucture will be :
src

  • main : - View
    - Model
    - Controller
  • test

Add more style for xml

For now, the only style we have is the color: fill="green"
But their is the opacity, the gradian...

Move DrawAndShowAWT

DrawAndShowAWT should be put in view, as view is our input.
Or create a package input with the Draw and DrawAndShowAWT method (and GUI?)

Add Path Controll

We need to add in xml Path (or in Path if the num of points min is the same) a function to see if the number of points is right with the LineType

Change color... in style

Change color... in style to be able to add a lot of style (gradient, transparency...)
That would be for xml only

Travis

@anqitong can you make travis follow the project ?
I can't do it on this repo (as it is on your account).
Thx

Open/closed principle : ShapeName

This is a principle that should be respected and is wanted from the subject.
Wikipedia article : https://en.wikipedia.org/wiki/Open/closed_principle

Problem with the class ShapeName : if we want to add a new geometric shape, we need to add its name in ShapeName. So this means we'll have to modify ShapeName, which ic contrary to the open/closed principle. The structure therefore shoudl be reviewed.

Improve the ReadMe

For the mid-project, the ReadMe must be improved.
"The subject of the project" rather than the subject of the subject
And more info (how to use the software).

Specify the language

We have to specify the language that one's has to use in the main function to create something.
Language we have to describe in a doc, and that will be implemented in the code

Il doit être possible de déclarer des variables avec l'un des types puis de modifier leur valeur. Enfin, pour contrôler l'exécution des instructions, on doit disposer d'opérateurs de contrôle, tels que ceux qui suivent.

Séquence
Cet opérateur permet d'exécuter une première instruction, puis une seconde.

Alternative
Cet opérateur permet de choisir des instructions à exécuter suivant une condition booléenne. Il correspond à l'instruction classique if … then … else ….

Boucle
Cet opérateur permet de répéter un certain nombre de fois des instructions. Le nombre peut être fixé a priori (for) ou déterminé a posteriori par une condition (boucles while).

Change ShapesType

Change ShapesType into an interface, and create several class that inherit ShapesType

Idea for composite pattern

Let's see the canvas or the SVG file as a paper filled with Shapes.
Interface : Liste
Classes : FilledArea = Cons(Shape head , Liste rest)
Circle, Ellipse, ... etc implements Shape / add EmptyTile implements Shape too

And then, in svg file, we can have as attribute :
private Liste listShapes;

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.