Class: Gliffynator::UseCase

Inherits:
Hash
  • Object
show all
Defined in:
lib/gliffynator/use_case.rb

Class Method Summary collapse

Class Method Details

.create(id, x, y, width = 140, height = 70) ⇒ Object



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# File 'lib/gliffynator/use_case.rb', line 6

def self.create(id, x, y, width=140, height=70)
  {
    x: x,
    y: y,
    rotation: 0,
    id: id,
    width: width,
    height: height,
    uid: "com.gliffy.shape.uml.uml_v1.default.use_case",
    order: id,
    lockAspectRatio: true,
    lockShape: false,
    graphic: {
      type: "Shape",
      Shape: {
        tid: "com.gliffy.stencil.ellipse.basic_v1",
        strokeWidth: 1.0,
        strokeColor: "#000000",
        fillColor: "#FFFFFF",
        gradient: false,
        dashStyle: nil,
        dropShadow: false,
        state: 0,
        opacity: 1,
        shadowX: 0,
        shadowY: 0
      }
    },
    linkMap: [],
    children: [],
    hidden: false,
    layerId: "C3WysuhtocNA"
  }
end

.id_usageObject



2
3
4
# File 'lib/gliffynator/use_case.rb', line 2

def self.id_usage
  1
end