Showing posts with label bằng. Show all posts
Showing posts with label bằng. Show all posts

Saturday, April 22, 2017

Một số công nghệ thời Đức Quốc Xã được người Trung Quốc phục dựng bằng mô phỏng thật

Một số công nghệ thời Đức Quốc Xã được người Trung Quốc phục dựng bằng mô phỏng thật


Chi?c xe oto mô ph?ng Mercedes Benz G4 6x6 c?c ??p phiên b?n thu nh? ki?u xe ?ua c?c h?m h?

??Mercedes-Benz G4 Offroader??
??XB-35??

Available link for download

Read more »

Friday, December 9, 2016

Là m biểu đồ tròn bằng code java PiePlot3D PieChart 3D Java Eclipse Swing Gui Application JavaFX JFreeChart

Là m biểu đồ tròn bằng code java PiePlot3D PieChart 3D Java Eclipse Swing Gui Application JavaFX JFreeChart


I. JFreeChart - Bi?u ?? giao di?n java 3D Hình tròn
1. T?ng quát
JFreeChart là th? vi?n Java hoàn toàn mi?n phí c?a tác gi? David Gilbert. JFreeChart giúp cho l?p trình viên có th? t?o các bi?u ?? mang ??m phong cách cá nhân trong ?ng d?ng c?a h?. Chi ti?t v? JFreeChart b?n có th? xem thêm t?i trang web http://www.jfree.org/jfreechart.
2. Download JFreeChart
T?i th? vi?n JFreeChart t? trang webhttp://sourceforge.net/projects/jfreechart/files/. Phiên b?n m?i nh?t tính ??n th?i ?i?m hi?n t?i là 1.0.17. T?i xong, b?n hãy gi?i nén.
3. T?o bi?u ?? hình bánh v?i JFreeChart
T?o d? án m?i tên là "de.vogella.jfreechart.swing.pie" và ??ng th?i t?o package tên "de.vogella.jfreechart.swing.pie". Sau ?ó thêm th? vi?n c?a JFreeChart vào d? án (s? d?ng hai t?p tin jfreechart-1.0.17.jar và jcommon-1.0.21.jar trong th? m?c /lib t? th? m?c gi?i nén ? trên).
PieChart 3D Java Eclipse Swing Gui Application
JavaFX swing 2016
package program_from;

import java.awt.Color;
import java.awt.EventQueue;
import java.awt.SystemColor;

import javax.swing.JFrame;
import javax.swing.JPanel;

import org.jfree.chart.ChartFactory;
import org.jfree.chart.ChartPanel;
import org.jfree.chart.JFreeChart;
import org.jfree.chart.plot.PiePlot3D;
import org.jfree.data.general.DefaultPieDataset;

public class demo {

private JFrame frame;

private DefaultPieDataset dataset = new DefaultPieDataset();
// Create a set of charts
private JFreeChart jfreeChart;
// Create a set of panels that can show charts
private ChartPanel chartPanel;
// Create a panel container
private JPanel panel;
/**
* Launch the application.
*/
public static void main(String[] args) {
EventQueue.invokeLater(new Runnable() {
public void run() {
try {
demo window = new demo();
window.frame.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
}
});
}

/**
* Create the application.
*/
public demo() {
initialize();
}

/**
* Initialize the contents of the frame.
*/
private void initialize() {
frame = new JFrame();
frame.setBounds(100, 100, 513, 362); //set size frame
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

//Set gia tr cho PieChart
dataset.setValue("Yeu", 20);
dataset.setValue("Trung Binh", 50);
dataset.setValue("Kha", 40);
dataset.setValue("Gioi", 20);

jfreeChart = ChartFactory.createPieChart3D("PieChart 7-2016", dataset, true, true, false );
PiePlot3D plot = (PiePlot3D) jfreeChart.getPlot();
plot.setForegroundAlpha(0.6f);
plot.setSectionPaint("Không ??t ", new Color(255, 0, 0)); //Set color cho PieChart
plot.setSectionPaint("??t", new Color(0, 255, 0)); //Set color cho PieChart
plot.setBackgroundPaint(new Color(255,255,255)); //Set background cho PieChart

//panel Container chartPanel
panel = new JPanel();
panel.setBackground(new Color(255, 255, 255));
frame.getContentPane().add(panel);
panel.setLayout(null);

// add chartPanel PieChart vao panel
chartPanel = new ChartPanel(jfreeChart);
chartPanel.setBounds(29, 36, 442, 232); //set size PieChart
panel.add(chartPanel);
chartPanel.setMouseWheelEnabled(true);
chartPanel.setZoomAroundAnchor(true);
chartPanel.setBackground(SystemColor.menu);
}

}

Ch?c n?ng: 1 - Click chu?t ph?i tùy ch?n màu, print, capture..
2 - L?n chu?t ?? xoay tr?c c?a bi?u ??
 


Available link for download

Read more »

Monday, October 10, 2016

Là m hiệu ứng mây trôi và bánh xe lăn bằng css3 html các thuộc tính của transform css3

Là m hiệu ứng mây trôi và bánh xe lăn bằng css3 html các thuộc tính của transform css3



Làm hi?u ?ng mây trôi b?ng và bánh xe l?n b?ng css html

Hi?u ?ng Animation css3 html5





Demo mây trôi background-position
html css 2016
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Demo cloud</title>
<style type="text/css">
*{
margin:0;
padding:0;
}

body{
background:#79C5FF;
}
.cloud {
width:100%;
height:940px;

background: url(http://pngimg.com/upload/cloud_PNG24.png);
background-repeat:repeat-x;
margin-top:100px;
-webkit-animation:test ease 300s;
-webkit-animation-iteration-count: infinite;
}
@-webkit-keyframes test{
0%{background-position-x:0px;}
50%{background-position-x:5000px;}
100%{background-position-x:0px;}
}
</style>
</head>

<body>
<div class="cloud"></div>
</body>
</html>


Demo Bánh xe l?n -webkit-transform
html css 2016
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Demo cloud</title>
<style type="text/css">
*{
margin:0;
padding:0;
}
.cloud {
width:500px;
height:480px;
background: url(http://hoidap.vinhphucnet.vn/qt/hoidap/PublishingImages/115649PMbanhxe.jpg);
-webkit-animation:test ease 500s infinite;
}
@-webkit-keyframes test{
100%{
-webkit-transform:rotateY(0deg) rotateZ(51860deg); }
}
</style>
</head>

<body>
<div class="cloud"></div>
</body>
</html>

Ngu?n: Tuân Ph?m


Các thu?c tính c?a transform trong css3:


Ví d?

HTML vi?t:

<html>
<head></head>
<body>
<p>transform</p>
</body>
</html>

CSS vi?t:

p {
background: #cc0000;
height: 50px;
width: 80px;
}

Hi?n th? trình duy?t khi ch?a có transform:

transform

Thêm thu?c tính transform vào CSS:

p {
background: #cc0000;
height: 50px;
width: 80px;
transform: rotate(-15deg);
-moz-transform: rotate(-15deg);
-webkit-transform: rotate(-15deg);
-o-transform: rotate(-15deg);
}

Hi?n th? trình duy?t khi có transform:

transform


Available link for download

Read more »