adalogo

Class Settings


public class Settings
extends java.lang.Object

Field Summary

static int
TURTLE_FOLLOW_MODE_ALWAYS
static int
TURTLE_FOLLOW_MODE_EDGE
static int
TURTLE_FOLLOW_MODE_NEVER
static String
hide
static String
inextranode
static String
show

Method Summary

static AdaLogo
getApplet()
get the currently running applet.
static Font
getConsoleFont()
returns the font for the console.
static Font
getEditorFont()
static String
getInvisibleNodeMode()
static int
getTurtleFollowMode()
return the turtle follow mode.
static boolean
isAntiAlias()
static boolean
isExpandedbydefault()
static boolean
isFilePermission()
true when file access is allowed.
static boolean
isPrintSyntaxTree()
static boolean
isRenderQuality()
static boolean
isShowAsTree()
static boolean
isShowroot()
static boolean
isStartedAsApplet()
returns wether the programm was started as applet or application.
static void
setAntiAlias(boolean antiAlias)
set the antialias property for turtle canvas.
static void
setApplet(AdaLogo applet)
static void
setConsoleFont(Font consoleFont)
set the font to be used by the console.
static void
setConsoleFontSize(float size)
set the font size for the console.
static void
setEditorFont(Font editorFont)
set the font to be used by the editor.
static void
setEditorFontSize(float size)
set the font size for the editor.
static void
setExpandedbydefault(boolean expandedbydefault)
static void
setFilePermission(boolean perm)
static void
setInvisibleNodeModeHide()
static void
setInvisibleNodeModeInExtraNode()
static void
setInvisibleNodeModeShow()
static void
setPrintSyntaxTree(boolean printSyntaxTree)
static void
setRenderQuality(boolean renderQuality)
set the render quality property for turtle canvas.
static void
setShowAsTree(boolean showastree)
static void
setShowroot(boolean showroot)
static void
setTurtleFollowMode(int turtleFollowMode)

Field Details

TURTLE_FOLLOW_MODE_ALWAYS

public static final int TURTLE_FOLLOW_MODE_ALWAYS

Field Value:
2


TURTLE_FOLLOW_MODE_EDGE

public static final int TURTLE_FOLLOW_MODE_EDGE

Field Value:
1


TURTLE_FOLLOW_MODE_NEVER

public static final int TURTLE_FOLLOW_MODE_NEVER

Field Value:
0


hide

public static final String hide


inextranode

public static final String inextranode


show

public static final String show

Method Details

getApplet

public static AdaLogo getApplet()
get the currently running applet. this is called from engine when about to close frame.


getConsoleFont

public static Font getConsoleFont()
returns the font for the console.

Returns:
the font for the console.


getEditorFont

public static Font getEditorFont()

Returns:
the font for the editor.


getInvisibleNodeMode

public static String getInvisibleNodeMode()


getTurtleFollowMode

public static int getTurtleFollowMode()
return the turtle follow mode. this is used by turtle canvas to update view when turtle moves to edge.


isAntiAlias

public static boolean isAntiAlias()

Returns:
the antialias property for turtle canvas.


isExpandedbydefault

public static boolean isExpandedbydefault()


isFilePermission

public static boolean isFilePermission()
true when file access is allowed. this is used by editor actions.


isPrintSyntaxTree

public static boolean isPrintSyntaxTree()


isRenderQuality

public static boolean isRenderQuality()

Returns:
the render quality property for turtle canvas.


isShowAsTree

public static boolean isShowAsTree()


isShowroot

public static boolean isShowroot()


isStartedAsApplet

public static boolean isStartedAsApplet()
returns wether the programm was started as applet or application.

Returns:
true if and only if started as applet.


setAntiAlias

public static void setAntiAlias(boolean antiAlias)
set the antialias property for turtle canvas.

Parameters:
antiAlias - true for anti alias enabled, false for disabled.


setApplet

public static void setApplet(AdaLogo applet)


setConsoleFont

public static void setConsoleFont(Font consoleFont)
set the font to be used by the console.

Parameters:
consoleFont -


setConsoleFontSize

public static void setConsoleFontSize(float size)
set the font size for the console.

Parameters:
size -


setEditorFont

public static void setEditorFont(Font editorFont)
set the font to be used by the editor.

Parameters:
editorFont -


setEditorFontSize

public static void setEditorFontSize(float size)
set the font size for the editor.

Parameters:
size -


setExpandedbydefault

public static void setExpandedbydefault(boolean expandedbydefault)


setFilePermission

public static void setFilePermission(boolean perm)


setInvisibleNodeModeHide

public static void setInvisibleNodeModeHide()


setInvisibleNodeModeInExtraNode

public static void setInvisibleNodeModeInExtraNode()


setInvisibleNodeModeShow

public static void setInvisibleNodeModeShow()


setPrintSyntaxTree

public static void setPrintSyntaxTree(boolean printSyntaxTree)


setRenderQuality

public static void setRenderQuality(boolean renderQuality)
set the render quality property for turtle canvas.

Parameters:
renderQuality - true for high render quality, false for speed render quality.


setShowAsTree

public static void setShowAsTree(boolean showastree)


setShowroot

public static void setShowroot(boolean showroot)


setTurtleFollowMode

public static void setTurtleFollowMode(int turtleFollowMode)