public class GraphNodeImageDecoration extends AbstractGraphNodeDecoration<SVGVO>
| Modifier and Type | Class and Description |
|---|---|
static class |
GraphNodeImageDecoration.DecorationType
Tipos pré-definidos de decoração que podem ser usados pelo nó.
|
| Modifier and Type | Field and Description |
|---|---|
protected GraphNodeImageDecoration.DecorationType |
type
O tipo de decoração.
|
description, vo| Constructor and Description |
|---|
GraphNodeImageDecoration()
Construtor
|
GraphNodeImageDecoration(GraphNodeImageDecoration.DecorationType type,
SVGVO image,
String description)
Construtor
|
| Modifier and Type | Method and Description |
|---|---|
static GraphNodeDecoration<SVGVO> |
createDecoration(GraphNodeImageDecoration.DecorationType type)
Cria a decoração de um determinado tipo pré-definido
|
GraphNodeImageDecoration.DecorationType |
getType()
Retorna o tipo da decoração.
|
void |
setRectangle(Rectangle2D.Double rect)
Atribui o retângulo que representa a posição e tamanho da decoração.
|
void |
setType(GraphNodeImageDecoration.DecorationType type)
Atribui o tipo da decoração
|
getDescription, getHeight, getVO, getWidth, setDescriptionprotected GraphNodeImageDecoration.DecorationType type
public GraphNodeImageDecoration()
public GraphNodeImageDecoration(GraphNodeImageDecoration.DecorationType type, SVGVO image, String description)
type - Tipo da decoraçãoimage - Ícone da decoraçãodescription - Descrição da decoraçãopublic GraphNodeImageDecoration.DecorationType getType()
public void setType(GraphNodeImageDecoration.DecorationType type)
type - O tipopublic static GraphNodeDecoration<SVGVO> createDecoration(GraphNodeImageDecoration.DecorationType type)
type - O tipo pré-definidopublic void setRectangle(Rectangle2D.Double rect)
rect - o retângulo.Copyright © 2017. All rights reserved.