|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjpicedt.format.output.pstricks.PstricksUtilities
public class PstricksUtilities
Collection of static methods for the PsTricks format
Field Summary |
---|
Fields inherited from interface jpicedt.format.output.pstricks.PstricksConstants |
---|
CR_LF, DEFAULT_FILE_WRAPPER_EPILOG, DEFAULT_FILE_WRAPPER_PROLOG, KEY_FILE_WRAPPER_EPILOG, KEY_FILE_WRAPPER_PROLOG, PST_ARROWS, PST_ARROWS_LEFT, PST_ARROWS_RIGHT, PST_COLORNAMES, PST_COLORS, RESCALING_TEX_FUNCTION |
Constructor Summary | |
---|---|
PstricksUtilities()
|
Method Summary | |
---|---|
static Arrow[] |
createArrowsFromPstricksString(String str)
|
static StringBuffer |
createPstricksStringFromArrows(Element obj)
|
static Color |
getPsTricksColor(String name)
Returns a Color object corresponding to the given PsTricks's colour name ; a null Color if none matches (in which case the caller might look up a table of user-defined colours to see if one matches) |
static String |
getPsTricksColorName(Color c)
Returns PsTricks's colour name from the given Color object; a null String if none matches (in which case the caller might define a new colour by using a \\newrgbcolor or a \\newgray command...) |
static void |
main(String[] arg)
Test |
static String |
toPstricksString(Arrow arrow,
boolean rightArrow)
Returns a String representing the given Arrow in the PsTricks syntax, e.g. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PstricksUtilities()
Method Detail |
---|
public static String getPsTricksColorName(Color c)
public static Color getPsTricksColor(String name)
public static String toPstricksString(Arrow arrow, boolean rightArrow)
rightArrow
- if TRUE, returns the String representation of this Arrow if it's a right-arrow ;
otherwise, returns the left-arrow string.public static StringBuffer createPstricksStringFromArrows(Element obj)
public static Arrow[] createArrowsFromPstricksString(String str)
public static void main(String[] arg)
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |