public class DiagramDefaults
extends java.lang.Object
implements java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
short |
arrowSource
The default type for the edge arrows source.
|
short |
arrowTarget
The default type for the edge arrows target.
|
boolean |
autosized
The default autosized property.
|
float |
closedGroupBorderInsets
The default border insets of closed group nodes.
|
boolean |
closedGroupInnerGraphDisplayEnabled
The default inner graph display for closed group nodes.
|
float |
closedGroupInsets
The default insets of closed group nodes.
|
static java.lang.String |
COLOR_BLACK
The default black color.
|
float |
edgeBorderWidth
The default edge border width.
|
java.lang.String |
edgeColor
The default edge color.
|
int |
edgeFontSize
The default font size for edges.
|
short |
edgeFontStyle
The default font style for edges.
|
boolean |
edgeHasLabelDistance
True if by default the edges have a label distance.
|
float |
edgeLabelAnchorX
The default edge label X anchor.
|
float |
edgeLabelAnchorY
The default edge label Y anchor.
|
boolean |
edgeLabelAutoFlip
True if the edge labels should flip.
|
boolean |
edgeLabelAutoRotate
True if the edge labels should autorotate.
|
float |
edgeLabelDistance
The default edge label distance.
|
short |
edgeLabelPosition
The default edge label position.
|
boolean |
edgeSmoothed
The default value for the smoothed style of edges.
|
short |
edgeType
The default edge type.
|
static DiagramDefaults |
GLOBAL
The global defaults.
|
int |
groupDefaultClosedHeight
The default closed group height.
|
int |
groupDefaultClosedWidth
The default closed group width.
|
boolean |
groupDefaultRealizedState
The default group realized state.
|
java.lang.String |
groupNodeBorderColor
The default group node border color.
|
short |
groupNodeBorderLineStyle
The default group node border line style.
|
float |
groupNodeBorderWidth
The default group node border width.
|
float |
groupNodeClosedHeight
The default closed group node height.
|
float |
groupNodeClosedWidth
The default closed group node width.
|
java.lang.String |
groupNodeFillColor
The default group node fill color.
|
int |
groupNodeFontSize
The default font size for group nodes.
|
short |
groupNodeFontStyle
The default font style for group nodes.
|
float |
groupNodeOpenedHeight
The default opened group node height.
|
short |
groupNodeOpenedSizeType
The default opened group node size type.
|
float |
groupNodeOpenedWidth
The default opened group node width.
|
float |
groupNodePadding
The default padding between children nodes for group node parents.
|
java.lang.String |
nodeBorderColor
The default node border color.
|
short |
nodeBorderLineStyle
The default node border line style.
|
float |
nodeBorderWidth
The default node border width.
|
DropShadow |
nodeDropShadow
The default nodes drop shadow.
|
java.lang.String |
nodeFillColor
The default node fill color.
|
int |
nodeFontSize
The default font size for nodes.
|
short |
nodeFontStyle
The default font style for nodes.
|
float |
nodeHeight
The default node height.
|
float |
nodeWidth
The default node width.
|
float |
openedGroupBorderInsets
The default border insets of opened group nodes.
|
float |
openedGroupInsets
The default insets of opened group nodes.
|
int |
padHeight
The height pad for the default autosized property.
|
int |
padWidth
The width pad for the default autosized property.
|
Constructor and Description |
---|
DiagramDefaults() |
Modifier and Type | Method and Description |
---|---|
DiagramDefaults |
clone() |
void |
reset()
Reset the defaults.
|
void |
setSmartPosition(short edgeLabelPosition,
boolean onEdge)
Set the smart position of the label.
|
public static final DiagramDefaults GLOBAL
public static final java.lang.String COLOR_BLACK
public short arrowSource
ArrowType
interface.public short arrowTarget
ArrowType
interface.public boolean edgeLabelAutoRotate
public boolean edgeLabelAutoFlip
public int nodeFontSize
public short nodeFontStyle
LabelStyle
interface.public DropShadow nodeDropShadow
public int edgeFontSize
public short edgeFontStyle
LabelStyle
interface.public short edgeLabelPosition
EdgeLabelPosition
interface.public boolean edgeHasLabelDistance
public float edgeLabelDistance
public float edgeLabelAnchorX
public float edgeLabelAnchorY
public java.lang.String edgeColor
public float edgeBorderWidth
public short edgeType
EdgeType
interface.public boolean edgeSmoothed
public java.lang.String nodeFillColor
public java.lang.String nodeBorderColor
public float nodeBorderWidth
public short nodeBorderLineStyle
public float nodeWidth
public float nodeHeight
public boolean autosized
public int padWidth
public int padHeight
public int groupNodeFontSize
public short groupNodeFontStyle
LabelStyle
interface.public short groupNodeOpenedSizeType
public float groupNodePadding
public float groupNodeOpenedWidth
public float groupNodeOpenedHeight
public float groupNodeClosedWidth
public float groupNodeClosedHeight
public java.lang.String groupNodeFillColor
public java.lang.String groupNodeBorderColor
public float groupNodeBorderWidth
public short groupNodeBorderLineStyle
public float closedGroupInsets
public float closedGroupBorderInsets
public float openedGroupInsets
public float openedGroupBorderInsets
public boolean groupDefaultRealizedState
public boolean closedGroupInnerGraphDisplayEnabled
public int groupDefaultClosedWidth
public int groupDefaultClosedHeight
public void reset()
public void setSmartPosition(short edgeLabelPosition, boolean onEdge)
edgeLabelPosition
- the position of the labelonEdge
- true if the label must be alongside the edgeEdgeLabelPosition
public DiagramDefaults clone()
clone
in class java.lang.Object
Copyright © 2021, 2022 Herve Girod. All Rights Reserved. Documentation and source under the BSD 3-Clause licence