Package net.sf.latexdraw.ui

Examples of net.sf.latexdraw.ui.LabelListCellRenderer


   * @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());
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);
    label = new JLabel(IFreeHandProp.FreeHandType.LINES.toString());
    label.setIcon(LResources.LINES_FREEHAND_ICON);
View Full Code Here

   * @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);
View Full Code Here

   * @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);
View Full Code Here

   * @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);
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);

View Full Code Here

   * @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);
View Full Code Here

TOP

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

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.