Shared info of IoT & Cloud, Banking, Angular Wicket, Spring Microservices, BigData, flutter, E-comm, Java Telecomm and More

Showing posts with label Java Permanent. Show all posts
Showing posts with label Java Permanent. Show all posts

Monday, September 3, 2018

Java Concurrency

1. Java Concurrency from docs.oracle.com Computer users take it for granted that their systems can do more than one thing at a time. They assume that they can continue to work in a word processor, while other applications download files, manage the print queue, and stream audio. Even a single application is often expected to do more than one thing at a time. For example, that streaming...

Friday, May 12, 2017

Gioi thieu Java 8 - Lambda Expressions

Lambda expressions duoc gioi thieu trong Java 8 va duoc coi la mot trong nhung dac diem lon nhat cua Java 8. Lambda expression tang cuong ho tro functional programming, va lam don gian hoa viec viet code. Syntax Mot lambda expression duoc dac ta boi cu phap sau − parameter -> expression body Following are the important characteristics of a lambda expression − Optional type declaration −...

Saturday, April 16, 2016

Install Android Studio & Java8

Install Java JDK 1.8 Download jdk-8uversion-linux-x64.tar.gz file from http://www.oracle.com/technetwork/java/javase/downloads/index.html Unpack the tarball and install the JDK.% tar zxvf jdk-8uversion-linux-x64.tar.gz Set up the JAVA_HOME and ANDROID_HOMEFor example, ANDROID_HOME=/home/demo/java/exo-dependencies/Android/AndroidStudio_Latest/SDKJAVA_HOME=/home/demo/java/jdk1.8.0_77PATH=/usr/local/bin:$PATH:$JAVA_HOME/bin:$M2_HOME/bin:$GRADLE_HOME/bin:$ANDROID_HOME/platform-tools:$ANDROID_HOME/tools Install...

Wednesday, April 15, 2015

Number literals in Java

Numbers Numbers in Java can be written in many different forms. Depending on the prefix or suffix we use, we can declare it’s base (binary, hex, octal), and even it’s type (int, long, float). Alterations in the base: With literal prefixes we can define 4 different numeric bases, and they are: Octal, Hexadecimal, Decimal and Binary....

Tuesday, March 13, 2012

Java 2D: Composition Rules

In the standard RGB color model, every color is described by its red, green, and blue components. However, it is also convenient to be able to describe areas of an image that are transparent or partially transparent. When you superimpose an image onto an existing drawing, the transparent pixels do...

Monday, March 12, 2012

Java 2D: clipping

1. What isclippingClipping is the process of confining paint operations to a limited area or shape. 2. Clipping the Drawing RegionAny Shape object can be used as a clipping path that restricts the portion of the drawing area that will be rendered. The clipping path is part of the Graphics2Dcontext; to set the clip attribute, you call Graphics2D.setClip and pass in the Shape that...

Friday, March 9, 2012

Java 2D: Areas, Strokes, Paint

Areas An Area object stores and manipulates a resolution-independent description of an enclosed area of 2-dimensional space. Area objects can be transformed and can perform various Constructive Area Geometry (CAG) operations when combined with other Area objects. The CAG operations include area addition, subtraction, intersection, and exclusive or....

Sunday, March 4, 2012

Java 2D: Shapes

Here are some of the methods in the Graphics class to draw shapes:drawLine drawRectangle drawRoundRect draw3DRect drawPolygon drawPolyline drawOval drawArc There are also corresponding fill methods. These methods have been in the Graphics class ever since JDK 1.0. The Java 2D API uses a completely different, object-oriented approach. Instead of methods, there are classes: Line2D Rectangle2D RoundRectangle2D Ellipse2D Arc2D QuadCurve2D CubicCurve2D GeneralPath These...

Java 2D: Ví dụ ShapesDemo2D.java

GeneralPath class implements the Shape interface and represents a geometric path constructed from lines, and quadratic and cubic curves. The three constructors in this class can create the GeneralPath object with the default winding rule (WIND_NON_ZERO), the given winding rule (WIND_NON_ZERO or WIND_EVEN_ODD), or the specified initial coordinate capacity. The...

Saturday, February 25, 2012

Java 2D: Coordinate Transformations

CoordinatesThe Java 2D™ API maintains two coordinate spaces: User space – The space in which graphics primitives are specified Device space – The coordinate system of an output device such as a screen, window, or a printer User space is a device-independent logical coordinate system, the coordinate space that your program uses. All geometries passed into Java 2D rendering routines are specified...

Popular Posts

Blog Archive