Package 

Class Component

  • All Implemented Interfaces:
    com.patrykandpatrick.vico.core.component.dimension.Margins

    
    public abstract class Component
     implements Margins
                        

    Component is a generic concept of an object that can be drawn on a canvas at a given pair of coordinates. Its subclasses are used throughout the library.

    • Constructor Summary

      Constructors 
      Constructor Description
      Component()
    • Method Summary

      Modifier and Type Method Description
      MutableDimensions getMargins() The current margins.
      abstract Unit draw(DrawContext context, Float left, Float top, Float right, Float bottom) Instructs the Component to draw itself at the given coordinates.
      • Methods inherited from class com.patrykandpatrick.vico.core.component.Component

        setMargins, setMargins
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait