@Override
    protected void paintComponent(Graphics g)
    {
        Graphics2D g2 = (Graphics2D)g;

        if(type.equals("summon"))
        {
            if(orient.equals("up"))
            {
                if(mfi.getUpLight(floor))
                {
                    TexturePaint upOnTex = new TexturePaint(on,
                        new Rectangle(0, 0, radius, radius));
                    g2.setPaint(upOnTex);
                }
                else
                {
                    TexturePaint upOffTex = new TexturePaint(off,
                        new Rectangle(0, 0, radius, radius));
                    g2.setPaint(upOffTex);
                }
            }
            else
            {
                if(mfi.getDownLight(floor))
                {
                    TexturePaint upOnTex = new TexturePaint(on,
                        new Rectangle(0, 0, radius, radius));
                    g2.setPaint(upOnTex);
                }
                else
                {
                    TexturePaint upOffTex = new TexturePaint(off,
                        new Rectangle(0, 0, radius, radius));
                    g2.setPaint(upOffTex);
                }  
            }
        }
        if(type.equals("floor"))
        {
            if(mfi.getFloorLight(floor))
            {
                TexturePaint OnTex = new TexturePaint(on,
                    new Rectangle(0, 0, radius, radius));
                g2.setPaint(OnTex);
            }
            else
            {
                TexturePaint OffTex = new TexturePaint(off,
                    new Rectangle(0, 0, radius, radius));
                g2.setPaint(OffTex);
            }
        }
        if(type.equals("open"))
        {
            TexturePaint OnTex = new TexturePaint(on, new Rectangle(0, 0, radius, radius));
            g2.setPaint(OnTex);
        }
        if(type.equals("close"))
        {
            TexturePaint OnTex = new TexturePaint(on, new Rectangle(0, 0, radius, radius));
            g2.setPaint(OnTex);
        }

        g2.fillOval(0, 0, radius, radius);

        super.paintComponent(g);
    }