-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
35 changed files
with
661 additions
and
257 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
src/main/kotlin/com/github/chriskn/structurizrextension/api/view/style/C4PUmlShape.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package com.github.chriskn.structurizrextension.api.view.style | ||
|
||
// TODO doucment | ||
|
||
enum class C4PUmlShape(val pUmlString: String) { | ||
ROUNDED_BOX("RoundedBoxShape()"), EIGHT_SIDED("EightSidedShape()") | ||
} |
7 changes: 0 additions & 7 deletions
7
src/main/kotlin/com/github/chriskn/structurizrextension/api/view/style/C4Shape.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
...n/kotlin/com/github/chriskn/structurizrextension/api/view/style/styles/C4PUmlLineStyle.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package com.github.chriskn.structurizrextension.api.view.style.styles | ||
|
||
enum class C4PUmlLineStyle(val pUmlString: String) { | ||
DASHED("DashedLine()"), | ||
DOTTED("DottedLine()"), | ||
BOLD("BoldLine()"), | ||
SOLID("SolidLine()"), | ||
} |
44 changes: 44 additions & 0 deletions
44
...n/kotlin/com/github/chriskn/structurizrextension/api/view/style/styles/DependencyStyle.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
package com.github.chriskn.structurizrextension.api.view.style.styles | ||
|
||
import com.github.chriskn.structurizrextension.api.view.style.sprite.Sprite | ||
import com.github.chriskn.structurizrextension.api.view.style.toValidColor | ||
|
||
// TODO document | ||
|
||
data class DependencyStyle internal constructor( | ||
val tag: String, | ||
val fontColor: String?, | ||
val sprite: Sprite?, | ||
val legendText: String?, | ||
val legendSprite: Sprite?, | ||
val technology: String?, | ||
val lineColor: String?, | ||
val lineStyle: C4PUmlLineStyle?, | ||
val lineWidth: Int?, | ||
) | ||
|
||
@Suppress("LongParameterList") | ||
fun createDependencyStyle( | ||
tag: String, | ||
fontColor: String? = null, | ||
sprite: Sprite? = null, | ||
legendText: String? = null, | ||
legendSprite: Sprite? = null, | ||
technology: String? = null, | ||
lineColor: String? = null, | ||
lineStyle: C4PUmlLineStyle? = null, | ||
lineWidth: Int? = null, | ||
): DependencyStyle { | ||
require(tag.isNotBlank()) { "tag must not be blank" } | ||
return DependencyStyle( | ||
tag = tag, | ||
fontColor = toValidColor(fontColor), | ||
sprite = sprite, | ||
legendText = legendText, | ||
legendSprite = legendSprite, | ||
technology = technology, | ||
lineColor = toValidColor(lineColor), | ||
lineStyle = lineStyle, | ||
lineWidth = lineWidth, | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 5 additions & 6 deletions
11
...sion/api/view/style/styles/C4PumlStyle.kt → ...pi/view/style/styles/ModelElementStyle.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.