|
static synchronized< V, E > Layout< V, E > | scale (final Layout< V, E > layout, final Dimension size0) |
|
static synchronized< V, E > Layout< V, E > | scale (final Layout< V, E > layout, final double scaleX, final double scaleY) |
|
static Point2D | getCenter (final Rectangle r) |
|
static Point2D | getCenter (final Dimension d) |
|
static Pair< Rectangle > | split (final Dimension size, final boolean vertically, final float ratio) |
|
static< V, E > String | layoutToString (final Layout< V, E > layout) |
|
|
static synchronized< V, E > Layout< V, E > | scale (final Layout< V, E > layout, final double scaleX, final double scaleY, final Dimension size) |
|
static Pair< Rectangle > | vSplit (final Dimension size, final float ratio) |
|
static Pair< Rectangle > | hSplit (final Dimension size, final float ratio) |
|
◆ LayoutUtils()
grammarscope.jung2.layout.LayoutUtils.LayoutUtils |
( |
| ) |
|
|
private |
◆ getCenter() [1/2]
static Point2D grammarscope.jung2.layout.LayoutUtils.getCenter |
( |
final Dimension |
d | ) |
|
|
static |
Get center of dimension
- Parameters
-
- Returns
- center point
◆ getCenter() [2/2]
static Point2D grammarscope.jung2.layout.LayoutUtils.getCenter |
( |
final Rectangle |
r | ) |
|
|
static |
Get center of rectangle
- Parameters
-
- Returns
- center point
◆ hSplit()
static Pair<Rectangle> grammarscope.jung2.layout.LayoutUtils.hSplit |
( |
final Dimension |
size, |
|
|
final float |
ratio |
|
) |
| |
|
staticprivate |
Split horizontally
- Parameters
-
size | size |
ratio | partition1/width ratio |
- Returns
- two rectangles
◆ layoutToString()
static <V, E> String grammarscope.jung2.layout.LayoutUtils.layoutToString |
( |
final Layout< V, E > |
layout | ) |
|
|
static |
Dump layout
- Parameters
-
layout | layout |
<V> | vertex type |
<E> | edge type |
- Returns
- layout as string
◆ scale() [1/3]
static synchronized<V, E> Layout<V, E> grammarscope.jung2.layout.LayoutUtils.scale |
( |
final Layout< V, E > |
layout, |
|
|
final Dimension |
size0 |
|
) |
| |
|
static |
Scale layout
- Parameters
-
layout | layout |
size0 | new size |
<V> | vertex type |
<E> | edge type |
- Returns
- new layout
◆ scale() [2/3]
static synchronized<V, E> Layout<V, E> grammarscope.jung2.layout.LayoutUtils.scale |
( |
final Layout< V, E > |
layout, |
|
|
final double |
scaleX, |
|
|
final double |
scaleY |
|
) |
| |
|
static |
Scale layout
- Parameters
-
layout | layout |
scaleX | x scale factor |
scaleY | y scale factor |
<V> | vertex type |
<E> | edge type |
- Returns
- new layout
◆ scale() [3/3]
static synchronized<V, E> Layout<V, E> grammarscope.jung2.layout.LayoutUtils.scale |
( |
final Layout< V, E > |
layout, |
|
|
final double |
scaleX, |
|
|
final double |
scaleY, |
|
|
final Dimension |
size |
|
) |
| |
|
staticprivate |
Scale layout
- Parameters
-
layout | layout |
scaleX | x scale factor |
scaleY | y scale factor |
size | new size |
<V> | vertex type |
<E> | edge type |
- Returns
- new layout
◆ split()
static Pair<Rectangle> grammarscope.jung2.layout.LayoutUtils.split |
( |
final Dimension |
size, |
|
|
final boolean |
vertically, |
|
|
final float |
ratio |
|
) |
| |
|
static |
Split
- Parameters
-
size | size |
vertically | whether to spit vertically |
ratio | partition1/total ratio |
- Returns
- two rectangles
◆ vSplit()
static Pair<Rectangle> grammarscope.jung2.layout.LayoutUtils.vSplit |
( |
final Dimension |
size, |
|
|
final float |
ratio |
|
) |
| |
|
staticprivate |
Split vertically
- Parameters
-
size | size |
ratio | partition1/height ratio |
- Returns
- two rectangles
The documentation for this class was generated from the following file: