public interface ShapeType extends Labeled
Modifier and Type | Field and Description |
---|---|
static short |
DIAMOND
A diamond.
|
static short |
ELLIPSE
An ellipse.
|
static short |
FATARROW
An arrow.
|
static short |
FATARROW2
An arrow.
|
static short |
HEXAGON
An hexagon.
|
static short |
OCTAGON
An octagon.
|
static short |
PARALLELOGRAM
A parallelogram.
|
static short |
PARALLELOGRAM2
A parallelogram.
|
static short |
RECTANGLE
A rectangle.
|
static short |
RECTANGLE3D
A 3D rectangle.
|
static short |
ROUNDRECTANGLE
A round rectangle.
|
static short |
TRIANGLE
A triangle.
|
static short |
TRIANGLE2
A triangle.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasBorderColor()
Return true if the shape has a border color.
|
boolean |
hasFillColor()
Return true if the shape has a fill color.
|
void |
setAutosized(boolean autosized)
Set if the node can be automatically sized depending on the node label, according to the way yed works.
|
boolean |
setBorderColor(java.lang.String borderColor)
Set the border color.
|
void |
setBorderStyle(LineStyle borderStyle)
Set the border style.
|
void |
setDropShadow(DropShadow dropShadow)
Set the shape node drop shadow.
|
boolean |
setFillColor(java.awt.Color fillColor)
Set the text color.
|
boolean |
setFillColor(java.lang.String fillColor)
Set the fill color.
|
void |
setGeometry(Geometry geometry)
Set the shape geometry.
|
void |
setHasBorderColor(boolean hasBorderColor)
Set if the node has a border color.
|
void |
setHasFillColor(boolean hasFillColor)
Set if the shape has a fill color.
|
void |
setHeightPadding(int padding)
Set the height padding for the default autosized property.
|
void |
setLabel(NodeLabel nodeLabel)
Set the label.
|
NodeLabel |
setLabel(java.lang.String text)
Set the node group label text.
|
void |
setType(short type)
Set the shape type.
|
void |
setWidthPadding(int padding)
Set the width padding for the default autosized property.
|
static final short RECTANGLE
static final short RECTANGLE3D
static final short ROUNDRECTANGLE
static final short ELLIPSE
static final short PARALLELOGRAM
static final short PARALLELOGRAM2
static final short DIAMOND
static final short FATARROW
static final short FATARROW2
static final short OCTAGON
static final short HEXAGON
static final short TRIANGLE
static final short TRIANGLE2
boolean setFillColor(java.awt.Color fillColor)
fillColor
- the colorboolean setFillColor(java.lang.String fillColor)
fillColor
- the colorvoid setHasFillColor(boolean hasFillColor)
hasFillColor
- true if the shape has a fill colorboolean hasFillColor()
void setBorderStyle(LineStyle borderStyle)
borderStyle
- the border styleboolean setBorderColor(java.lang.String borderColor)
borderColor
- the colorvoid setHasBorderColor(boolean hasBorderColor)
hasBorderColor
- true if the shape has a border colorboolean hasBorderColor()
void setGeometry(Geometry geometry)
geometry
- the geometryvoid setDropShadow(DropShadow dropShadow)
dropShadow
- the shape node drop shadowvoid setAutosized(boolean autosized)
autosized
- true if the node is autosizedvoid setWidthPadding(int padding)
padding
- the paddingvoid setHeightPadding(int padding)
padding
- the paddingvoid setLabel(NodeLabel nodeLabel)
nodeLabel
- the labelNodeLabel setLabel(java.lang.String text)
void setType(short type)
type
- the typeCopyright © 2021, 2022 Herve Girod. All Rights Reserved. Documentation and source under the BSD 3-Clause licence