1 package prefuse.visual; 2 3 import java.awt.BasicStroke ; 4 import java.awt.Font ; 5 import java.awt.Graphics2D ; 6 import java.awt.geom.Rectangle2D ; 7 8 import prefuse.Visualization; 9 import prefuse.data.Schema; 10 import prefuse.data.Tuple; 11 import prefuse.data.tuple.TupleSet; 12 import prefuse.render.Renderer; 13 import prefuse.util.PrefuseLib; 14 15 41 public interface VisualItem extends Tuple { 42 43 47 public Visualization getVisualization(); 48 49 54 public String getGroup(); 55 56 63 public boolean isInGroup(String group); 64 65 72 public TupleSet getSourceData(); 73 74 81 public Tuple getSourceTuple(); 82 83 84 87 93 public void render(Graphics2D g); 94 95 101 public Renderer getRenderer(); 102 103 110 public Rectangle2D validateBounds(); 111 112 114 120 public boolean isValidated(); 121 122 128 public void setValidated(boolean value); 129 130 138 public boolean isVisible(); 139 140 145 public void setVisible(boolean value); 146 147 154 public boolean isStartVisible(); 155 156 161 public void setStartVisible(boolean value); 162 163 170 public boolean isEndVisible(); 171 172 177 public void setEndVisible(boolean value); 178 179 185 public boolean isInteractive(); 186 187 192 public void setInteractive(boolean value); 193 194 200 public boolean isExpanded(); 201 202 207 public void setExpanded(boolean value); 208 209 215 public boolean isFixed(); 216 217 222 public void setFixed(boolean value); 223 224 229 public boolean isHighlighted(); 230 231 240 public void setHighlighted(boolean value); 241 242 247 public boolean isHover(); 248 249 255 public void setHover(boolean value); 256 257 259 264 public double getX(); 265 266 271 public void setX(double x); 272 273 278 public double getY(); 279 280 285 public void setY(double y); 286 287 292 public double getStartX(); 293 294 299 public void setStartX(double x); 300 301 306 public double getStartY(); 307 308 313 public void setStartY(double y); 314 315 320 public double getEndX(); 321 322 327 public void setEndX(double x); 328 329 334 public double getEndY(); 335 336 341 public void setEndY(double y); 342 343 349 public Rectangle2D getBounds(); 350 351 362 public void setBounds(double x, double y, double w, double h); 363 364 366 376 public int getStrokeColor(); 377 378 388 public void setStrokeColor(int color); 389 390 400 public int getStartStrokeColor(); 401 402 412 public void setStartStrokeColor(int color); 413 414 424 public int getEndStrokeColor(); 425 426 436 public void setEndStrokeColor(int color); 437 438 448 public int getFillColor(); 449 450 460 public void setFillColor(int color); 461 462 472 public int getStartFillColor(); 473 474 484 public void setStartFillColor(int color); 485 486 496 public int getEndFillColor(); 497 498 508 public void setEndFillColor(int color); 509 510 520 public int getTextColor(); 521 522 532 public void setTextColor(int color); 533 534 544 public int getStartTextColor(); 545 546 556 public void setStartTextColor(int color); 557 558 568 public int getEndTextColor(); 569 570 580 public void setEndTextColor(int color); 581 582 584 591 public double getSize(); 592 593 600 public void setSize(double size); 601 602 609 public double getStartSize(); 610 611 618 public void setStartSize(double size); 619 620 627 public double getEndSize(); 628 629 636 public void setEndSize(double size); 637 638 640 648 public int getShape(); 649 650 658 public void setShape(int shape); 659 660 662 666 public BasicStroke getStroke(); 667 668 672 public void setStroke(BasicStroke stroke); 673 674 676 682 public Font getFont(); 683 684 690 public void setFont(Font font); 691 692 698 public Font getStartFont(); 699 700 706 public void setStartFont(Font font); 707 708 714 public Font getEndFont(); 715 716 722 public void setEndFont(Font font); 723 724 726 735 public double getDOI(); 736 737 746 public void setDOI(double doi); 747 748 751 752 public static final String VALIDATED 753 = PrefuseLib.FIELD_PREFIX+"validated"; 754 755 public static final String VISIBLE 756 = PrefuseLib.FIELD_PREFIX+"visible"; 757 758 public static final String STARTVISIBLE 759 = PrefuseLib.getStartField(VISIBLE); 760 761 public static final String ENDVISIBLE 762 = PrefuseLib.getEndField(VISIBLE); 763 764 public static final String INTERACTIVE 765 = PrefuseLib.FIELD_PREFIX+"interactive"; 766 767 public static final String EXPANDED 768 = PrefuseLib.FIELD_PREFIX+"expanded"; 769 770 public static final String FIXED 771 = PrefuseLib.FIELD_PREFIX+"fixed"; 772 773 public static final String HIGHLIGHT 774 = PrefuseLib.FIELD_PREFIX+"highlight"; 775 776 public static final String HOVER 777 = PrefuseLib.FIELD_PREFIX+"hover"; 778 779 public static final String X 780 = PrefuseLib.FIELD_PREFIX+"x"; 781 782 public static final String Y 783 = PrefuseLib.FIELD_PREFIX+"y"; 784 785 public static final String STARTX 786 = PrefuseLib.getStartField(X); 787 788 public static final String STARTY 789 = PrefuseLib.getStartField(Y); 790 791 public static final String ENDX 792 = PrefuseLib.getEndField(X); 793 794 public static final String ENDY 795 = PrefuseLib.getEndField(Y); 796 797 public static final String BOUNDS 798 = PrefuseLib.FIELD_PREFIX+"bounds"; 799 800 public static final String STROKECOLOR 801 = PrefuseLib.FIELD_PREFIX+"strokeColor"; 802 803 public static final String STARTSTROKECOLOR 804 = PrefuseLib.getStartField(STROKECOLOR); 805 806 public static final String ENDSTROKECOLOR 807 = PrefuseLib.getEndField(STROKECOLOR); 808 809 public static final String FILLCOLOR 810 = PrefuseLib.FIELD_PREFIX+"fillColor"; 811 812 public static final String STARTFILLCOLOR 813 = PrefuseLib.getStartField(FILLCOLOR); 814 815 public static final String ENDFILLCOLOR 816 = PrefuseLib.getEndField(FILLCOLOR); 817 818 public static final String TEXTCOLOR 819 = PrefuseLib.FIELD_PREFIX+"textColor"; 820 821 public static final String STARTTEXTCOLOR 822 = PrefuseLib.getStartField(TEXTCOLOR); 823 824 public static final String ENDTEXTCOLOR 825 = PrefuseLib.getEndField(TEXTCOLOR); 826 827 public static final String SIZE 828 = PrefuseLib.FIELD_PREFIX+"size"; 829 830 public static final String STARTSIZE 831 = PrefuseLib.getStartField(SIZE); 832 833 public static final String ENDSIZE 834 = PrefuseLib.getEndField(SIZE); 835 836 public static final String SHAPE 837 = PrefuseLib.FIELD_PREFIX+"shape"; 838 839 public static final String STROKE 840 = PrefuseLib.FIELD_PREFIX+"stroke"; 841 842 public static final String FONT 843 = PrefuseLib.FIELD_PREFIX+"font"; 844 845 public static final String STARTFONT 846 = PrefuseLib.getStartField(FONT); 847 848 public static final String ENDFONT 849 = PrefuseLib.getEndField(FONT); 850 851 public static final String DOI 852 = PrefuseLib.FIELD_PREFIX+"doi"; 853 854 855 public static final Schema SCHEMA 856 = PrefuseLib.getVisualItemSchema().lockSchema(); 857 858 863 public static final int IDX_VALIDATED 864 = SCHEMA.getColumnIndex(VALIDATED); 865 866 869 871 public static final String LABEL 872 = PrefuseLib.FIELD_PREFIX+"label"; 873 875 public static final String VALUE 876 = PrefuseLib.FIELD_PREFIX+"value"; 877 878 880 public static final String POLYGON 881 = PrefuseLib.FIELD_PREFIX+"polygon"; 882 884 public static final String STARTPOLYGON 885 = PrefuseLib.getStartField(POLYGON); 886 888 public static final String ENDPOLYGON 889 = PrefuseLib.getStartField(POLYGON); 890 891 893 public static final String X2 894 = PrefuseLib.FIELD_PREFIX+"x2"; 895 897 public static final String Y2 898 = PrefuseLib.FIELD_PREFIX+"y2"; 899 901 public static final String STARTX2 902 = PrefuseLib.getStartField(X2); 903 905 public static final String STARTY2 906 = PrefuseLib.getStartField(Y2); 907 909 public static final String ENDX2 910 = PrefuseLib.getEndField(X2); 911 913 public static final String ENDY2 914 = PrefuseLib.getEndField(Y2); 915 916 } | Popular Tags |