Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » RenderedMapModeGraphics has not implemented graphics rotate function
RenderedMapModeGraphics has not implemented graphics rotate function [message #1780062] Wed, 17 January 2018 03:00
lee lucky is currently offline lee luckyFriend
Messages: 26
Registered: October 2017
Junior Member
Hi, guys:

I have met with a strange problem, an exception said:

java.lang.RuntimeException: The class: class has not implemented this new graphics function
at org.eclipse.draw2d.Graphics.throwNotImplemented(
at org.eclipse.draw2d.Graphics.rotate(

I checked the API of, [u][/u],
and the rotate function is not implememented, while SWTGraphics implements the rotate function.

Can I have the way to use the rotate function in RenderedMapModeGraphics class?
or must implement the rotate function? How can I use SWTGraphics's rotate function in RenderedMapModeGraphics class? Is it possible?

Here are my codes:

public void paintFigure(Graphics graphics) {

Rectangle bounds = this.getBounds();
float x = bounds.x;
float y = bounds.y;
float width = bounds.width;
float height = bounds.height;

if (x > 0) {
graphics.translate(x, (float) (y - 0.5 * width + 0.5 * height));
graphics.translate(-x, (float) -(y - 0.5 * width + 0.5 * height));

Thanks in advance. Any help is greatfull.

[Updated on: Wed, 17 January 2018 05:59]

Report message to a moderator

Previous Topic:How to Apply a Search Filter in GMF tool palette
Next Topic:Not able to modify model
Goto Forum:

Current Time: Sat Jul 13 04:20:06 GMT 2024

Powered by FUDForum. Page generated in 0.03093 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top