コード例 #1
0
 public void setRecord(final MfRecord record) {
   final int bottom = record.getParam(POS_BOTTOM);
   final int right = record.getParam(POS_RIGHT);
   final int top = record.getParam(POS_TOP);
   final int left = record.getParam(POS_LEFT);
   setBounds(left, top, right - left, bottom - top);
 }
コード例 #2
0
  /**
   * Reads the command data from the given record and adjusts the internal parameters according to
   * the data parsed.
   *
   * <p>This method is not implemented, as a Palette implementation is still missing.
   *
   * @param record the record.
   */
  public void setRecord(final MfRecord record) {
    // the handle to the palette object ignored
    final int hPalette = record.getParam(POS_HPALETTE);
    setHPalette(hPalette);
    // the number of defined entries ...
    final int cEntries = record.getParam(POS_CENTRIES);
    final Color[] colors = new Color[cEntries];

    for (int i = 0; i < cEntries; i++) {
      final int cr = record.getLongParam(i * 2 + POS_START_ENTRIES);
      final GDIColor color = new GDIColor(cr);
      colors[i] = color;
    }
    setEntries(colors);
  }
コード例 #3
0
 /**
  * Reads the command data from the given record and adjusts the internal parameters according to
  * the data parsed.
  *
  * <p>After the raw record was read from the datasource, the record is parsed by the concrete
  * implementation.
  *
  * @param record the raw data that makes up the record.
  */
 public void setRecord(final MfRecord record) {
   final int id = record.getParam(POS_TEXT_CHAR_EXTRA);
   setTextCharExtra(id);
 }
コード例 #4
0
 /**
  * Reads the command data from the given record and adjusts the internal parameters according to
  * the data parsed.
  *
  * <p>After the raw record was read from the datasource, the record is parsed by the concrete
  * implementation.
  *
  * @param record the raw data that makes up the record.
  */
 public void setRecord(final MfRecord record) {
   final int y = record.getParam(POS_Y);
   final int x = record.getParam(POS_X);
   setDestination(x, y);
 }
コード例 #5
0
 /**
  * Reads the command data from the given record and adjusts the internal parameters according to
  * the data parsed.
  *
  * <p>After the raw record was read from the datasource, the record is parsed by the concrete
  * implementation.
  *
  * @param record the raw data that makes up the record.
  */
 public void setRecord(final MfRecord record) {
   final int y = record.getParam(POS_Y);
   final int x = record.getParam(POS_X);
   setTarget(x, y);
 }