Solved

Cordinate Transformation in Java 2D

Posted on 2001-09-03
3
356 Views
Last Modified: 2010-08-05
How to bring the cordinate which is located in left top most corner to the center of the screen please send me a small programm which draws a line for the equation y=mx-c
0
Comment
Question by:rizan
3 Comments
 

Accepted Solution

by:
PremkumarAC earned 50 total points
ID: 6456668
Hi,
   Use translate() method in the Graphics2d package.
check this site : http://java.sun.com/docs/books/tutorial/2d/display/transforming.html

Regards,
Prem.
0
 
LVL 5

Expert Comment

by:vemul
ID: 7766060
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

- points to PremkumarAC

Please leave any comments here within the
next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !

vemul
Cleanup Volunteer
0
 

Expert Comment

by:SpideyMod
ID: 7847360
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
configure dependency in POM for new database 3 34
Error in @AspectJ Based AOP with Spring 2 18
Adding multiple JVM environments to RedHat 6 7 47
jmss example java 2 23
For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question