Class ScalableDrawing

java.lang.Object
eu.bandm.tools.graficUtils.ScalableDrawing

public abstract class ScalableDrawing extends Object
  • Field Details

  • Constructor Details

    • ScalableDrawing

      protected ScalableDrawing(float defWidth, float defHeight)
    • ScalableDrawing

      protected ScalableDrawing()
  • Method Details

    • color

      protected Color color(int index)
    • linewidth

      protected int linewidth(int lw)
    • x

      protected int x(int x)
    • y

      protected int y(int y)
    • p

      protected Point p(Point p)
    • line

      protected void line(int... coordinates)
    • drawMax

      public void drawMax(Graphics2D gr, Component component, Color... colors)
    • drawMax

      public void drawMax(Graphics2D gr, int drawWidth, int drawHeight, Color... colors)
    • drawCentered

      public void drawCentered(Graphics2D gr, Component component, Color... colors)
    • drawCentered

      public void drawCentered(Graphics2D gr, int drawWidth, int drawHeight, Color... colors)
    • doDraw

      public abstract void doDraw()
      Callback, must be overridden by the user. Can use gr.drawLine(..) and gr.fillArea(..) commands, and gr.setColor(colors[i]) and gr.setStroke(BasicStroke(linewidht.apply(3))), etc. To be usable as an icon, only *integer* coordinates should be used.
    • antiAlias

      protected void antiAlias(boolean value)