GithubHelp home page GithubHelp logo

authman2 / jextras Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 2.51 MB

A Java library that contains resources that can be used to easily implement extra features into one's Java program.

License: GNU General Public License v3.0

Java 98.91% Makefile 1.09%

jextras's Introduction

JExtras

A Java library that contains resources that can be used to easily implement extra features into one's Java program.

  • Year: 2016
  • Language: Java
  • Programmer: Adeola Uthman

Collectionsje

  • ArrayConversion: A class with methods that are responsible for turning one dimensional arrays into two dimensional arrays. One must indicate which one dimensional array he/she wants to convert, and at which index to break it up by.
  • Tuple: A Tuple object. Can contain any number of objects, and can hold different types as well (Integer, String, Object, etc.).

Filesje

  • JSONParser: Able to parse jsons. Able to parse strings, numbers, arrays, dictionaries, and tuples.
  • Load: Used for loading serialized objects. It returns the loaded object, so one must simply state which object the newly loaded object should be stored in and must cast it to the appropriate type of object.
  • ReadFile: Reads a file and returns the contents of that file as a string. That string can then be used and manipulated elsewhere in one's program. This class also contains methods for turning a string into an array of different types from a separator (similar to String's "split" method).
  • Save: Used for saving objects. A Non-Serializable error will be thrown if the object you are trying to save does not implement Serializable.

Otherje

  • EdgeDetector: A standard edge detector that can be used for any type of program that requires edge detection. To use it, one must first specify the image that he/she would like to find edges in. Then, the "detect" or "Detect" methods can be used by specifying through parameters whether or not it should create a JFrame to display the image and the amount of difference to look for in the image. The lower-case detect method returns a TupleList (see above) containing all of the coordinate points of where the edges were found. The capital detect method returns a BufferedImage with a white background and black dots on all of the edges.
  • PointConnector: An algorithm that connects a list of points together by shortest distance. It also comes with a JPanel which can be used to display which points are connected to each other on screen.

Visualje

  • JEImage: A class used for image processing. I felt that creating a BufferedImage this way was very simple, and allowed me to use it in more ways than I could with just the BufferedImage class alone.
  • TextStyle: Used for adding different styles to JTextPanes. Using either a specified font, color, or key, the user can add different styles to the text pane. When using a key, the text MUST be written exactly as it is in the source code ("BOLD" for bold, "ITALIC" for italics, "UNDERLINE" for underlining, and "STRIKETHROUGH" for a strike through). TextStyle is also serializable, so one can save a particular font style and load it later on.
  • CoolButton: A CoolButton is just a button that looks cool. It can have a rectangle, a circle, or a pill shape.
  • TransitionManager: A class that is capable of handling transitions for one's Java program. Simply create a new TransitionManager object, set the type of transition, and then use the beginTransition method.
  • Vector2D: A class that represents an object's position on the screen using vector mathematics. Also, it is important to note that the "D" does not stand for double; the class uses floating point values. It simply means that this class is used for two dimensional entities, as opposed to 3D.

jextras's People

Contributors

authman2 avatar

Watchers

 avatar  avatar  avatar

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.