1. Download our Official Android App: Forums for Android!

Apps Java Graphics2d to android port

Discussion in 'Android Development' started by morello, Oct 9, 2010.

  1. morello

    morello Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    1
    Joined:
    Oct 9, 2010

    Oct 9, 2010
    1
    0
    5
    I have a Java app, which also runs as an applet. The UI side is very simple, it is just a single JPanel.

    However, the program paints some quite complex graphics (it is a viewer for specialised visualisation). This is done using the standard awt Graphics2d.

    Is Graphics2D supported on Android?

    If I wanted to use the same code base, without making large numbers of changes, what would be the best way to do it? I was thinking of wrapping the Graphics2D class in an interface so that my code doesn't use awt directly. Then on Android I could create a new thin layer to map my interface onto the Android equivalent calls.

    Any advice?
     

    Advertisement

Share This Page

Loading...