Results 1 to 2 of 2
Thread: UML Diagrams?
- 11-25-2012, 09:45 PM #1
Member
- Join Date
- Nov 2012
- Posts
- 2
- Rep Power
- 0
UML Diagrams?
I have a class implementing listeners.
how do you make a uml doing so?
for example so far i have
BirdCatch
main(args:String[]):void
------>
BirdCatchPanel
paintComponent(Graphic page):void
how do you add this part into it? I'm a little confused.
its part of the BirdCatchPanel class.
Java Code:private class BirdCatchListener implements ActionListener, MouseListener { public void actionPerformed (ActionEvent event) { x += moveX; y += moveY; if (x <= 0 || x >= WIDTH-IMAGE_SIZE) moveX = moveX * -1; if (y <= 0 || y <= HEIGHT-IMAGE_SIZE) moveY = moveY * -1; repaint(); } public void mousePressed(MouseEvent event) { if((int)event.getPoint().getX() >= x && (int)event.getPoint().getX() <= 400 && (int)event.getPoint().getY() >= y && (int)event.getPoint().getY() <= 400) catches++; } public void mouseClicked(MouseEvent event){} public void mouseReleased(MouseEvent event){} public void mouseEntered(MouseEvent event){} public void mouseExited(MouseEvent event){} } }Last edited by backinqueez; 11-25-2012 at 09:51 PM.
- 11-26-2012, 03:07 AM #2
Re: UML Diagrams?
You didn't bother to follow up on the question you asked in MouseAdapter Class? so why should we expect any better behavior this time round?
dbWhy do they call it rush hour when nothing moves? - Robin Williams
Similar Threads
-
UML Diagrams
By joshking518 in forum New To JavaReplies: 4Last Post: 01-27-2012, 10:20 AM -
how to add graphic diagrams to the arraylist
By vijay4 in forum AWT / SwingReplies: 0Last Post: 12-11-2011, 02:34 PM -
In TabbedPane Diagrams do not appear
By greenhorn in forum New To JavaReplies: 1Last Post: 04-04-2011, 10:38 PM -
drag and drop for diagrams - help!
By zoz in forum AWT / SwingReplies: 10Last Post: 12-20-2009, 07:59 PM -
Eclipse plugin for UML diagrams
By nitingupta183 in forum EclipseReplies: 3Last Post: 03-26-2008, 11:08 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks