RbDe rbde-349 (20120127151154)

edu.mssm.crover.domain2d
Interface Drawing

All Known Subinterfaces:
Domain2D
All Known Implementing Classes:
BetaStrandDomain, CtermDomain, DisulfideBridgeDrawing, EllipsisGlyph, ExtremityDomain, FreeLoop, HelicalDomain, InvalidDomain, ProteinSegmentDomain, ResidueGlyph, ResidueNumberingDrawings, TwoEndsDomain, 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()
          Returns the parent component of this drawing.
 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.

Parameters:
p - The location for this drawing

suggestLocation

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

Parameters:
x - The x coordinate for this drawing
y - The y coordinate for this drawing

position

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

Returns:
The location for this drawing

getSurface

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

Returns:
the surface that this drawing is rendered on

getParent

Container getParent()
Returns the parent component of this drawing.

Returns:
the parent component of this drawing

getComponent

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

Returns:
the component for this drawing

dispose

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


RbDe rbde-349 (20120127151154)

Copyright © 2003-2012 Institute for Computational Biomedicine, All Rights Reserved.