Пример #1
0
        public static bool AddSupportedStyle(String interactor, Style style,
            String stylename, String javaStyle, InteractorAllocator ia)
        {
            Dictionary<String, InteractorStyle> styledict;
            styledict = GetInteractorStyleDictionary(interactor);
            if (styledict == null)
                styledict = new Dictionary<string, InteractorStyle>();
            theInteractorStyleDictionary[interactor] = styledict;

            InteractorStyle istyle = new InteractorStyle(style, stylename, javaStyle, ia);
            styledict.Add(stylename, istyle);
            return true;
        }
Пример #2
0
 protected InteractorInstance addInstance(int x, int y, InteractorStyle intstyle,
     ControlPanel cp, int width, int height)
 {
     throw new Exception("Not Yet Implemented");
 }
Пример #3
0
 protected InteractorInstance addInstance(int x, int y, InteractorStyle intstyle,
     ControlPanel cp)
 {
     return addInstance(x, y, intstyle, cp, 0, 0);
 }
Пример #4
0
 /// <summary>
 /// Create a new interactor instance (using newInteractorInstance()) 
 /// giving it the given position and style and assigning it to the given 
 /// ContorlPanel, if given.  This includes adding the instance to the 
 /// control panels list of instances.  
 /// Returns the InteractorInstance on success, NULL otherwise.
 /// </summary>
 /// <param name="x"></param>
 /// <param name="y"></param>
 /// <param name="intstyle"></param>
 /// <param name="cp"></param>
 /// <param name="width"></param>
 /// <param name="height"></param>
 /// <returns></returns>
 protected InteractorInstance addInstance(int x, int y, InteractorStyle intstyle)
 {
     return addInstance(x, y, intstyle, null, 0, 0);
 }
 public void changeStyle(InteractorStyle style)
 {
     throw new Exception("Not Yet Implemented");
 }
 public void setStyle(InteractorStyle istyle)
 {
     style = istyle;
 }