Package net.sf.latexdraw.ui

Examples of net.sf.latexdraw.ui.LabelComboBox


  /**
   * Creates a list that contains all kinds of hatchings.
   * @return A created list.
   */
  public static LabelComboBox createFillingChoice() {
    final LabelComboBox list = new LabelComboBox();

    list.setRenderer(new LabelListCellRenderer());

    JLabel label = new JLabel(FillingStyle.NONE.toString());
    label.setIcon(LResources.HATCH_NONE_ICON);
    list.addItem(label);
    label = new JLabel(FillingStyle.PLAIN.toString());
    label.setIcon(LResources.HATCH_SOLID_ICON);
    list.addItem(label);
    label = new JLabel(FillingStyle.CLINES.toString());
    label.setIcon(LResources.HATCH_CROSS_ICON);
    list.addItem(label);
    label = new JLabel(FillingStyle.CLINES_PLAIN.toString());
    label.setIcon(LResources.HATCH_F_CROSS_ICON);
    list.addItem(label);
    label = new JLabel(FillingStyle.HLINES.toString());
    label.setIcon(LResources.HATCH_HORIZ_ICON);
    list.addItem(label);
    label = new JLabel(FillingStyle.HLINES_PLAIN.toString());
    label.setIcon(LResources.HATCH_F_HORIZ_ICON);
    list.addItem(label);
    label = new JLabel(FillingStyle.VLINES.toString());
    label.setIcon(LResources.HACTH_VERT_ICON);
    list.addItem(label);
    label = new JLabel(FillingStyle.VLINES_PLAIN.toString());
    label.setIcon(LResources.HATCH_F_VERT_ICON);
    list.addItem(label);
    label = new JLabel(FillingStyle.GRAD.toString());
    label.setIcon(LResources.GRADIENT_ICON);
    list.addItem(label);

    return list;
  }
