@OpenApiAll
public class RepresentationTextParams
extends java.lang.Object
implements java.lang.Cloneable
RepresentationTextCreator
Constructor and Description |
---|
RepresentationTextParams() |
Modifier and Type | Method and Description |
---|---|
RepresentationTextParams |
clone() |
static RepresentationTextParams |
createByEnvironmentOptions()
Creates new instance of representation params and sets fields depending on
EnvironmentOptions . |
static RepresentationTextParams |
createByOptions(Project project)
Creates new instance of representation params and sets fields depending on both Environment and Project options.
|
boolean |
equals(java.lang.Object o) |
LocationInTool |
getLocationInTool()
Invocation information.
|
int |
hashCode() |
boolean |
isAddColor()
Defines if color information should be added to the representation text.
|
boolean |
isShowElementNumber()
Defines if element auto numbers (IDs) should be included to the representation text.
|
boolean |
isShowFullType()
Defines how text of some elements should be constructed.
|
RepresentationTextParams |
setAddColor(boolean addColor) |
RepresentationTextParams |
setLocationInTool(LocationInTool locationInTool) |
RepresentationTextParams |
setShowElementNumber(boolean showElementNumber) |
RepresentationTextParams |
setShowFullType(boolean showFullType) |
public static RepresentationTextParams createByEnvironmentOptions()
EnvironmentOptions
.
Only isShowFullType()
value is affected.public static RepresentationTextParams createByOptions(Project project)
isShowFullType()
and isShowElementNumber()
values are affected.public RepresentationTextParams setAddColor(boolean addColor)
addColor
- if true, color information will be added to the textpublic boolean isAddColor()
false
.
Color information should be added when rendering colored text in UI.public boolean isShowElementNumber()
false
.public RepresentationTextParams setShowElementNumber(boolean showElementNumber)
showElementNumber
- true if element auto numbers (IDs) should be includedpublic RepresentationTextParams setShowFullType(boolean showFullType)
showFullType
- if Type of TypedElement should be represented by full qualified name.
Also affects text of relationship end elements.public boolean isShowFullType()
TypedElement
and end element text
for Relationship
elements. Default value is false
.public RepresentationTextParams setLocationInTool(LocationInTool locationInTool)
locationInTool
- describes GUI location for which text is being createdLocationInTool
public LocationInTool getLocationInTool()
LocationInTool
. Default is LocationInTool.unknown
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public RepresentationTextParams clone()
clone
in class java.lang.Object