|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttreebolic.model.Utils
public class Utils
Attribute utilities
| Nested Class Summary | |
|---|---|
static class |
Utils.StyleComponent
Style component pointer |
| Constructor Summary | |
|---|---|
Utils()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
colorToString(java.awt.Color thisColor)
Convert color to hexadecimal string |
static java.lang.String |
fillToString(java.lang.Integer thisStyle)
Convert string to fill code style |
static java.lang.Integer |
modifyStyle(java.lang.Integer thisStyle,
java.lang.Object thisValue,
Utils.StyleComponent thisComponent)
Modify style |
static void |
parseMenuItem(MenuItem thisMenuItem,
java.lang.String thisActionString,
java.lang.String thisScopeString,
java.lang.String thisModeString)
Parse strings and set menuitem fields accordingly |
static java.lang.Integer |
parseStyle(java.lang.String thisStroke,
java.lang.String thisFromTerminator,
java.lang.String thisToTerminator,
java.lang.String thisHiddenFlag)
Parse edge style |
static java.lang.String |
shapeToString(java.lang.Integer thisStyle)
Convert shape code style to string |
static Controller.Action |
stringToAction(java.lang.String thisActionString)
Parse menuitem action |
static java.awt.Color |
stringToColor(java.lang.String thisString)
Convert hexadecimal string to color |
static int |
stringToFill(java.lang.String thisString)
Convert string to fill code style |
static Controller.MatchMode |
stringToMode(java.lang.String thisModeString)
Parse menuitem mode |
static Controller.MatchScope |
stringToScope(java.lang.String thisScopeString)
Parse menuitem scope |
static int |
stringToShape(java.lang.String thisString)
Convert string to shape code style |
static int |
stringToStroke(java.lang.String thisString)
Convert string to stroke code |
static java.lang.String |
strokeToString(java.lang.Integer thisStyle)
Convert stroke code to string |
static java.lang.String |
toString(Controller.Action thisAction)
Stringify action |
static java.lang.String |
toString(Controller.MatchMode thisMode)
Stringify mode |
static java.lang.String |
toString(Controller.MatchScope thisScope)
Stringify scope |
static java.lang.String |
toString(java.lang.Integer thisStyle,
Utils.StyleComponent thisComponent)
Stringify edge style component |
static java.lang.String[] |
toStrings(java.lang.Integer thisStyle)
Stringify edge style component |
static java.lang.String[] |
toStrings(MenuItem thisMenuItem)
Parse menuitem action, matchmode, matchscope fields to strings |
static java.lang.Boolean |
toTrueBoolean(java.lang.Integer thisStyle,
Utils.StyleComponent thisComponent)
Convert to boolean (true,null) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Utils()
| Method Detail |
|---|
public static java.lang.Integer parseStyle(java.lang.String thisStroke,
java.lang.String thisFromTerminator,
java.lang.String thisToTerminator,
java.lang.String thisHiddenFlag)
thisStroke - strokethisFromTerminator - from-terminatorthisToTerminator - to-terminatorthisHiddenFlag - whether edge is hidden ('true' or 'false')
public static java.lang.Integer modifyStyle(java.lang.Integer thisStyle,
java.lang.Object thisValue,
Utils.StyleComponent thisComponent)
thisStyle - current stylethisValue - string valuethisComponent - style component to modify
public static java.lang.String toString(java.lang.Integer thisStyle,
Utils.StyleComponent thisComponent)
thisStyle - stylethisComponent - part of style to stringify
public static java.lang.String[] toStrings(java.lang.Integer thisStyle)
thisStyle - style
public static java.lang.Boolean toTrueBoolean(java.lang.Integer thisStyle,
Utils.StyleComponent thisComponent)
thisStyle - stylethisComponent - part of style to convert
public static int stringToStroke(java.lang.String thisString)
thisString - stroke string
public static java.lang.String strokeToString(java.lang.Integer thisStyle)
thisStyle - stroke code style
public static int stringToFill(java.lang.String thisString)
thisString - fill string
public static java.lang.String fillToString(java.lang.Integer thisStyle)
thisStyle - fill code style
public static int stringToShape(java.lang.String thisString)
thisString - shape string
public static java.lang.String shapeToString(java.lang.Integer thisStyle)
thisStyle - shape code style
public static void parseMenuItem(MenuItem thisMenuItem,
java.lang.String thisActionString,
java.lang.String thisScopeString,
java.lang.String thisModeString)
thisMenuItem - menuitemthisActionString - action stringthisScopeString - scope stringthisModeString - mode stringpublic static Controller.Action stringToAction(java.lang.String thisActionString)
thisActionString - action string
public static Controller.MatchScope stringToScope(java.lang.String thisScopeString)
thisScopeString - scope string
public static Controller.MatchMode stringToMode(java.lang.String thisModeString)
thisModeString - mode string
public static java.lang.String toString(Controller.Action thisAction)
thisAction - action
public static java.lang.String toString(Controller.MatchScope thisScope)
thisScope - scope
public static java.lang.String toString(Controller.MatchMode thisMode)
thisMode - mode
public static java.lang.String[] toStrings(MenuItem thisMenuItem)
thisMenuItem - menuitem
public static java.lang.String colorToString(java.awt.Color thisColor)
thisColor - color
public static java.awt.Color stringToColor(java.lang.String thisString)
thisString - prefixless hexadecimal representation of color
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||