View Full Code Here


  }


  @Override
  protected void initialiseWidgets() {
    freeHandType = new LabelComboBox();
    freeHandType.setLabel(new JLabel(LangTool.INSTANCE.getString19("ParametersAkinPointsFrame.2"))); //$NON-NLS-1$
    freeHandType.setRenderer(new LabelListCellRenderer());
    JLabel label = new JLabel(IFreeHandProp.FreeHandType.CURVES.toString());
    label.setIcon(LResources.CURVES_FREEHAND_ICON);
    freeHandType.addItem(label);
View Full Code Here

  /**
   * Creates a list of the different styles of arrowhead (right).
   * @return The created list.
   */
  public static LabelComboBox createRightArrowStyleList() {
    final LabelComboBox lineArrowRChoice = new LabelComboBox();

    lineArrowRChoice.setRenderer(new LabelListCellRenderer());
    JLabel label = new JLabel(ArrowStyle.NONE.name());
    label.setIcon(LResources.ARROW_STYLE_NONE_R_ICON);
    lineArrowRChoice.addItem(label);
       label = new JLabel(ArrowStyle.BAR_IN.name());
       label.setIcon(LResources.ARROW_STYLE_BAR_IN_R_ICON);
       lineArrowRChoice.addItem(label);
    label = new JLabel(ArrowStyle.BAR_END.name());
       label.setIcon(LResources.ARROW_STYLE_BAR_END_R_ICON);
       lineArrowRChoice.addItem(label);
       label = new JLabel(ArrowStyle.CIRCLE_END.name());
       label.setIcon(LResources.ARROW_STYLE_CIRCLE_END_R_ICON);
       lineArrowRChoice.addItem(label);
       label = new JLabel(ArrowStyle.CIRCLE_IN.name());
       label.setIcon(LResources.ARROW_STYLE_CIRCLE_IN_R_ICON);
       lineArrowRChoice.addItem(label);
       label = new JLabel(ArrowStyle.DISK_END.name());
       label.setIcon(LResources.ARROW_STYLE_DISK_END_R_ICON);
       lineArrowRChoice.addItem(label);
       label = new JLabel(ArrowStyle.DISK_IN.name());
       label.setIcon(LResources.ARROW_STYLE_DISK_IN_R_ICON);
       lineArrowRChoice.addItem(label);
    label = new JLabel(ArrowStyle.RIGHT_ARROW.name());
       label.setIcon(LResources.ARROW_STYLE_ARROW_R_ICON);
       lineArrowRChoice.addItem(label);
    label = new JLabel(ArrowStyle.LEFT_ARROW.name());
       label.setIcon(LResources.ARROW_STYLE_R_ARROW_R_ICON);
       lineArrowRChoice.addItem(label);
    label = new JLabel(ArrowStyle.RIGHT_ROUND_BRACKET.name());
       label.setIcon(LResources.ARROW_STYLE_ARC_R_ICON);
       lineArrowRChoice.addItem(label);
    label = new JLabel(ArrowStyle.LEFT_ROUND_BRACKET.name());
       label.setIcon(LResources.ARROW_STYLE_ARC_RR_ICON);
       lineArrowRChoice.addItem(label);
    label = new JLabel(ArrowStyle.RIGHT_SQUARE_BRACKET.name());
       label.setIcon(LResources.ARROW_STYLE_BRACK_R_ICON);
       lineArrowRChoice.addItem(label);
    label = new JLabel(ArrowStyle.LEFT_SQUARE_BRACKET.name());
       label.setIcon(LResources.ARROW_STYLE_BRACK_RR_ICON);
       lineArrowRChoice.addItem(label);
    label = new JLabel(ArrowStyle.RIGHT_DBLE_ARROW.name());
       label.setIcon(LResources.ARROW_STYLE_DBLE_ARROW_R_ICON);
       lineArrowRChoice.addItem(label);
    label = new JLabel(ArrowStyle.LEFT_DBLE_ARROW.name());
       label.setIcon(LResources.ARROW_STYLE_R_DBLE_ARROW_R_ICON);
       lineArrowRChoice.addItem(label);
       label = new JLabel(ArrowStyle.ROUND_IN.name());
       label.setIcon(LResources.ARROW_STYLE_ROUND_IN_R_ICON);
       lineArrowRChoice.addItem(label);
       lineArrowRChoice.setPreferredSize(new Dimension(75, 30));
       lineArrowRChoice.setSize(new Dimension(75, 30));
       lineArrowRChoice.setMaximumSize(new Dimension(75, 30));
       lineArrowRChoice.setMinimumSize(new Dimension(75, 30));

       return lineArrowRChoice;
  }
View Full Code Here

  /**
   * Creates a list of the different styles of arrowhead (left).
   * @return The created list.
   */
  public static LabelComboBox createLeftArrowStyleList() {
    final LabelComboBox lineArrowLChoice = new LabelComboBox();

    lineArrowLChoice.setRenderer(new LabelListCellRenderer());
    JLabel label = new JLabel(ArrowStyle.NONE.name());
    label.setIcon(LResources.ARROW_STYLE_NONE_L_ICON);
       lineArrowLChoice.addItem(label);
       label = new JLabel(ArrowStyle.BAR_IN.name());
       label.setIcon(LResources.ARROW_STYLE_BAR_IN_L_ICON);
       lineArrowLChoice.addItem(label);
    label = new JLabel(ArrowStyle.BAR_END.name());
       label.setIcon(LResources.ARROW_STYLE_BAR_END_L_ICON);
    lineArrowLChoice.addItem(label);
       label = new JLabel(ArrowStyle.CIRCLE_END.name());
       label.setIcon(LResources.ARROW_STYLE_CIRCLE_END_L_ICON);
       lineArrowLChoice.addItem(label);
       label = new JLabel(ArrowStyle.CIRCLE_IN.name());
       label.setIcon(LResources.ARROW_STYLE_CIRCLE_IN_L_ICON);
       lineArrowLChoice.addItem(label);
       label = new JLabel(ArrowStyle.DISK_END.name());
       label.setIcon(LResources.ARROW_STYLE_DISK_END_L_ICON);
       lineArrowLChoice.addItem(label);
       label = new JLabel(ArrowStyle.DISK_IN.name());
       label.setIcon(LResources.ARROW_STYLE_DISK_IN_L_ICON);
    lineArrowLChoice.addItem(label);
    label = new JLabel(ArrowStyle.LEFT_ARROW.name());
       label.setIcon(LResources.ARROW_STYLE_ARROW_L_ICON);
       lineArrowLChoice.addItem(label);
    label = new JLabel(ArrowStyle.RIGHT_ARROW.name());
       label.setIcon(LResources.ARROW_STYLE_R_ARROW_L_ICON);
    lineArrowLChoice.addItem(label);
    label = new JLabel(ArrowStyle.LEFT_ROUND_BRACKET.name());
       label.setIcon(LResources.ARROW_STYLE_ARC_L_ICON);
    lineArrowLChoice.addItem(label);
    label = new JLabel(ArrowStyle.RIGHT_ROUND_BRACKET.name());
       label.setIcon(LResources.ARROW_STYLE_ARC_LR_ICON);
    lineArrowLChoice.addItem(label);
    label = new JLabel(ArrowStyle.LEFT_SQUARE_BRACKET.name());
       label.setIcon(LResources.ARROW_STYLE_BRACK_L_ICON);
    lineArrowLChoice.addItem(label);
    label = new JLabel(ArrowStyle.RIGHT_SQUARE_BRACKET.name());
       label.setIcon(LResources.ARROW_STYLE_BRACK_LR_ICON);
    lineArrowLChoice.addItem(label);
    label = new JLabel(ArrowStyle.LEFT_DBLE_ARROW.name());
       label.setIcon(LResources.ARROW_STYLE_DBLE_ARROW_L_ICON);
    lineArrowLChoice.addItem(label);
    label = new JLabel(ArrowStyle.RIGHT_DBLE_ARROW.name());
       label.setIcon(LResources.ARROW_STYLE_R_DBLE_ARROW_L_ICON);
    lineArrowLChoice.addItem(label);
       label = new JLabel(ArrowStyle.ROUND_IN.name());
       label.setIcon(LResources.ARROW_STYLE_ROUND_IN_L_ICON);
       lineArrowLChoice.addItem(label);
       lineArrowLChoice.setPreferredSize(new Dimension(75, 30));
       lineArrowLChoice.setSize(new Dimension(75, 30));
       lineArrowLChoice.setMaximumSize(new Dimension(75, 30));
       lineArrowLChoice.setMinimumSize(new Dimension(75, 30));

    return lineArrowLChoice;
  }
View Full Code Here

  /**
   * Creates a list of the different styles of the dot.
   * @return The created list.
   */
  public static LabelComboBox createDotStyleChoice() {
    final LabelComboBox dotChoice = new LabelComboBox();

    dotChoice.setRenderer(new LabelListCellRenderer());
    JLabel label = new JLabel(DotStyle.DOT.toString());
    label.setIcon(LResources.DOT_STYLE_NONE_ICON);
       dotChoice.addItem(label);
       label = new JLabel(DotStyle.ASTERISK.toString());
       label.setIcon(LResources.DOT_STYLE_ASTERISK_ICON);
       dotChoice.addItem(label);
       label = new JLabel(DotStyle.BAR.toString());
       label.setIcon(LResources.DOT_STYLE_BAR_ICON);
       dotChoice.addItem(label);
       label = new JLabel(DotStyle.DIAMOND.toString());
       label.setIcon(LResources.DOT_STYLE_DIAMOND_ICON);
       dotChoice.addItem(label);
       label = new JLabel(DotStyle.FDIAMOND.toString());
       label.setIcon(LResources.DOT_STYLE_DIAMOND_F_ICON);
       dotChoice.addItem(label);
       label = new JLabel(DotStyle.O.toString());
       label.setIcon(LResources.DOT_STYLE_O_ICON);
       dotChoice.addItem(label);
       label = new JLabel(DotStyle.OPLUS.toString());
       label.setIcon(LResources.DOT_STYLE_O_PLUS_ICON);
       dotChoice.addItem(label);
       label = new JLabel(DotStyle.OTIMES.toString());
       label.setIcon(LResources.DOT_STYLE_O_CROSS_ICON);
       dotChoice.addItem(label);
       label = new JLabel(DotStyle.PLUS.toString());
       label.setIcon(LResources.DOT_STYLE_PLUS_ICON);
       dotChoice.addItem(label);
       label = new JLabel(DotStyle.X.toString());
       label.setIcon(LResources.DOT_STYLE_CROSS_ICON);
       dotChoice.addItem(label);
       label = new JLabel(DotStyle.TRIANGLE.toString());
       label.setIcon(LResources.DOT_STYLE_TRIANGLE_ICON);
       dotChoice.addItem(label);
       label = new JLabel(DotStyle.FTRIANGLE.toString());
       label.setIcon(LResources.DOT_STYLE_TRIANGLE_F_ICON);
       dotChoice.addItem(label);
       label = new JLabel(DotStyle.PENTAGON.toString());
       label.setIcon(LResources.DOT_STYLE_PENTAGON_ICON);
       dotChoice.addItem(label);
       label = new JLabel(DotStyle.FPENTAGON.toString());
       label.setIcon(LResources.DOT_STYLE_PENTAGON_F_ICON);
       dotChoice.addItem(label);
       label = new JLabel(DotStyle.SQUARE.toString());
       label.setIcon(LResources.DOT_STYLE_SQUARE_ICON);
       dotChoice.addItem(label);
       label = new JLabel(DotStyle.FSQUARE.toString());
       label.setName(DotStyle.FSQUARE.toString());
       label.setIcon(LResources.DOT_STYLE_SQUARE_F_ICON);
       dotChoice.addItem(label);

       dotChoice.setPreferredSize(new Dimension(55,30));
       dotChoice.setMaximumSize(new Dimension(55,30));

       return dotChoice;
  }
View Full Code Here

  /**
   * Creates a list of the different positions of the borders.
   * @return The created list.
   */
  public static LabelComboBox createBordersPositionChoice() {
    final LabelComboBox dbPositionChoice = new LabelComboBox();
    dbPositionChoice.setRenderer(new LabelListCellRenderer());

    JLabel label = new JLabel(BorderPos.INTO.toString());
    label.setIcon(LResources.INNER_ICON);
    dbPositionChoice.addItem(label);

    label = new JLabel(BorderPos.OUT.toString());
    label.setIcon(LResources.OUTER_ICON);
    dbPositionChoice.addItem(label);

    label = new JLabel(BorderPos.MID.toString());
    label.setIcon(LResources.MIDDLE_ICON);
    dbPositionChoice.addItem(label);

    return dbPositionChoice;
  }
View Full Code Here

  /**
   * Creates a list of the different styles of line.
   * @return The created list.
   */
  public static LabelComboBox createStyleLineChoice() {
    final LabelComboBox lineChoice = new LabelComboBox();

    lineChoice.setRenderer(new LabelListCellRenderer());
    JLabel label = new JLabel(LineStyle.SOLID.toString());
    label.setIcon(LResources.LINE_STYLE_NONE_ICON);
       lineChoice.addItem(label);
    label = new JLabel(LineStyle.DASHED.toString());
    label.setIcon(LResources.LINE_STYLE_DASHED_ICON);
       lineChoice.addItem(label);
       label = new JLabel(LineStyle.DOTTED.toString());
    label.setIcon(LResources.LINE_STYLE_DOTTED_ICON);
       lineChoice.addItem(label);

       return lineChoice;
  }
View Full Code Here

TOP

Related Classes of net.sf.latexdraw.ui.LabelComboBox

Copyright © 2018 www.massapicom. 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.