⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ganttoptions.java

📁 It is all about project scheduling. GanttProject is a tool for creating a project schedule by means
💻 JAVA
📖 第 1 页 / 共 4 页
字号:
    public CSVOptions getCSVOptions() {        return csvOptions;    }    /** @return the task name prefix. */    public String getTaskNamePrefix() {        if (sTaskNamePrefix == null || sTaskNamePrefix.equals(""))            return language.getText("newTask");        return sTaskNamePrefix;    }    public String getTrueTaskNamePrefix() {        if (sTaskNamePrefix == null || sTaskNamePrefix.equals("")                || sTaskNamePrefix.equals(language.getText("newTask")))            return null;        return sTaskNamePrefix;    }    /** @return the toolbar position. */    public int getToolBarPosition() {        return toolBarPosition;    }    /** @return the size of the icons on the toolbar. */    public String getIconSize() {        return iconSize;    }    /**     * @return true if you want to export the name of the task on the exported     *         chart.     */    public boolean getExportName() {        return bExportName;    }    /**     * @return true if you want to export the complete percent of the task on     *         the exported chart.     */    public boolean getExportComplete() {        return bExportComplete;    }    /**     * @return true if you want to export the relations of the task on the     *         exported chart.     */    public boolean getExportRelations() {        return bExportRelations;    }    /** @return the 3d borders export. */    public boolean getExport3dBorders() {        return bExport3DBorders;    }    public GanttExportSettings getExportSettings() {        return new GanttExportSettings(bExportName, bExportComplete,                bExportRelations, bExport3DBorders);    }    public void setExportName(boolean exportName) {        bExportName = exportName;    }    public void setExportComplete(boolean exportComplete) {        bExportComplete = exportComplete;    }    public void setExportRelations(boolean eportRelations) {        bExportRelations = eportRelations;    }    public void setExport3dBorders(boolean borders3d) {        bExport3DBorders = borders3d;    }        public PageFormat getPageFormat()    {        return this.pageFormat;    }        public void setPageFormat(PageFormat newFormat)    {        this.pageFormat = newFormat;    }    public int[] getIconList() {        return iconListAsIntArray;    }    public int[] getDeletedIconList() {        return deletedIconListAsIntArray;    }    public void setIconList(String list) {        iconListAsString = list;    }    public void setDeletedIconList(String list) {        deletedIconListAsString = list;    }    /**     * @return the button show attribute must be GanttOptions.ICONS or     *         GanttOptions.TEXT ir GanttOptions.ICONS_TEXT     */    public int getButtonShow() {        return buttonsshow;    }    /**     * set a new button show value must be GanttOptions.ICONS or     * GanttOptions.TEXT ir GanttOptions.ICONS_TEXT     */    public void setButtonShow(int buttonShow) {        if (buttonShow != GanttOptions.ICONS && buttonShow != GanttOptions.TEXT                && buttonShow != GanttOptions.ICONS_TEXT)            buttonShow = GanttOptions.ICONS;        buttonsshow = buttonShow;    }    /** Set a new icon size. Must be 16, 24 (or 32 exceptionnally) */    public void setIconSize(String sIconSize) {        iconSize = sIconSize;    }    /** set the toolbar position. */    public void setToolBarPosition(int iToolBarPosition) {        toolBarPosition = iToolBarPosition;    }    /** Set new window position (top left corner) */    public void setWindowPosition(int x, int y) {        this.x = x;        this.y = y;    }    /** Set new window position (top left corner) */    public void setWindowSize(int width, int height) {        this.width = width;        this.height = height;    }    /** Set new working directory value. */    public void setWorkingDirectory(String workingDirectory) {        workingDir = workingDirectory;    }    /** set a new value for web dav locking. */    public void setLockDAVMinutes(int minuteslock) {        lockDAVMinutes = minuteslock;    }    /** set a new value for undo number. */    public void setUndoNumber(int number) {        undoNumber = number;    }    /** set a new default tasks color. */    public void setDefaultTaskColor(Color color) {        getUIConfiguration().setTaskColor(color);    }    /** set a new default resources color. */    public void setResourceColor(Color color) {        getUIConfiguration().setResourceColor(color);    }    /** set a new resources overload tasks color. */    public void setResourceOverloadColor(Color color) {        getUIConfiguration().setResourceOverloadColor(color);    }    /** set a new resources underload tasks color. */    public void setResourceUnderloadColor(Color color) {        getUIConfiguration().setResourceUnderloadColor(color);    }    /** set a new previous tasks color. */    public void setPreviousTaskColor(Color color) {        getUIConfiguration().setPreviousTaskColor(color);    }    /** set a new earlier previous tasks color. */    public void setEarlierPreviousTaskColor(Color color) {        getUIConfiguration().setEarlierPreviousTaskColor(color);    }    /** set a new later previous tasks color. */    public void setLaterPreviousTaskColor(Color color) {        getUIConfiguration().setLaterPreviousTaskColor(color);    }    /** Set a new week end color. */    public void setWeekEndColor(Color color) {        getUIConfiguration().setWeekEndColor(color);    }    /** Set a new week end color. */    public void setDaysOffColor(Color color) {        getUIConfiguration().setDayOffColor(color);    }    /** Set a new xsl directory for html export. */    public void setXslDir(String xslDir) {        this.xslDir = xslDir;    }    /** Set a new xsl-fo file for pdf export. */    public void setXslFo(String xslFo) {        this.xslFo = xslFo;    }    public void setDocumentsMRU(DocumentsMRU documentsMRU) {        this.documentsMRU = documentsMRU;    }    public void setUIConfiguration(UIConfiguration uiConfiguration) {        this.myUIConfig = uiConfiguration;    }    /** set new open tips value. */    public void setOpenTips(boolean openTips) {        this.openTips = openTips;    }    /** set new automatic launch value. */    public void setAutomatic(boolean automatic) {        this.automatic = automatic;    }    /** set new drag time with mouse value. */    // public void setDragTime(boolean dragTime){    // this.dragTime = dragTime;    // }    public void setLookAndFeel(GanttLookAndFeelInfo lookAndFeel) {        this.lookAndFeel = lookAndFeel;    }    public void setTaskNamePrefix(String taskNamePrefix) {        sTaskNamePrefix = taskNamePrefix;    }    public void setRedline(boolean isOn) {        this.redline = isOn;        getUIConfiguration().setRedlineOn(isOn);    }    /**     * @return     */    public String getFTPDirectory() {        return FTPDirectory;    }    /**     * @return     */    public String getFTPPwd() {        return FTPPwd;    }    /**     * @return     */    public String getFTPUrl() {        return FTPUrl;    }    /**     * @return     */    public String getFTPUser() {        return FTPUser;    }    /**     * @param pvString     */    public void setFTPDirectory(String pvString) {        FTPDirectory = pvString;    }    /**     * @param pvString     */    public void setFTPPwd(String pvString) {        FTPPwd = pvString;    }    /**     * @param pvString     */    public void setFTPUrl(String pvString) {        FTPUrl = pvString;    }    /**     * @param pvString     */    public void setFTPUser(String pvString) {        FTPUser = pvString;    }    /**     * @return the default string to configure the iconList     */    public String getDefaultIconListAsString() {        // String iconAsString = "1,3,4,5,6,7,8,0,21,22,23,24,25,0,28,0,29";        //        // if (!isOnlyViewer)        // iconAsString =        // "2,3,4,5,6,7,8,0,9,10,11,0,12,13,14,15,16,17,18,19,20,0,21,22,23,24,25,0,26,27,0,30,31,0,28";        //        // return iconAsString;        return getStringList(getDefaultIconListIntArray());    }    private static String getStringList(int[] tabInt) {        String res = "";        int i = 0;        for (i = 0; i < tabInt.length - 1; i++) {            res += tabInt[i] + ",";        }        res += tabInt[i];        return res;    }    /**     * @return the default integer array to configure the iconList     */    public int[] getDefaultIconListIntArray() {        if (!isOnlyViewer)            return new int[] { SAVE,                    SEPARATOR, CUT, COPY, PASTE, SEPARATOR, UNDO, REDO,                    SEPARATOR, NEWTASK, DELETE, PROPERTIES, UNLINK, LINK, IND,                    UNIND, UP, DOWN, SEPARATOR, /*PREV,*/ CENTER, /*NEXT, */ZOOMOUT,                    ZOOMIN, SEPARATOR, SAVECURRENT, COMPAREPREV, SEPARATOR,                    CRITICAL };        /* else */        return new int[] { EXIT, OPEN, SAVE, SAVEAS, IMPORT, EXPORT, PRINT,                PREVIEWPRINT, SEPARATOR, /*PREV, */CENTER, /*NEXT,*/ ZOOMOUT, ZOOMIN,                SEPARATOR, CRITICAL, SEPARATOR, ABOUT };    }    /**     * @return the default string to configure the iconList     */    public String getDefaultDeletedIconListAsString() {        return "";    }    /**     * @return the default integer array to configure the iconList     */    public int[] getDefaultDeletedIconListIntArray() {        return null;    }        public void addOptionGroups(GPOptionGroup[] optionGroups) {        for (int i=0; i<optionGroups.length; i++) {            GPOptionGroup nextGroup = optionGroups[i];            addOptions(nextGroup);        }    }    private void addOptions(GPOptionGroup optionGroup) {        GPOption[] options = optionGroup.getOptions();        for (int i=0;i<options.length; i++) {            GPOption nextOption = options[i];            myGPOptions.put(optionGroup.getID()+"."+nextOption.getID(), nextOption);            if (nextOption instanceof GP1XOptionConverter) {                GP1XOptionConverter nextConverter = (GP1XOptionConverter) nextOption;                myTagDotAttribute_Converter.put(nextConverter.getTagName()+"."+nextConverter.getAttributeName(), nextConverter);            }        }    }    }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -