示例#1
0
 @Override
 public Color getEdgeColor(Edge e) {
   if (AnnisGraphTools.hasEdgeSubtype(e, AnnisGraphTools.SECEDGE_SUBTYPE, input)) {
     return new Color(0.5f, 0.5f, 0.8f, 0.7f);
   } else {
     return new Color(0.3f, 0.3f, 0.3f);
   }
 }
示例#2
0
 @Override
 public Stroke getStroke(Edge e) {
   if (AnnisGraphTools.hasEdgeSubtype(e, AnnisGraphTools.SECEDGE_SUBTYPE, input)) {
     return new BasicStroke(
         2, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER, 10, new float[] {2, 2}, 0);
   } else {
     return new BasicStroke(2);
   }
 }
示例#3
0
 @Override
 public Shape getShape(Edge e) {
   if (AnnisGraphTools.hasEdgeSubtype(e, AnnisGraphTools.SECEDGE_SUBTYPE, input)) {
     return new Shape.Rectangle(
         getEdgeColor(e), Color.WHITE, DEFAULT_PEN_STYLE, getLabelPadding());
   } else {
     return new Shape.Rectangle(
         new Color(0.4f, 0.4f, 0.4f), Color.WHITE, DEFAULT_PEN_STYLE, getLabelPadding());
   }
 }