/plugins/JavaSideKick/tags/javasidekick-2-0/src/sidekick/java/options/DisplayOptions.java

# · Java · 95 lines · 24 code · 24 blank · 47 comment · 0 complexity · 3444834634115bea8ad2671c4308897a MD5 · raw file

  1. /*
  2. * DisplayOptions.java - Immutable display options for JBrowse
  3. *
  4. * Copyright (c) 1999-2001 George Latkiewicz, Andre Kaplan
  5. *
  6. * This program is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU General Public License
  8. * as published by the Free Software Foundation; either version 2
  9. * of the License, or any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program; if not, write to the Free Software
  18. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  19. */
  20. package sidekick.java.options;
  21. /**
  22. * Interface for accessing Display options for JBrowse
  23. * @author George Latkiewicz
  24. * @author Andre Kaplan
  25. * @version $Id: DisplayOptions.java 953 2006-01-07 16:00:14Z daleanson $
  26. **/
  27. public interface DisplayOptions
  28. {
  29. // Display Style options (HOW)
  30. // constants - for styleIndex
  31. int STYLE_FIRST = 0;
  32. int STYLE_UML = 0;
  33. int STYLE_JAVA = 1;
  34. int STYLE_CUSTOM = 2;
  35. int STYLE_LAST = 2;
  36. // show arguments, pertains to constuctors and methods, if true, show the
  37. // argument type, e.g. int or String
  38. boolean getShowArguments();
  39. // show argument name, pertains to constructors and methods, if true, show
  40. // the declared name of the argument, e.g. the x in "int x".
  41. boolean getShowArgumentNames();
  42. // show qualified nested class or interface names
  43. boolean getShowNestedName();
  44. // not clear on this one -- appears to mean to show keywords like 'class' or
  45. // 'interface' beside the icon
  46. boolean getShowIconKeywords();
  47. // if true, show the other modifiers, the ones other than public, protected,
  48. // and private, e.g. synchronized, native, transient, etc.
  49. boolean getShowMiscMod();
  50. // show the uml icons
  51. boolean getShowIcons();
  52. // show the line number
  53. boolean getShowLineNum();
  54. // how to sort
  55. String getSortBy();
  56. // show generic type arguments
  57. boolean getShowTypeArgs();
  58. // one of the style constance from above
  59. int getStyleIndex();
  60. // if true, use +, #, and - for public, protected, and private respectively
  61. boolean getVisSymbols();
  62. // if true, show abstract class names and methods in italics
  63. boolean getAbstractItalic();
  64. // if true, underline all static items
  65. boolean getStaticUlined();
  66. // if true is returned, then show the method return type after the rest of
  67. // the method string (UML style), if false, then show it up front (Java style)
  68. boolean getTypeIsSuffixed();
  69. // inverts the options, used for tool tips
  70. DisplayOptions getInverseOptions();
  71. }