Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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

    public void adjustSize(Dimension d)

  Adjusts this transformer to be working in this size a space

### transform

    public EmittedLayout transform(EmittedLayout el)

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

### supportsInvert

    public 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

    public 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` -

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD