public class UI
extends tecgraf.javautils.gui.print.PrintableUI
| Modifier and Type | Field and Description |
|---|---|
static Color |
ABOUT_FONT_COLOR
Cor da fonte da janela de informações do sistema
|
static ImageIcon |
ABOUT_LINE_ICON
Ícone com a linha que compõe a janela de Sobre
|
static ImageIcon |
APPROVABLE_FOLDER_ICON
Ícone de pasta com permissão de aprovação
|
static ImageIcon |
APPROVAL_SCENA_ICON
Ícone de cenário aprovado
|
static ImageIcon |
BARGE_MODAL_ICON
Ícone que representa uma barcaça
|
static ImageIcon |
BASE_SCENA_ICON
Ícone de cenário base
|
static ImageIcon |
BLANK_BUTTON_ICON
Ícone em branco para fazer alinhamento com os ícones de edição
|
static Color |
BLOCKED_SCENA_COLOR
Cor dos cenários bloqueados
|
static Font |
BOLD_TABLE_FONT
Fonte usada nas tabelas
|
static ImageIcon |
BUTTON_CLEAR_ICON
Ícone de limpeza em botão
|
static ImageIcon |
BUTTON_DOWN_ICON
Ícone de seta para baixo
|
static ImageIcon |
BUTTON_MAIL_ICON
Ícone de composição de mail/notificação em botão (padrão adaptado)
|
static ImageIcon |
BUTTON_UP_ICON
Ícone de seta para cima
|
static Color |
CELL_SELECTION_COLOR
Cor da célula selcionada
|
static Color |
CHANGED_BACKGROUND_COLOR
Cor do fundo da célula modificada (Azul claro)
|
static Color |
CHART_BACKGROUND
Cor do fundo do gráfico
|
static Font |
CHART_FONT
Fonte utilizada no gráfico
|
static Color |
CHART_GRID_COLOR
Cor das linhas do grid da área de plotagem do gráfico
|
static Color |
CHART_MONTH_MARKER
Cor das linhas que marca o fim do mês no gráfico
|
static Color |
CHART_PLOT_BACKGROUND
Cor do fundo da área de plotagem do gráfico
|
static Color |
CHART_ZERO_MARKER
Cor das linhas que marca o Zero do gráfico
|
static ImageIcon |
CHECK_BOX_TREE_SELECT_ALL
Ícone usado para seleção de todos os nós do CheckBoxTree
|
static ImageIcon |
CHECK_BOX_TREE_UNSELECT_ALL
Ícone usado para remover a seleção de todos os nós do CheckBoxTree
|
static ImageIcon |
COLLAPSED_HEADER_ICON
Ícone de um header que está colapsado
|
static ImageIcon |
COLLAPSED_ICON
Ícone de Collapsed
|
static ImageIcon |
CURRENT_APPROVAL_SCENA_ICON
Ícone de cenário vigente
|
static Color |
CURRENT_SCENA_COLOR
Cor do cenário vigente
|
static Cursor |
DEFAULT_CURSOR
Cursor padrão
|
static Font |
DESCRIPTION_FONT
Fonte para uso em TextAreas e Labels
|
static Color |
EDITABLE_BACKGROUND
Cor do fundo da célula editável
|
static ImageIcon |
EDITABLE_BLOCKED_ERROR_SOLVING_SCENA_ICON
Ícone de cenário editável bloqueado que teve erro na otimização
|
static ImageIcon |
EDITABLE_BLOCKED_SCENA_ICON
Ícone de cenário editável e bloqueado
|
static ImageIcon |
EDITABLE_BUTTON_ICON
Ícone de indicação que a célula pode ser editada
|
static ImageIcon |
EDITABLE_ERROR_SOLVING_SCENA_ICON
Ícone de cenário editável que teve erro na otimização
|
static ImageIcon |
EDITABLE_SCENA_ICON
Ícone de cenário editável
|
static Color |
EDITED_BACKGROUND_COLOR
Cor do fundo da célula editada (Amarelo claro)
|
static ImageIcon |
ERROR_ICON
Ícone de indicação que a célula tem erro
|
static ImageIcon |
EXPANDED_HEADER_ICON
Ícone de header que está expandido
|
static ImageIcon |
EXPANDED_ICON
Ícone de Expanded
|
static Color |
FIELD_ERROR_COLOR
A cor para indicar que o campo não foi preenchido corretamente
|
static ImageIcon |
FLOW_POINT_ICON
Ícone que representa um local de escoamento
|
static Color |
FOLDER_COLOR
Cor dos grupos de cenários
|
static Color |
GLASS_PANE_COLOR
Cor do glasspane (translúcido) usado nas janelas bloqueadas
|
static ImageIcon |
GRANEL_MODAL_ICON
Ícone que representa um granel
|
static Font |
HEADER_FONT
Fonte do título da propriedade na tela de propriedades do cenário
|
static ImageIcon |
HIGHWAY_MODAL_ICON
Ícone que representa uma rodovia
|
static String |
ICON_DIRECTORY
Diretório de resources com imagens.
|
static Font |
INFO_FONT
Fonte da propriedade na tela de propriedades do cenário
|
static ImageIcon |
LIST_EDITABLE_BUTTON_ICON
Ícone de indicação que a célula pode ser editada escolhendo valores
|
static ImageIcon |
MIXTURE_SET_ICON
Ícone que representa um grupamento de misturas
|
static Color |
NEGATIVE_EDIT_COLOR
Cor do fonte da célula com valor negativo editável
|
static Color |
NEGATIVE_NOT_EDIT_COLOR
Cor do fonte da célula com valor negativo não editável
|
static Color |
NOT_EDITABLE_BACKGROUND
Cor do fundo da célula não editável
|
static ImageIcon |
NOT_EDITABLE_BUTTON_ICON
Ícone de indicação que a célula não pode ser editáda
|
static ImageIcon |
NOT_EDITABLE_ERROR_SOLVING_SCENA_ICON
Ícone de cenário não editável que teve erro na otimização
|
static ImageIcon |
NOT_EDITABLE_SCENA_ICON
Ícone de cenário não editável
|
static ImageIcon |
NOT_TICK_ICON
Ícone de indicação de não verificação na célula
|
static Font |
NOTIFICATION_FONT
Fonte da mensagem de notificação
|
static ImageIcon |
PIPELINE_MODAL_ICON
Ícone que representa um duto
|
static ImageIcon |
POINT_LEGEND_ICON
Icone de legenda dos tipos de ponto e regioes
|
static ImageIcon |
POINT_LEGEND_ICON_OVER
Icone de legenda dos tipos de ponto e regioes em Mouse Over
|
static ImageIcon |
POINT_SET_ICON
Ícone que representa uma região
|
static ImageIcon |
POINT_TYPE_LEGEND
Imagem de legenda dos tipos de pontos
|
static Color |
POSITIVE_EDIT_COLOR
Cor do fonte da célula com valor positivo editável
|
static Color |
POSITIVE_NOT_EDIT_COLOR
Cor do fonte da célula com valor positivo não editável
|
static Color |
PRESAVED_BACKGROUND_COLOR
Cor do fundo da célula aprovada (Verde claro)
|
static ImageIcon |
PRODUCT_ICON
Ícone que representa um produto
|
static ImageIcon |
PRODUCT_LEGEND_ICON
Icone de legenda dos produtos e grupamentos
|
static ImageIcon |
PRODUCT_LEGEND_ICON_OVER
Icone de legenda dos produtos e grupamentos em Mouse Over
|
static ImageIcon |
PRODUCT_SET_ICON
Ícone que representa um grupamento de produtos
|
static ImageIcon |
PRODUCT_TYPE_LEGEND
Imagem de legenda dos produtos e grupamentos
|
static ImageIcon |
RAILROAD_MODAL_ICON
Ícone que representa uma ferrovia
|
static ImageIcon |
READ_ONLY_APPROVE_FOLDER_ICON
Ícone de pasta de permissão apenas para leitura
|
static ImageIcon |
READ_ONLY_FOLDER_ICON
Ícone de pasta com permissão apenas para leitura
|
static ImageIcon |
REMOVE_ROW_ICON
Ícone que indica a remoção de uma linha de uma tabela
|
static ImageIcon |
REPORT_BR_LOGO
Ícone do logo da Petrobras para o relatório
|
static Font |
REPORT_TITLE_FONT
Fonte para impressão dos relatórios.
|
static Cursor |
RESIZE_CURSOR
Cursor redimensionável para direita e esquerda
|
static Color |
SCENA_COLOR
Cor dos cenários
|
static Color |
SCENA_SELECTION_COLOR
Cor de seleção do cenário
|
static ImageIcon |
SHIP_MODAL_ICON
Ícone que representa um navio
|
static ImageIcon |
SINGLE_MIXTURE_ICON
Ícone que representa uma mistura simples
|
static Font |
SMALL_CHART_FONT
Fonte pequena utilizada no gráfico
|
static ImageIcon |
SMALL_GREEN_BALL_IMAGE
Icone de bola verde pequena
|
static ImageIcon |
SMALL_RED_BALL_IMAGE
Icone de bola vermelha pequena
|
static ImageIcon |
SOLVED_EDITABLE_BLOCKED_SCENA_ICON
Ícone de cenário de otimização editável e bloqueado
|
static ImageIcon |
SOLVED_EDITABLE_SCENA_ICON
Ícone de cenário de otimização editável
|
static ImageIcon |
SOLVED_NOT_EDITABLE_SCENA_ICON
Ícone de cenário de otimização não editável
|
static ImageIcon |
SOLVING_SCENA_ICON
Ícone de cenário sendo otimizado
|
static Font |
SUBTITLE_CHART_FONT
Fonte utilizada no subtítulo do gráfico
|
static ImageIcon |
SUCCESS_VALIDATION_ICON
Ícone com o símbolo de sucesso na validação de uma regra
|
static int |
TABLE_ICON_TEXT_GAP
Espaço entre os ícones e o fonte nas tabelas
|
static int |
TABLE_ROW_GAP
Altura adicionada às linhas das tabelas
|
static ImageIcon |
THIRD_STATE_ICON
Icone usado no terceiro estado do
TriStateCheckBox |
static ImageIcon |
TICK_ICON
Ícone de indicação de verificação na célula (como um checkbox)
|
static Font |
TITLE_CHART_FONT
Fonte utilizada no título do gráfico
|
static ImageIcon |
TRASH_BIN_ICON
Icone de lata de lixo usado em situações de remoção
|
static Color |
TREE_SELECTION_BORDER_BACKGROUND
A cor da borda do do item selecionado
|
static ImageIcon |
UNACTIVE_PRODUCT_ICON
Ícone que representa um produto desativado
|
static ImageIcon |
UNSUCCESS_VALIDATION_ICON
Ícone com o símbolo de falha na validação de uma regra
|
static ImageIcon |
WARNING_ICON
Ícone de Warning
|
static ImageIcon |
WARNING_VALIDATION_ICON
Ícone com o símbolo de warning na validação de uma regra
|
static ImageIcon |
WRITEABLE_FOLDER_ICON
Ícone de pasta com permissão para escrita
|
| Constructor and Description |
|---|
UI() |
| Modifier and Type | Method and Description |
|---|---|
static void |
adjustFontAndHeightTableUI(JTable table)
Ajusta os fontes e altura da tabela.
|
static JPanel |
buildButtonPanel(JButton... buttons)
Insere os botões passados como parâmetro em um painel com BoxLayout e
iguala o tamanho dos botões.
|
static JPanel |
createBasicGridPanel(JComponent[][] rows)
Cria um painel "básico" diagramado por um
GridBagLayout. |
static void |
equalizeButtonSizes(JButton[] buttons)
Iguala o tamanho dos botões contidos no array passado como parâmetro.
|
static int |
getPreferredColWidth(JTable table,
int colIndex,
int margin)
Obtém um tamanho preferencial para a largura da coluna de uma tabela.
|
static int |
getPreferredRowHeight(JTable table,
int rowIndex,
int margin)
Obtém um tamanho preferencial para a altura das linhas de uma tabela.
|
static Dimension |
getPreferredSize(JTable table)
Obtém um tamanho da tabela em função do número de linhas
|
static Font |
getTableTotalFont(JTable table)
Obtém o fonte da linha de totais de determinada tabela.
|
static boolean |
isValidFileName(String name)
Verifica se o nome é composto apenas por caracteres alfanuméricos,
underscore (_) ou ponto (.) ou traco (-).
|
static JComponent |
makeLabelSeparator(String labelText)
Cria um separador com um rótulo.
|
static void |
packColumn(JTable table,
int vColIndex,
int margin)
Ajusta a largura de uma coluna de uma tabela.
|
static void |
packColumns(JTable table,
int margin)
Ajusta a largura de todas as colunas de uma tabela.
|
static void |
packRowHeight(JTable table,
int margin)
A altura de todas as linhas de uma tabela é alterada para a altura
preferencial obtida em função da maior altura existente na tabela
|
static void |
packRowHeight(JTable table,
int start,
int end,
int margin)
A altura das linhas entre
start e end de uma
tabela é alterada para a altura preferencial obtida em função da maior
altura existente na tabela |
static void |
populateBasicGridPanel(JPanel basicGridPanel,
JComponent[][] rows)
Cria o painel.
|
static void |
setColumnMinWidth(GridBagLayout gbl,
int col,
int newColWidth)
Atribui um tamanho específico para a largura de determinada coluna do
GridBagLayout.
|
static void |
synchronizeScrollPanes(JScrollPane... scrollPanes)
Faz a sincronização das barras de scroll entre diferentes painel de scroll.
|
public static final String ICON_DIRECTORY
public static final ImageIcon COLLAPSED_ICON
public static final ImageIcon EXPANDED_ICON
public static final ImageIcon COLLAPSED_HEADER_ICON
public static final ImageIcon EXPANDED_HEADER_ICON
public static final ImageIcon WARNING_ICON
public static final ImageIcon BUTTON_CLEAR_ICON
public static final ImageIcon BUTTON_MAIL_ICON
public static final ImageIcon BUTTON_DOWN_ICON
public static final ImageIcon BUTTON_UP_ICON
public static final ImageIcon EDITABLE_BUTTON_ICON
public static final ImageIcon LIST_EDITABLE_BUTTON_ICON
public static final ImageIcon ERROR_ICON
public static final ImageIcon BLANK_BUTTON_ICON
public static final ImageIcon NOT_EDITABLE_BUTTON_ICON
public static final ImageIcon TICK_ICON
public static final ImageIcon NOT_TICK_ICON
public static final ImageIcon ABOUT_LINE_ICON
public static final ImageIcon BASE_SCENA_ICON
public static final ImageIcon CURRENT_APPROVAL_SCENA_ICON
public static final ImageIcon APPROVAL_SCENA_ICON
public static final ImageIcon EDITABLE_SCENA_ICON
public static final ImageIcon EDITABLE_BLOCKED_SCENA_ICON
public static final ImageIcon NOT_EDITABLE_SCENA_ICON
public static final ImageIcon SOLVING_SCENA_ICON
public static final ImageIcon EDITABLE_ERROR_SOLVING_SCENA_ICON
public static final ImageIcon EDITABLE_BLOCKED_ERROR_SOLVING_SCENA_ICON
public static final ImageIcon NOT_EDITABLE_ERROR_SOLVING_SCENA_ICON
public static final ImageIcon SOLVED_EDITABLE_SCENA_ICON
public static final ImageIcon SOLVED_EDITABLE_BLOCKED_SCENA_ICON
public static final ImageIcon SOLVED_NOT_EDITABLE_SCENA_ICON
public static final ImageIcon APPROVABLE_FOLDER_ICON
public static final ImageIcon READ_ONLY_APPROVE_FOLDER_ICON
public static final ImageIcon WRITEABLE_FOLDER_ICON
public static final ImageIcon READ_ONLY_FOLDER_ICON
public static final ImageIcon REPORT_BR_LOGO
public static final ImageIcon SUCCESS_VALIDATION_ICON
public static final ImageIcon UNSUCCESS_VALIDATION_ICON
public static final ImageIcon WARNING_VALIDATION_ICON
public static final ImageIcon PRODUCT_ICON
public static final ImageIcon UNACTIVE_PRODUCT_ICON
public static final ImageIcon PRODUCT_SET_ICON
public static final ImageIcon POINT_SET_ICON
public static final ImageIcon REMOVE_ROW_ICON
public static final ImageIcon SINGLE_MIXTURE_ICON
public static final ImageIcon MIXTURE_SET_ICON
public static final ImageIcon FLOW_POINT_ICON
public static final ImageIcon POINT_LEGEND_ICON
public static final ImageIcon POINT_LEGEND_ICON_OVER
public static ImageIcon POINT_TYPE_LEGEND
public static final ImageIcon PRODUCT_LEGEND_ICON
public static final ImageIcon PRODUCT_LEGEND_ICON_OVER
public static ImageIcon PRODUCT_TYPE_LEGEND
public static final ImageIcon PIPELINE_MODAL_ICON
public static final ImageIcon SHIP_MODAL_ICON
public static final ImageIcon HIGHWAY_MODAL_ICON
public static final ImageIcon RAILROAD_MODAL_ICON
public static final ImageIcon GRANEL_MODAL_ICON
public static final ImageIcon BARGE_MODAL_ICON
public static final ImageIcon CHECK_BOX_TREE_SELECT_ALL
public static final ImageIcon CHECK_BOX_TREE_UNSELECT_ALL
public static final ImageIcon SMALL_GREEN_BALL_IMAGE
public static final ImageIcon SMALL_RED_BALL_IMAGE
public static final ImageIcon THIRD_STATE_ICON
TriStateCheckBoxpublic static final ImageIcon TRASH_BIN_ICON
public static final Color FOLDER_COLOR
public static final Color SCENA_COLOR
public static final Color BLOCKED_SCENA_COLOR
public static final Color SCENA_SELECTION_COLOR
public static final Color CURRENT_SCENA_COLOR
public static final Color CHANGED_BACKGROUND_COLOR
public static final Color EDITED_BACKGROUND_COLOR
public static final Color PRESAVED_BACKGROUND_COLOR
public static final Color EDITABLE_BACKGROUND
public static final Color NOT_EDITABLE_BACKGROUND
public static final Color POSITIVE_EDIT_COLOR
public static final Color POSITIVE_NOT_EDIT_COLOR
public static final Color NEGATIVE_EDIT_COLOR
public static final Color NEGATIVE_NOT_EDIT_COLOR
public static final Color CELL_SELECTION_COLOR
public static final Color ABOUT_FONT_COLOR
public static final Color GLASS_PANE_COLOR
public static Color CHART_BACKGROUND
public static Color CHART_PLOT_BACKGROUND
public static Color CHART_GRID_COLOR
public static Color CHART_ZERO_MARKER
public static Color CHART_MONTH_MARKER
public static final Color FIELD_ERROR_COLOR
public static final Color TREE_SELECTION_BORDER_BACKGROUND
public static final Cursor DEFAULT_CURSOR
public static final Cursor RESIZE_CURSOR
public static final Font REPORT_TITLE_FONT
public static final Font HEADER_FONT
public static final Font INFO_FONT
public static final Font NOTIFICATION_FONT
public static Font CHART_FONT
public static Font SMALL_CHART_FONT
public static Font SUBTITLE_CHART_FONT
public static Font TITLE_CHART_FONT
public static final Font BOLD_TABLE_FONT
public static final Font DESCRIPTION_FONT
public static final int TABLE_ROW_GAP
public static final int TABLE_ICON_TEXT_GAP
public static JPanel buildButtonPanel(JButton... buttons)
buttons - array com os botõespublic static void setColumnMinWidth(GridBagLayout gbl, int col, int newColWidth)
gbl - o grid bag layoutcol - a colunanewColWidth - o tamanho da colunapublic static void equalizeButtonSizes(JButton[] buttons)
buttons - o array com os botõespublic static JPanel createBasicGridPanel(JComponent[][] rows)
GridBagLayout. Este
tipo de painel é utilizado, tipicamente, em interações que configuram um
conjunto de parâmetros textuais ou numéricos, e é composto por um número
variável de linhas de componentes com as seguintes características:
rows - "array" contendo os componentes a serem inseridos no painel.
Cada elemento deste array contém os componentes da linha
correspondente.public static void populateBasicGridPanel(JPanel basicGridPanel, JComponent[][] rows)
basicGridPanel - painel a ter os componentes inseridos.rows - "array" contendo os componentes a serem inseridos no painel.
Cada elemento deste array contém os componentes da linha
correspondente.public static boolean isValidFileName(String name)
name - Nome a ser validadopublic static int getPreferredRowHeight(JTable table, int rowIndex, int margin)
table - a tabelarowIndex - o índice da linhamargin - a margempublic static int getPreferredColWidth(JTable table, int colIndex, int margin)
table - a tabelacolIndex - o índice da colunamargin - a margempublic static void packRowHeight(JTable table, int margin)
table - a tabelamargin - a margempublic static void packRowHeight(JTable table, int start, int end, int margin)
start e end de uma
tabela é alterada para a altura preferencial obtida em função da maior
altura existente na tabelatable - a tabelastart - linha inicialend - linha finalmargin - a margempublic static void packColumns(JTable table, int margin)
table - a tabela a ser ajustadamargin - o número de pixels adionados na margem esquerda e direitapublic static void packColumn(JTable table, int vColIndex, int margin)
table - a tabela a ser ajustadavColIndex - o índice da colunamargin - o número de pixels adionados na margem esquerda e direitapublic static Dimension getPreferredSize(JTable table)
table - a tabelapublic static void synchronizeScrollPanes(JScrollPane... scrollPanes)
scrollPanes - os paineis de scroll a serem sincronizados.public static Font getTableTotalFont(JTable table)
table - tabela a ter o fonte obtido.public static void adjustFontAndHeightTableUI(JTable table)
table - tabela a ter os fontes e altura ajustados.public static JComponent makeLabelSeparator(String labelText)
labelText - o texto usado no rótuloCopyright © 2017. All rights reserved.