blob: 8d2860740fcf280f0d8edfe51dec894f51e2e7de (
plain) (
blame)
1
2
3
4
5
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
/*****************************************************************************
* Copyright (c) 2013, 2016 CEA LIST, Christian W. Damus, and others.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* CEA LIST - Initial API and implementation
* Christian W. Damus - bugs 433206, 436665
*****************************************************************************/
package org.eclipse.papyrus.infra.gmfdiag.css.style;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.gmf.runtime.notation.NamedStyle;
import org.eclipse.gmf.runtime.notation.Style;
import org.eclipse.gmf.runtime.notation.View;
public interface CSSView {
/**
* CSS Implementation of the isVisible() method
*
* @return
*
* @see View#isVisible()
*/
public boolean isCSSVisible();
/**
* CSS Implementation of the getNamedStyle() method
*
* @param eClass
* @param name
* @return
*
* @see View#getNamedStyle(EClass, String)
*/
public NamedStyle getCSSNamedStyle(EClass eClass, String name);
/**
* CSS implementation of the {@link View#getStyle(EClass)} API.
*
* @param eClass
* the style kind to get
* @return the (possibly implicitly defined) CSS implementation of the style
*
* @see View#getStyle(EClass)
*/
public Style getCSSStyle(EClass eClass);
//
// Nested types
//
/**
* Private interface for management of CSS lifecycle and other
* internal concerns
*
* @since 1.2
*
* @noimplement This interface is not intended to be implemented by clients.
* @noreference This method is not intended to be referenced by clients.
*/
interface Internal extends CSSView {
/**
* Resets my association with the CSS engine and any local caches
* thereof that I may have.
*/
void resetCSS();
}
}
|