Examples of CasellaRidotta


Examples of ingsw.proj.cluedo.componenti.Casella.CasellaRidotta

  private void paintBorder(PulsanteCasella pulsante) {
    boolean bordoSx = false;
    boolean bordoDx = false;
    boolean bordoSup = false;
    boolean bordoInf = false;
    CasellaRidotta casella = pulsante.getCasella();
    StanzeEnum stanzaCasella = casella.getStanza();
    TipoCasellaEnum tipoCasella = casella.getTipo();
    Point posizioneCasella = casella.getPosizione();

    if (stanzaCasella == StanzeEnum.CORRIDOIO) {
      pulsante.setBorder(null);
      return;
    }
View Full Code Here

Examples of ingsw.proj.cluedo.componenti.Casella.CasellaRidotta

    public void mouseClicked(MouseEvent e) {
    }

    @Override
    public void mouseEntered(MouseEvent e) {
      CasellaRidotta casella = ((PulsanteCasella) e.getSource()).getCasella();
      String text = "Posizione: " + "(" + casella.getPosizione().y + "," + casella.getPosizione().x;
      text += ")  -- Stanza: " + casella.getStanza().toString();
      text += " Tipo: " + casella.getTipo().toString();
      labelStato.setText(text);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.