edu.mssm.crover.domain2d
Interface Drawing

All Known Subinterfaces:
Domain2D
All Known Implementing Classes:
BetaStrandDomain, CtermDomain, DisulfidBridgeDrawing, EllipsisGlyph, ExtremityDomain, FreeLoop, HelicalDomain, InvalidDomain, LineDrawing, ProteinSegmentDomain, ResidueGlyph, ResidueNumberingDrawings, TwoEndsDomain, TwoEndsDraggableDomain, TwoResidueLineDrawing

public interface Drawing

Anything that is drawn on a DrawingSurface. This interface is used mostly for determining what to redraw when interactivity is required.


Method Summary
 void dispose()
          Dispose of this drawing.
 Component getComponent()
          Returns the component associated with this drawing.
 Container getParent()
           
 DrawingSurface getSurface()
          Returns the DrawingSurface this drawing is rendered on.
 ConstrainedPoint position()
          Returns the position of this drawing, inside its direct container.
 void suggestLocation(int x, int y)
          Suggest a new location for this drawing, inside its container.
 void suggestLocation(Point p)
          Suggest a new location for this drawing, inside its container.
 

Method Detail

suggestLocation

void suggestLocation(Point p)
Suggest a new location for this drawing, inside its container.


suggestLocation

void suggestLocation(int x,
                     int y)
Suggest a new location for this drawing, inside its container.


position

ConstrainedPoint position()
Returns the position of this drawing, inside its direct container.


getSurface

DrawingSurface getSurface()
Returns the DrawingSurface this drawing is rendered on.


getParent

Container getParent()

getComponent

Component getComponent()
Returns the component associated with this drawing.


dispose

void dispose()
Dispose of this drawing. Frees all the ressources associated with the drawing, notify any observable the drawing registered with that it can be removed from the observer list.



Copyright © 2004 Weill Cornell Medical College. All Rights Reserved.