Class ThemeProjection
java.lang.Object
com._1c.g5.v8.dt.form.presentation.core.projection.extensible.ExtensibleProjection<org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.EStructuralFeature,HippoLayForm,HippoLayGroupBase,HippoLayElementBase,org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.EStructuralFeature,SkinForm,ThemeSkin,ThemeSkin,ThemeContext>
com._1c.g5.v8.dt.form.internal.presentation.theme.ThemeProjection
- All Implemented Interfaces:
IObjectTreeListener<org.eclipse.emf.ecore.EObject,,org.eclipse.emf.ecore.EStructuralFeature, HippoLayForm, HippoLayGroupBase, HippoLayElementBase> IObjectTreeProjection<org.eclipse.emf.ecore.EObject,,org.eclipse.emf.ecore.EStructuralFeature, HippoLayForm, HippoLayGroupBase, HippoLayElementBase, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.EStructuralFeature, SkinForm, ThemeSkin, ThemeSkin> IPresentationTheme,IThemeProjection
- Direct Known Subclasses:
DesktopThemeProjection
public class ThemeProjection
extends ExtensibleProjection<org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.EStructuralFeature,HippoLayForm,HippoLayGroupBase,HippoLayElementBase,org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.EStructuralFeature,SkinForm,ThemeSkin,ThemeSkin,ThemeContext>
implements IThemeProjection
-
Nested Class Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddModelTreeChild(ThemeSkin parent, ThemeSkin child, int index) protected ThemeContextvoiddispose()Disposes the model with participants.org.eclipse.swt.graphics.ColorgetColor(PresentationColor color) protected org.eclipse.emf.ecore.EObjectgetDomainParent(org.eclipse.emf.ecore.EObject domain) protected org.eclipse.emf.ecore.EStructuralFeaturegetDomainParentAttribute(org.eclipse.emf.ecore.EObject domain) intgetDpi()org.eclipse.swt.graphics.FontgetFont(PresentationFont font) intintprotected Iterable<org.eclipse.emf.ecore.EObject>getModelContents(org.eclipse.emf.ecore.EObject model) protected org.eclipse.emf.ecore.EObjectgetModelParent(org.eclipse.emf.ecore.EObject model) getPresentationFont(Font hippoFont) <T extends ThemeSkin>
TgetSkin(HippoLayElementBase presentation, Class<T> themeClass) measureString(PresentationFont font, String string, boolean mnemonic) measureString(org.eclipse.swt.graphics.Font font, String string, boolean mnemonic) measureText(PresentationFont font, String string, int maxWidth) measureText(org.eclipse.swt.graphics.Font font, String string, int maxWidth) protected ObjectreadDomainAttribute(org.eclipse.emf.ecore.EObject domain, org.eclipse.emf.ecore.EStructuralFeature attribute) protected ObjectreadModelAttribute(org.eclipse.emf.ecore.EObject model, org.eclipse.emf.ecore.EStructuralFeature attribute) protected voidremoveModelTreeChild(ThemeSkin parent, int index) protected org.eclipse.emf.ecore.EObjectresolveDomain(org.eclipse.emf.ecore.EObject domain, AttributePath<org.eclipse.emf.ecore.EStructuralFeature> path) protected org.eclipse.emf.ecore.EObjectresolveModel(org.eclipse.emf.ecore.EObject model, AttributePath<org.eclipse.emf.ecore.EStructuralFeature> path) voidsetHippoTheme(AbstractHippoTheme hippoTheme) voidsetVersion(Version version) protected ObjectwriteModelAttribute(org.eclipse.emf.ecore.EObject model, org.eclipse.emf.ecore.EStructuralFeature attribute, Object newValue) Methods inherited from class com._1c.g5.v8.dt.form.presentation.core.projection.extensible.ExtensibleProjection
addListener, attributeChanged, changeRoot, getContext, getDomain, getDomainRoot, getModel, getModelRoot, getModelTreeNode, getModelTreeNodeChildren, getModelTreeNodeParent, handleDisposeProjectionTree, listItemAdded, listItemMoved, listItemRemoved, listItemReplaced, mapItemAdded, mapItemRemoved, mapItemReplaced, messageSent, nodeObjectToString, registerParticipant, registerParticipant, removeListener, rootChanged, rootSet, rootUnset, setItemAdded, setItemRemoved, toString, treeItemAdded, treeItemMoved, treeItemRemoved, treeItemReplacedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com._1c.g5.v8.dt.form.presentation.core.projection.IObjectTreeListener
attributeChanged, listItemAdded, listItemMoved, listItemRemoved, listItemReplaced, mapItemAdded, mapItemRemoved, mapItemReplaced, messageSent, rootChanged, rootSet, rootUnset, setItemAdded, setItemRemoved, treeItemAdded, treeItemMoved, treeItemRemoved, treeItemReplacedMethods inherited from interface com._1c.g5.v8.dt.form.presentation.core.projection.IObjectTreeProjection
addListener, changeRoot, getDomain, getDomainRoot, getModel, getModelRoot, getModelTreeNode, getModelTreeNodeChildren, getModelTreeNodeParent, removeListener
-
Constructor Details
-
ThemeProjection
public ThemeProjection(org.eclipse.swt.graphics.GC gc)
-
-
Method Details
-
getPresentationFont
- Specified by:
getPresentationFontin interfaceIPresentationTheme
-
getColorCache
- Specified by:
getColorCachein interfaceIPresentationTheme
-
setVersion
- Specified by:
setVersionin interfaceIPresentationTheme
-
getPlatformVisualComputer
- Specified by:
getPlatformVisualComputerin interfaceIPresentationTheme
-
setHippoTheme
- Specified by:
setHippoThemein interfaceIThemeProjection
-
getHippoTheme
- Specified by:
getHippoThemein interfaceIPresentationTheme
-
getDpi
public int getDpi()- Specified by:
getDpiin interfaceIPresentationTheme
-
getMobileDpi
public int getMobileDpi()- Specified by:
getMobileDpiin interfaceIPresentationTheme
-
createContext
- Specified by:
createContextin classExtensibleProjection<org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.EStructuralFeature, HippoLayForm, HippoLayGroupBase, HippoLayElementBase, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.EStructuralFeature, SkinForm, ThemeSkin, ThemeSkin, ThemeContext>
-
getBaseFont
- Specified by:
getBaseFontin interfaceIPresentationTheme
-
getExtraLargeFont
- Specified by:
getExtraLargeFontin interfaceIPresentationTheme
-
getLargeFont
- Specified by:
getLargeFontin interfaceIPresentationTheme
-
getNormalFont
- Specified by:
getNormalFontin interfaceIPresentationTheme
-
getSmallFont
- Specified by:
getSmallFontin interfaceIPresentationTheme
-
getTextFont
- Specified by:
getTextFontin interfaceIPresentationTheme
-
getDefaultGuiFont
- Specified by:
getDefaultGuiFontin interfaceIPresentationTheme
-
getOemFixedFont
- Specified by:
getOemFixedFontin interfaceIPresentationTheme
-
getAnsiFixedFont
- Specified by:
getAnsiFixedFontin interfaceIPresentationTheme
-
getAnsiVariableFont
- Specified by:
getAnsiVariableFontin interfaceIPresentationTheme
-
getWindowsSystemFont
- Specified by:
getWindowsSystemFontin interfaceIPresentationTheme
-
measureString
- Specified by:
measureStringin interfaceIPresentationTheme
-
measureString
- Specified by:
measureStringin interfaceIPresentationTheme
-
measureText
- Specified by:
measureTextin interfaceIPresentationTheme
-
measureText
- Specified by:
measureTextin interfaceIPresentationTheme
-
getSkin
- Specified by:
getSkinin interfaceIPresentationTheme
-
getColor
- Specified by:
getColorin interfaceIPresentationTheme
-
getFont
- Specified by:
getFontin interfaceIPresentationTheme
-
getFontHeight
- Specified by:
getFontHeightin interfaceIPresentationTheme
-
dispose
public void dispose()Description copied from interface:IObjectTreeProjectionDisposes the model with participants.- Specified by:
disposein interfaceIObjectTreeProjection<org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.EStructuralFeature, HippoLayForm, HippoLayGroupBase, HippoLayElementBase, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.EStructuralFeature, SkinForm, ThemeSkin, ThemeSkin> - Overrides:
disposein classExtensibleProjection<org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.EStructuralFeature, HippoLayForm, HippoLayGroupBase, HippoLayElementBase, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.EStructuralFeature, SkinForm, ThemeSkin, ThemeSkin, ThemeContext>
-
getModelContents
protected Iterable<org.eclipse.emf.ecore.EObject> getModelContents(org.eclipse.emf.ecore.EObject model) - Specified by:
getModelContentsin classExtensibleProjection<org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.EStructuralFeature, HippoLayForm, HippoLayGroupBase, HippoLayElementBase, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.EStructuralFeature, SkinForm, ThemeSkin, ThemeSkin, ThemeContext>
-
getDomainParent
protected org.eclipse.emf.ecore.EObject getDomainParent(org.eclipse.emf.ecore.EObject domain) - Specified by:
getDomainParentin classExtensibleProjection<org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.EStructuralFeature, HippoLayForm, HippoLayGroupBase, HippoLayElementBase, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.EStructuralFeature, SkinForm, ThemeSkin, ThemeSkin, ThemeContext>
-
getModelParent
protected org.eclipse.emf.ecore.EObject getModelParent(org.eclipse.emf.ecore.EObject model) - Specified by:
getModelParentin classExtensibleProjection<org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.EStructuralFeature, HippoLayForm, HippoLayGroupBase, HippoLayElementBase, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.EStructuralFeature, SkinForm, ThemeSkin, ThemeSkin, ThemeContext>
-
getDomainParentAttribute
protected org.eclipse.emf.ecore.EStructuralFeature getDomainParentAttribute(org.eclipse.emf.ecore.EObject domain) - Specified by:
getDomainParentAttributein classExtensibleProjection<org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.EStructuralFeature, HippoLayForm, HippoLayGroupBase, HippoLayElementBase, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.EStructuralFeature, SkinForm, ThemeSkin, ThemeSkin, ThemeContext>
-
resolveDomain
protected org.eclipse.emf.ecore.EObject resolveDomain(org.eclipse.emf.ecore.EObject domain, AttributePath<org.eclipse.emf.ecore.EStructuralFeature> path) - Specified by:
resolveDomainin classExtensibleProjection<org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.EStructuralFeature, HippoLayForm, HippoLayGroupBase, HippoLayElementBase, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.EStructuralFeature, SkinForm, ThemeSkin, ThemeSkin, ThemeContext>
-
resolveModel
protected org.eclipse.emf.ecore.EObject resolveModel(org.eclipse.emf.ecore.EObject model, AttributePath<org.eclipse.emf.ecore.EStructuralFeature> path) - Specified by:
resolveModelin classExtensibleProjection<org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.EStructuralFeature, HippoLayForm, HippoLayGroupBase, HippoLayElementBase, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.EStructuralFeature, SkinForm, ThemeSkin, ThemeSkin, ThemeContext>
-
readDomainAttribute
protected Object readDomainAttribute(org.eclipse.emf.ecore.EObject domain, org.eclipse.emf.ecore.EStructuralFeature attribute) - Specified by:
readDomainAttributein classExtensibleProjection<org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.EStructuralFeature, HippoLayForm, HippoLayGroupBase, HippoLayElementBase, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.EStructuralFeature, SkinForm, ThemeSkin, ThemeSkin, ThemeContext>
-
readModelAttribute
protected Object readModelAttribute(org.eclipse.emf.ecore.EObject model, org.eclipse.emf.ecore.EStructuralFeature attribute) - Specified by:
readModelAttributein classExtensibleProjection<org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.EStructuralFeature, HippoLayForm, HippoLayGroupBase, HippoLayElementBase, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.EStructuralFeature, SkinForm, ThemeSkin, ThemeSkin, ThemeContext>
-
writeModelAttribute
protected Object writeModelAttribute(org.eclipse.emf.ecore.EObject model, org.eclipse.emf.ecore.EStructuralFeature attribute, Object newValue) - Specified by:
writeModelAttributein classExtensibleProjection<org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.EStructuralFeature, HippoLayForm, HippoLayGroupBase, HippoLayElementBase, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.EStructuralFeature, SkinForm, ThemeSkin, ThemeSkin, ThemeContext>
-
addModelTreeChild
- Specified by:
addModelTreeChildin classExtensibleProjection<org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.EStructuralFeature, HippoLayForm, HippoLayGroupBase, HippoLayElementBase, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.EStructuralFeature, SkinForm, ThemeSkin, ThemeSkin, ThemeContext>
-
removeModelTreeChild
- Specified by:
removeModelTreeChildin classExtensibleProjection<org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.EStructuralFeature, HippoLayForm, HippoLayGroupBase, HippoLayElementBase, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.EStructuralFeature, SkinForm, ThemeSkin, ThemeSkin, ThemeContext>
-