public class ServiceGraphLayoutImpl extends Object implements ServiceGraphLayout
Modifier and Type | Field and Description |
---|---|
protected static int |
OPERATION_HEIGHT
This definition represents the height of an operation node.
|
protected static int |
OPERATION_WIDTH
This definition represents the width of an operation node.
|
protected static int |
SERVICE_BORDER_PADDING
This definition represents the padding gap around the service inside.
|
protected static int |
SERVICE_HEADER_PADDING
This definition represents the padding for the service node header.
|
protected static int |
SERVICE_HORIZONTAL_PADDING
This definition represents the horizontal padding between service nodes.
|
protected static int |
SERVICE_INITIAL_HORIZONTAL_PADDING
This definition represents the initial horizontal padding for the
root service nodes.
|
protected static int |
SERVICE_VERTICAL_PADDING
This definition represents the vertical padding between service nodes.
|
protected static int |
SERVICE_WIDTH
This definition represents the width of a service node.
|
HEIGHT, WIDTH, X_POSITION, Y_POSITION
Constructor and Description |
---|
ServiceGraphLayoutImpl() |
Modifier and Type | Method and Description |
---|---|
void |
layout(ServiceGraph sg)
This method establishes the layout of the
nodes and links within the supplied service
graph.
|
protected void |
layoutService(ServiceGraph sg,
ServiceNode sn,
int x,
int y)
This method performs the layout of the supplied service
node.
|
protected boolean |
requiresLayout(ServiceNode sn)
This method determines whether the supplied service node
requires layout.
|
protected static final int OPERATION_WIDTH
protected static final int OPERATION_HEIGHT
protected static final int SERVICE_BORDER_PADDING
protected static final int SERVICE_WIDTH
protected static final int SERVICE_HEADER_PADDING
protected static final int SERVICE_INITIAL_HORIZONTAL_PADDING
protected static final int SERVICE_HORIZONTAL_PADDING
protected static final int SERVICE_VERTICAL_PADDING
public void layout(ServiceGraph sg)
layout
in interface ServiceGraphLayout
sg
- The service graphprotected boolean requiresLayout(ServiceNode sn)
sn
- The service nodeprotected void layoutService(ServiceGraph sg, ServiceNode sn, int x, int y)
sg
- The service graphsn
- The service nodex
- The x positiony
- The y positionCopyright © 2013-2015 JBoss by Red Hat. All Rights Reserved.