Enviar pesquisa
Carregar
Animation in Java
•
4 gostaram
•
3,315 visualizações
Alan Goo
Seguir
This slide describes how to create animation effect in java with timing framework
Leia menos
Leia mais
Tecnologia
Vista de apresentação de diapositivos
Denunciar
Compartilhar
Vista de apresentação de diapositivos
Denunciar
Compartilhar
1 de 26
Recomendados
The Ring programming language version 1.9 book - Part 92 of 210
The Ring programming language version 1.9 book - Part 92 of 210
Mahmoud Samir Fayed
The Ring programming language version 1.8 book - Part 88 of 202
The Ring programming language version 1.8 book - Part 88 of 202
Mahmoud Samir Fayed
Software transactional memory. pure functional approach
Software transactional memory. pure functional approach
Alexander Granin
Lec1
Lec1
Nikhil Chilwant
Swift for tensorflow
Swift for tensorflow
규영 허
Go Concurrency Patterns
Go Concurrency Patterns
ElifTech
OpenMP
OpenMP
ZongYing Lyu
Stack switching for fun and profit
Stack switching for fun and profit
Saúl Ibarra Corretgé
Recomendados
The Ring programming language version 1.9 book - Part 92 of 210
The Ring programming language version 1.9 book - Part 92 of 210
Mahmoud Samir Fayed
The Ring programming language version 1.8 book - Part 88 of 202
The Ring programming language version 1.8 book - Part 88 of 202
Mahmoud Samir Fayed
Software transactional memory. pure functional approach
Software transactional memory. pure functional approach
Alexander Granin
Lec1
Lec1
Nikhil Chilwant
Swift for tensorflow
Swift for tensorflow
규영 허
Go Concurrency Patterns
Go Concurrency Patterns
ElifTech
OpenMP
OpenMP
ZongYing Lyu
Stack switching for fun and profit
Stack switching for fun and profit
Saúl Ibarra Corretgé
The Ring programming language version 1.9 book - Part 90 of 210
The Ring programming language version 1.9 book - Part 90 of 210
Mahmoud Samir Fayed
Go Concurrency Basics
Go Concurrency Basics
ElifTech
Effective Modern C++ - Item 35 & 36
Effective Modern C++ - Item 35 & 36
Chih-Hsuan Kuo
Extend R with Rcpp!!!
Extend R with Rcpp!!!
mickey24
[ShaderX5] 8 1 Postprocessing Effects In Design
[ShaderX5] 8 1 Postprocessing Effects In Design
종빈 오
Infinum iOS Talks #1 - Swift under the hood: Method Dispatching by Vlaho Poluta
Infinum iOS Talks #1 - Swift under the hood: Method Dispatching by Vlaho Poluta
Infinum
Quantum neural network
Quantum neural network
Vijayananda Mohire
Use C++ to Manipulate mozSettings in Gecko
Use C++ to Manipulate mozSettings in Gecko
Chih-Hsuan Kuo
Kirk Shoop, Reactive programming in C++
Kirk Shoop, Reactive programming in C++
Sergey Platonov
Lec2
Lec2
Nikhil Chilwant
The Ring programming language version 1.10 book - Part 44 of 212
The Ring programming language version 1.10 book - Part 44 of 212
Mahmoud Samir Fayed
Python Coroutines, Present and Future
Python Coroutines, Present and Future
emptysquare
Reactive x
Reactive x
Gabriel Araujo
Bartosz Milewski, “Re-discovering Monads in C++”
Bartosz Milewski, “Re-discovering Monads in C++”
Platonov Sergey
Lecture1 classes3
Lecture1 classes3
Noor Faezah Mohd Yatim
Mc Squared
Mc Squared
sganga
Something about Golang
Something about Golang
Anton Arhipov
Coding in Style
Coding in Style
scalaconfjp
Java agents are watching your ByteCode
Java agents are watching your ByteCode
Roman Tsypuk
Rxjs kyivjs 2015
Rxjs kyivjs 2015
Alexander Mostovenko
Graphics programming in Java
Graphics programming in Java
Tushar B Kute
Core java slides
Core java slides
Abhilash Nair
Mais conteúdo relacionado
Mais procurados
The Ring programming language version 1.9 book - Part 90 of 210
The Ring programming language version 1.9 book - Part 90 of 210
Mahmoud Samir Fayed
Go Concurrency Basics
Go Concurrency Basics
ElifTech
Effective Modern C++ - Item 35 & 36
Effective Modern C++ - Item 35 & 36
Chih-Hsuan Kuo
Extend R with Rcpp!!!
Extend R with Rcpp!!!
mickey24
[ShaderX5] 8 1 Postprocessing Effects In Design
[ShaderX5] 8 1 Postprocessing Effects In Design
종빈 오
Infinum iOS Talks #1 - Swift under the hood: Method Dispatching by Vlaho Poluta
Infinum iOS Talks #1 - Swift under the hood: Method Dispatching by Vlaho Poluta
Infinum
Quantum neural network
Quantum neural network
Vijayananda Mohire
Use C++ to Manipulate mozSettings in Gecko
Use C++ to Manipulate mozSettings in Gecko
Chih-Hsuan Kuo
Kirk Shoop, Reactive programming in C++
Kirk Shoop, Reactive programming in C++
Sergey Platonov
Lec2
Lec2
Nikhil Chilwant
The Ring programming language version 1.10 book - Part 44 of 212
The Ring programming language version 1.10 book - Part 44 of 212
Mahmoud Samir Fayed
Python Coroutines, Present and Future
Python Coroutines, Present and Future
emptysquare
Reactive x
Reactive x
Gabriel Araujo
Bartosz Milewski, “Re-discovering Monads in C++”
Bartosz Milewski, “Re-discovering Monads in C++”
Platonov Sergey
Lecture1 classes3
Lecture1 classes3
Noor Faezah Mohd Yatim
Mc Squared
Mc Squared
sganga
Something about Golang
Something about Golang
Anton Arhipov
Coding in Style
Coding in Style
scalaconfjp
Java agents are watching your ByteCode
Java agents are watching your ByteCode
Roman Tsypuk
Rxjs kyivjs 2015
Rxjs kyivjs 2015
Alexander Mostovenko
Mais procurados
(20)
The Ring programming language version 1.9 book - Part 90 of 210
The Ring programming language version 1.9 book - Part 90 of 210
Go Concurrency Basics
Go Concurrency Basics
Effective Modern C++ - Item 35 & 36
Effective Modern C++ - Item 35 & 36
Extend R with Rcpp!!!
Extend R with Rcpp!!!
[ShaderX5] 8 1 Postprocessing Effects In Design
[ShaderX5] 8 1 Postprocessing Effects In Design
Infinum iOS Talks #1 - Swift under the hood: Method Dispatching by Vlaho Poluta
Infinum iOS Talks #1 - Swift under the hood: Method Dispatching by Vlaho Poluta
Quantum neural network
Quantum neural network
Use C++ to Manipulate mozSettings in Gecko
Use C++ to Manipulate mozSettings in Gecko
Kirk Shoop, Reactive programming in C++
Kirk Shoop, Reactive programming in C++
Lec2
Lec2
The Ring programming language version 1.10 book - Part 44 of 212
The Ring programming language version 1.10 book - Part 44 of 212
Python Coroutines, Present and Future
Python Coroutines, Present and Future
Reactive x
Reactive x
Bartosz Milewski, “Re-discovering Monads in C++”
Bartosz Milewski, “Re-discovering Monads in C++”
Lecture1 classes3
Lecture1 classes3
Mc Squared
Mc Squared
Something about Golang
Something about Golang
Coding in Style
Coding in Style
Java agents are watching your ByteCode
Java agents are watching your ByteCode
Rxjs kyivjs 2015
Rxjs kyivjs 2015
Destaque
Graphics programming in Java
Graphics programming in Java
Tushar B Kute
Core java slides
Core java slides
Abhilash Nair
Shift Happens
Shift Happens
Jeff Brenman
Java tutorial PPT
Java tutorial PPT
Intelligo Technologies
THIRST
THIRST
Jeff Brenman
Foot Notes
Foot Notes
Melanie Kahl
SMOKE - The Convenient Truth [1st place Worlds Best Presentation Contest] by ...
SMOKE - The Convenient Truth [1st place Worlds Best Presentation Contest] by ...
Empowered Presentations
Healthcare Napkins All
Healthcare Napkins All
Dan Roam
Death by PowerPoint
Death by PowerPoint
Alexei Kapterev
Destaque
(9)
Graphics programming in Java
Graphics programming in Java
Core java slides
Core java slides
Shift Happens
Shift Happens
Java tutorial PPT
Java tutorial PPT
THIRST
THIRST
Foot Notes
Foot Notes
SMOKE - The Convenient Truth [1st place Worlds Best Presentation Contest] by ...
SMOKE - The Convenient Truth [1st place Worlds Best Presentation Contest] by ...
Healthcare Napkins All
Healthcare Napkins All
Death by PowerPoint
Death by PowerPoint
Semelhante a Animation in Java
Rx workshop
Rx workshop
Ryan Riley
import java.awt.; import java.awt.event.; import javax.swing..pdf
import java.awt.; import java.awt.event.; import javax.swing..pdf
aparnawatchcompany
A Playful Introduction to Rx
A Playful Introduction to Rx
Andrey Cheptsov
The Ring programming language version 1.5.1 book - Part 12 of 180
The Ring programming language version 1.5.1 book - Part 12 of 180
Mahmoud Samir Fayed
JVM Mechanics: Understanding the JIT's Tricks
JVM Mechanics: Understanding the JIT's Tricks
Doug Hawkins
The Ring programming language version 1.7 book - Part 16 of 196
The Ring programming language version 1.7 book - Part 16 of 196
Mahmoud Samir Fayed
The Ring programming language version 1.6 book - Part 15 of 189
The Ring programming language version 1.6 book - Part 15 of 189
Mahmoud Samir Fayed
Developer Experience i TypeScript. Najbardziej ikoniczne duo
Developer Experience i TypeScript. Najbardziej ikoniczne duo
The Software House
An introduction to Google test framework
An introduction to Google test framework
Abner Chih Yi Huang
Advanced patterns in asynchronous programming
Advanced patterns in asynchronous programming
Michael Arenzon
Java Performance Tuning
Java Performance Tuning
Atthakorn Chanthong
شرح مقرر البرمجة 2 لغة جافا - الوحدة الثالثة
شرح مقرر البرمجة 2 لغة جافا - الوحدة الثالثة
جامعة القدس المفتوحة
The Ring programming language version 1.7 book - Part 85 of 196
The Ring programming language version 1.7 book - Part 85 of 196
Mahmoud Samir Fayed
Deuce STM - CMP'09
Deuce STM - CMP'09
Guy Korland
Unit testing patterns for concurrent code
Unit testing patterns for concurrent code
Dror Helper
The Ring programming language version 1.3 book - Part 59 of 88
The Ring programming language version 1.3 book - Part 59 of 88
Mahmoud Samir Fayed
Qt Animation
Qt Animation
William Lee
Unit testing patterns for concurrent code
Unit testing patterns for concurrent code
Dror Helper
JavaScript Interview Questions 2023
JavaScript Interview Questions 2023
Laurence Svekis ✔
Android TDD & CI
Android TDD & CI
Marcin Gryszko
Semelhante a Animation in Java
(20)
Rx workshop
Rx workshop
import java.awt.; import java.awt.event.; import javax.swing..pdf
import java.awt.; import java.awt.event.; import javax.swing..pdf
A Playful Introduction to Rx
A Playful Introduction to Rx
The Ring programming language version 1.5.1 book - Part 12 of 180
The Ring programming language version 1.5.1 book - Part 12 of 180
JVM Mechanics: Understanding the JIT's Tricks
JVM Mechanics: Understanding the JIT's Tricks
The Ring programming language version 1.7 book - Part 16 of 196
The Ring programming language version 1.7 book - Part 16 of 196
The Ring programming language version 1.6 book - Part 15 of 189
The Ring programming language version 1.6 book - Part 15 of 189
Developer Experience i TypeScript. Najbardziej ikoniczne duo
Developer Experience i TypeScript. Najbardziej ikoniczne duo
An introduction to Google test framework
An introduction to Google test framework
Advanced patterns in asynchronous programming
Advanced patterns in asynchronous programming
Java Performance Tuning
Java Performance Tuning
شرح مقرر البرمجة 2 لغة جافا - الوحدة الثالثة
شرح مقرر البرمجة 2 لغة جافا - الوحدة الثالثة
The Ring programming language version 1.7 book - Part 85 of 196
The Ring programming language version 1.7 book - Part 85 of 196
Deuce STM - CMP'09
Deuce STM - CMP'09
Unit testing patterns for concurrent code
Unit testing patterns for concurrent code
The Ring programming language version 1.3 book - Part 59 of 88
The Ring programming language version 1.3 book - Part 59 of 88
Qt Animation
Qt Animation
Unit testing patterns for concurrent code
Unit testing patterns for concurrent code
JavaScript Interview Questions 2023
JavaScript Interview Questions 2023
Android TDD & CI
Android TDD & CI
Último
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Zilliz
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Edi Saputra
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
rafiqahmad00786416
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
apidays
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
apidays
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
MIND CTI
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Jeffrey Haguewood
Architecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
MadyBayot
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
Khushali Kathiriya
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Deepika Singh
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Orbitshub
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
The Digital Insurer
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
Nanddeep Nachan
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
WSO2
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
Zilliz
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
UiPathCommunity
Último
(20)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Architecting Cloud Native Applications
Architecting Cloud Native Applications
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
Animation in Java
1.
Animation in Java
[email_address]
2.
3.
Simplest Example
4.
Using Timer
5.
6.
7.
Code & Demo
of Example 1 timer = new Timer(10, new ActionListener() { public void actionPerformed(ActionEvent e) { if(xPos < xEndPos) { xPos += xDiff; JComponent obj = labelPanel.getObject(); obj.setLocation( xPos, obj.getY() ); } else { timer.stop(); xPos = 0; } } }); timer.start();
8.
9.
10.
11.
Cycle
12.
Envelope
13.
14.
15.
Example 2 //
duration : 1s , resolution : 10 ms Cycle horizontalCycle = new Cycle( 1000, 10 ); // repeat 5 times , beginning delay : 0 ms Envelope simpleEnv = new Envelope( 5, 0, Envelope.RepeatBehavior.FORWARD, Envelope.EndBehavior.HOLD ); TimingTarget tt = new TimingTarget() { public void begin() {} public void end() {} public void timingEvent(long cycleElapsedTime, long totalElapsedTime, float fraction) { int x = (int)(fraction * 400); JComponent obj = labelPanel.getObject(); obj.setLocation( x, obj.getY() ); } }; TimingController controller = new TimingController( horizontalCycle, simpleEnv ); controller.addTarget( tt ); controller.start();
16.
17.
Hardcore Animation Non-linear
Interpolation Acceleration Deceleration Property Range Object Modifier Trigger Multi-Step Animation
18.
19.
20.
21.
Example 3 &
Demo Cycle horizontalCycle = new Cycle( 1000, 10 ); Envelope simpleEnv = new Envelope( 1, 0, RepeatBehavior.REVERSE, EndBehavior.HOLD ); Rectangle from = new Rectangle( 0, 0, 0, 0 ); Rectangle to = new Rectangle( 100, 100, 200, 200 ); PropertyRange boundsRange = PropertyRange.createPropertyRangeRectangle("bounds", from, to); TimingTarget tt = new ObjectModifier( labelPanel.getObject(), boundsRange ); TimingController controller = new TimingController( horizontalCycle, simpleEnv ); controller.addTarget( tt ); controller.start();
22.
23.
Trigger Example from
JavaOne2006 TS-1297 Slide
24.
25.
26.