Class Template

    • Field Detail

      • rfieldLabelX

        protected int rfieldLabelX
      • rfieldLabelY

        protected int rfieldLabelY
      • rfieldRowHeight

        protected double rfieldRowHeight
      • fieldFont

        protected Font fieldFont
      • ridLabelX

        protected int ridLabelX
      • ridLabelY

        protected int ridLabelY
      • idlabel

        protected String idlabel
      • idFont

        protected Font idFont
      • initY

        protected int initY
      • rlinkY

        protected int rlinkY
      • portsID

        protected long portsID
      • macrosID

        protected long macrosID
      • invalidLinks

        protected Vector invalidLinks
      • fields

        protected int fields
      • leftFields

        protected int leftFields
      • rightFields

        protected int rightFields
    • Constructor Detail

      • Template

        public Template​(ContainerObject parent,
                        VDBTemplateInstance templateData,
                        boolean initializeFields)
        Insert the method's description here. Creation date: (21.12.2000 20:40:53)
        Parameters:
        parent - com.cosylab.vdct.graphics.objects.ContainerObject
        templateData - The templateData to set
        initializeFields - initializeFields
    • Method Detail

      • validate

        protected void validate()
        Description copied from class: VisibleObject
        Insert the method's description here. Creation date: (19.12.2000 21:31:15)
        Specified by:
        validate in class VisibleObject
      • checkMove

        public boolean checkMove​(int dx,
                                 int dy)
        Description copied from interface: Movable
        Insert the method's description here. Creation date: (27.12.2000 13:08:09)
        Specified by:
        checkMove in interface Movable
        Parameters:
        dx - int
        dy - int
        Returns:
        boolean
        See Also:
        Movable.checkMove(int, int)
      • move

        public boolean move​(int dx,
                            int dy)
        Description copied from interface: Movable
        Insert the method's description here. Creation date: (25.12.2000 14:13:14)
        Specified by:
        move in interface Movable
        Parameters:
        dx - int
        dy - int
        Returns:
        boolean
        See Also:
        Movable.move(int, int)
      • getTemplateSeparator

        public static GUISeparator getTemplateSeparator()
        Insert the method's description here. Creation date: (3.2.2001 13:07:04)
        Returns:
        com.cosylab.vdct.vdb.GUISeparator
      • getTemplateInstanceSeparator

        public static GUISeparator getTemplateInstanceSeparator()
        Insert the method's description here. Creation date: (3.2.2001 13:07:04)
        Returns:
        com.cosylab.vdct.vdb.GUISeparator
      • getPortsSeparator

        public static GUISeparator getPortsSeparator()
        Insert the method's description here. Creation date: (3.2.2001 13:07:04)
        Returns:
        com.cosylab.vdct.vdb.GUISeparator
      • getMacrosSeparator

        public static GUISeparator getMacrosSeparator()
        Insert the method's description here. Creation date: (3.2.2001 13:07:04)
        Returns:
        com.cosylab.vdct.vdb.GUISeparator
      • getPropertiesSeparator

        public static GUISeparator getPropertiesSeparator()
        Insert the method's description here. Creation date: (3.2.2001 13:07:04)
        Returns:
        com.cosylab.vdct.vdb.GUISeparator
      • getItems

        public Vector getItems()
        Description copied from interface: Popupable
        Insert the method's description here. Creation date: (2.2.2001 20:26:25)
        Specified by:
        getItems in interface Popupable
        Returns:
        java.util.Vector
        See Also:
        Popupable.getItems()
      • getTemplateData

        public VDBTemplateInstance getTemplateData()
        Returns the templateData.
        Returns:
        VDBTemplateInstance
      • getDescription

        public String getDescription()
        Returns the description.
        Returns:
        String
      • hiliteComponentsCheck

        public VisibleObject hiliteComponentsCheck​(int x,
                                                   int y)
        Returned value inicates change Creation date: (21.12.2000 22:21:12)
        Parameters:
        x - int
        y - int
        Returns:
        com.cosylab.visible.objects.VisibleObject
      • intersects

        public VisibleObject intersects​(int px,
                                        int py)
        Default impmlementation for square (must be rescaled) Creation date: (19.12.2000 20:20:20)
        Overrides:
        intersects in class VisibleObject
        Parameters:
        px - int
        py - int
        Returns:
        com.cosylab.visible.objects.VisibleObject
      • revalidateFieldsPosition

        public void revalidateFieldsPosition()
        Insert the method's description here. Creation date: (26.1.2001 17:18:51)
        Specified by:
        revalidateFieldsPosition in class LinkManagerObject
      • updateTemplateFields

        public void updateTemplateFields()
        Insert the method's description here. Creation date: (26.1.2001 17:19:47)
      • initializeLinkFields

        public void initializeLinkFields()
        Insert the method's description here. Creation date: (26.1.2001 17:19:47)
      • addPortField

        public EPICSLink addPortField​(VDBPort port)
        Parameters:
        port - port
        Returns:
        something
      • addMacroField

        public EPICSLink addMacroField​(VDBMacro macro)
        Parameters:
        macro - macro
        Returns:
        something
      • manageLinks

        public void manageLinks()
        Insert the method's description here. Creation date: (30.1.2001 11:35:39)
      • addLink

        public void addLink​(Linkable link)
        Specified by:
        addLink in interface Hub
        Parameters:
        link - com.cosylab.vdct.graphics.objects.Linkable
      • removeLink

        public void removeLink​(Linkable link)
        Specified by:
        removeLink in interface Hub
        Parameters:
        link - com.cosylab.vdct.graphics.objects.Linkable
      • fieldChanged

        public void fieldChanged​(VDBFieldData field)
        Insert the method's description here. Creation date: (27.1.2001 16:12:03)
        Specified by:
        fieldChanged in class LinkManagerObject
        Parameters:
        field - com.cosylab.vdct.vdb.VDBFieldData
      • destroy

        public void destroy()
        Insert the method's description here. Creation date: (30.1.2001 11:59:21)
        Overrides:
        destroy in class VisibleObject
      • fixMacrosOnCopy

        public void fixMacrosOnCopy​(String prevGroup,
                                    String group)
        Insert the method's description here. Creation date: (5.2.2001 9:42:29)
        Parameters:
        prevGroup - java.lang.String
        group - java.lang.String
      • destroyFields

        protected void destroyFields()
        Insert the method's description here. Creation date: (30.1.2001 11:59:54)
        Overrides:
        destroyFields in class LinkManagerObject
      • undestroyFields

        protected void undestroyFields()
        Insert the method's description here. Creation date: (30.1.2001 11:59:54)
      • writeObjects

        public void writeObjects​(Writer writer,
                                 NamingContext context,
                                 boolean export)
                          throws IOException
        Description copied from interface: SaveInterface
        Insert the method's description here. Creation date: (22.4.2001 21:46:41)
        Specified by:
        writeObjects in interface SaveInterface
        Parameters:
        writer - writer
        context - NamingContext
        export - export
        Throws:
        IOException - The exception description.
      • prepareSubstitutions

        public static Map prepareSubstitutions​(VDBTemplateInstance templateData,
                                               Map substitutions,
                                               Map ports)
        Insert the method's description here.
        Parameters:
        templateData - templateData
        substitutions - group current substitutions
        ports - ports
        Returns:
        something
      • preparePorts

        public static Map preparePorts​(Group group,
                                       Map substitutions,
                                       NameManipulator namer)
        Insert the method's description here
        Parameters:
        group - group
        substitutions - group current substitutions
        namer - namer
        Returns:
        something
      • writeVDCTObjects

        public void writeVDCTObjects​(Writer writer,
                                     NamingContext renamer,
                                     boolean export)
                              throws IOException
        Description copied from interface: SaveInterface
        Insert the method's description here. Creation date: (22.4.2001 21:47:00)
        Specified by:
        writeVDCTObjects in interface SaveInterface
        Parameters:
        writer - writer
        renamer - NamingContext
        export - export
        Throws:
        IOException - The exception description.
      • getModeNames

        public ArrayList getModeNames()
        Description copied from interface: Inspectable
        Obtains list of all mode names for this particular property. Modes are numbered from 0-n. Creation date: (11.1.2001 21:30:04)
        Specified by:
        getModeNames in interface Inspectable
        Returns:
        java.util.ArrayList array of mode names - obtained using toString().
        See Also:
        Inspectable.getModeNames()
      • generateMacros

        public void generateMacros​(HashMap macros)
        Parameters:
        macros - macros
      • fieldSideChange

        public void fieldSideChange​(EPICSLink link,
                                    boolean isRight)
        Parameters:
        link - link
        isRight - isRight
      • fieldVisibilityChange

        public void fieldVisibilityChange​(VDBFieldData fieldData,
                                          boolean newVisible)
        Parameters:
        fieldData - fieldData
        newVisible - newVisible
      • isFirstField

        public boolean isFirstField​(Field field)
        Insert the method's description here. Creation date: (3.5.2001 22:54:43)
        Overrides:
        isFirstField in class LinkManagerObject
        Parameters:
        field - com.cosylab.vdct.graphics.objects.Field
        Returns:
        boolean
      • isLastField

        public boolean isLastField​(Field field)
        Insert the method's description here. Creation date: (3.5.2001 22:53:47)
        Overrides:
        isLastField in class LinkManagerObject
        Parameters:
        field - com.cosylab.vdct.graphics.objects.Field
        Returns:
        something
      • moveFieldDown

        public void moveFieldDown​(Field field)
        Insert the method's description here. Creation date: (3.5.2001 22:36:11)
        Overrides:
        moveFieldDown in class LinkManagerObject
        Parameters:
        field - com.cosylab.vdct.graphics.objects.Field
      • moveFieldUp

        public void moveFieldUp​(Field field)
        Insert the method's description here. Creation date: (3.5.2001 22:36:11)
        Overrides:
        moveFieldUp in class LinkManagerObject
        Parameters:
        field - com.cosylab.vdct.graphics.objects.Field
      • morph

        public boolean morph​(String newType)
        Description copied from interface: Morphable
        Insert the method's description here. Creation date: (4.2.2001 21:57:20)
        Specified by:
        morph in interface Morphable
        Parameters:
        newType - java.lang.String
        Returns:
        something
        See Also:
        Morphable.morph(java.lang.String)
      • setTemplateInstance

        public void setTemplateInstance​(VDBTemplateInstance templateInstance)
        Parameters:
        templateInstance - templateInstance