English 中文(简体)
Jpanel和AffineTransformation的视力,或许会四舍五入的错误?
原标题:Visualisation on Jpanel and big AffineTransformation, perhaps rounding error?

I have an visualization problem with several shapeitems on large scales. This is my Affinetransform:

renderMatrix AffineTransform (id=172)
m00 160.60020751855694
m01 0.0 m02 -3.608842342415596E7
m10 -0.0
m11 -160.600209194
m12 8.40976407191E8 state 3
type 69

我的协调制度是高原-高原,具有极高的x和价值。 我认为,大矩阵有些错误。 我以以下法典起草:

Graphics2D g2 = get...;
Graphics2D.draw((Shape)getShape());

Hm, I m not allowed to post pics. So, I try to explain. If I draw a circle, everything is ok on small scales, but if I draw at large scales at about 1:20, I get no circle but semi-circle. On the X-Axis it is ok. I think that is because the Gauß-Krüger Coords has a larger value on the Y-Axis. Its about 200.000 on x and 5.000.000 on y.

任何人都有想法。 请让我 h。

问题回答

暂无回答




相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签