samples.preview_new_graphdraw.transform
Interface LayoutTransformer

All Known Implementing Classes:
CrookedLineTransformer, FitOnScreenTransformer, PipelineResizingTransformer, SlightMarginTransformer

public interface LayoutTransformer

Author:
danyelf

Method Summary
 void adjustSize(Dimension d)
          Adjusts this transformer to be working in this size a space
 Coordinates invert(Coordinates in)
          This does the *reverse* of the trasformation, for a given point.
 boolean supportsInvert()
          Most functions should support invert.
 EmittedLayout transform(EmittedLayout el)
          Transforms the given layout.
 

Method Detail

adjustSize

void adjustSize(Dimension d)
Adjusts this transformer to be working in this size a space


transform

EmittedLayout transform(EmittedLayout el)
Transforms the given layout. May (but needn't) return the same layout object, albeit somewhat stomped-upon.


supportsInvert

boolean supportsInvert()
Most functions should support invert. If your layout transformer can't be inverted, this should return false. Note that having even one layout be un-invertible makes the whole pipeline un-invertble.

Returns:
true if the layout can be inverted.

invert

Coordinates invert(Coordinates in)
This does the *reverse* of the trasformation, for a given point. This should be quite fast, as it's done in interactive time (e.g. while a user is dragging around a vertex).

Parameters:
in -