All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class aioli.gfxobj.Ctedit

java.lang.Object
   |
   +----aioli.gfxobj.Ctedit

public class Ctedit
extends Object
implements VTool
The base component to display a variable


Constructor Index

 o Ctedit(Variable, String)
Creates a variable
 o Ctedit(Variable, String, boolean)
Creates a variable

Method Index

 o changeKeyListener(KeyListenerInterface)
Changes the Key Listener used for keyboard events
 o changePointingListener(PointingListenerInterface)
Changes the Pointing Listener used for mouse events
 o changePointingMotionListener(PointingMotionListenerInterface)
Changes the Pointing Motion Listener used for mouse events
 o changeSelection(IPath)
 o changeSelection(IPath, SelectionInterface, boolean)
 o commit(Variable, MPath, IPath)
Propages the modification to the tool
 o doGetFont(String, FontFamily, FontStyle, int, boolean)
Defines a new font, return true if the font is correctly defined
 o getComponent()
Returns the AWT component
 o getFacade()
 o getPPEngine()
 o getTree()
Returns the tree of the Ctedit
 o getVar()
Returns the variable of the Ctedit
 o isColorDefined(String)
Checks if a color name is defined
 o isFontDefined(String)
Checks if a font name is defined
 o name()
Returns the name of the Ctedit
 o redraw(int, int)
Redraws the tree that is contained in the Ctedit
 o setColor(String, BasicColor)
Defines a new color, return true if the color is correctly defined
 o setColor(String, int, int, int)
Defines a new color, return true if the color is correctly defined
 o setPPEngine(PPEngine)
 o setStyle(String, String, String, String)
Defines the value of a style, return true if the style is defined

Constructors

 o Ctedit
 public Ctedit(Variable var,
               String ppml)
Creates a variable

Parameters:
var - the variable to include
ppml - the name of the ppml to use
 o Ctedit
 public Ctedit(Variable var,
               String ppml,
               boolean swingFlag)
Creates a variable

Parameters:
var - the variable to include
ppml - the name of the ppml to use

Methods

 o isColorDefined
 public boolean isColorDefined(String color)
Checks if a color name is defined

Parameters:
color - the name of the color
 o setColor
 public boolean setColor(String color,
                         BasicColor bColor)
Defines a new color, return true if the color is correctly defined

Parameters:
color - the name of the color
bColor - the basic color
 o setColor
 public boolean setColor(String color,
                         int red,
                         int green,
                         int blue)
Defines a new color, return true if the color is correctly defined

Parameters:
color - the name of the color
red - the red component
green - the green component
blue - the blue component
 o isFontDefined
 public boolean isFontDefined(String font)
Checks if a font name is defined

Parameters:
font - the name of the font
 o doGetFont
 public boolean doGetFont(String font,
                          FontFamily f,
                          FontStyle s,
                          int p,
                          boolean under)
Defines a new font, return true if the font is correctly defined

Parameters:
font - the name of the font
f - the family of the font
s - the style of the font
p - the point size of the font
under - if the font is underline or not
 o setStyle
 public boolean setStyle(String style,
                         String ff,
                         String f,
                         String b)
Defines the value of a style, return true if the style is defined

Parameters:
style - the name of the style
ff - the font name, null if none
f - the foreground name, null if none
f - the background name, null if none
 o getTree
 public Tree getTree()
Returns the tree of the Ctedit

 o getVar
 public Variable getVar()
Returns the variable of the Ctedit

 o redraw
 public void redraw(int pageLength,
                    int holo)
Redraws the tree that is contained in the Ctedit

Parameters:
pageLength - the width of the page
holo - the detail level
 o changeSelection
 public final void changeSelection(IPath ipath)
 o changeSelection
 public final void changeSelection(IPath ipath,
                                   SelectionInterface select,
                                   boolean unsel)
 o commit
 public void commit(Variable var,
                    MPath m,
                    IPath i)
Propages the modification to the tool

Parameters:
var - the variable
m - the modification path
i - the new selection path
 o name
 public String name()
Returns the name of the Ctedit

 o getComponent
 public Component getComponent()
Returns the AWT component

 o getFacade
 public InteractiveFacade getFacade()
 o getPPEngine
 public PPEngine getPPEngine()
 o setPPEngine
 public void setPPEngine(PPEngine e)
 o changePointingListener
 public void changePointingListener(PointingListenerInterface pointinglistener)
Changes the Pointing Listener used for mouse events

 o changePointingMotionListener
 public void changePointingMotionListener(PointingMotionListenerInterface pointinglistener)
Changes the Pointing Motion Listener used for mouse events

 o changeKeyListener
 public void changeKeyListener(KeyListenerInterface keylistener)
Changes the Key Listener used for keyboard events


All Packages  Class Hierarchy  This Package  Previous  Next  Index