Exemplo n.º 1
0
 public override AxisState draw(Graphics2D g2, double cursor, Rectangle2D plotArea, Rectangle2D dataArea, RectangleEdge edge, PlotRenderingInfo plotState)
 {
   if (!this.isVisible())
   {
     AxisState state = new AxisState(cursor);
     List ticks = this.refreshTicks(g2, state, dataArea, edge);
     state.setTicks(ticks);
     return state;
   }
   else
   {
     AxisState state1 = this.drawTickMarksAndLabels(g2, cursor, plotArea, dataArea, edge);
     AxisState state2 = this.drawLabel(this.getLabel(), g2, plotArea, dataArea, edge, state1);
     this.createAndAddEntity(cursor, state2, dataArea, edge, plotState);
     return state2;
   }
 }
Exemplo n.º 2
0
 public override List refreshTicks(Graphics2D g2, AxisState state, Rectangle2D dataArea, RectangleEdge edge)
 {
   object obj1 = (object) new ArrayList();
   if (RectangleEdge.isTopOrBottom(edge))
     obj1 = (object) this.refreshTicksHorizontal(g2, dataArea, edge);
   else if (RectangleEdge.isLeftOrRight(edge))
     obj1 = (object) this.refreshTicksVertical(g2, dataArea, edge);
   object obj2 = obj1;
   if (obj2 == null)
     return (List) null;
   List list = obj2 as List;
   if (list != null)
     return list;
   else
     throw new IncompatibleClassChangeError();
 }