Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion scouter.client/src/scouter/client/xlog/ImageCache.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public synchronized Image getXPImage(int objHash, byte xtype) {
}

private Image createXPImage(RGB rgb) {
return createXPImage5(rgb);
return createXPImage6(rgb);
}

private Image createXPImage4(RGB rgb) {
Expand Down Expand Up @@ -98,6 +98,21 @@ private Image createXPImage5(RGB rgb) {
return xp;
}

private Image createXPImage6(RGB rgb) {
Image xp;
xp = new Image(null, 5, 5);
GC gcc = new GC(xp);
gcc.setBackground(new Color(null, rgb));
gcc.fillRectangle(0, 0, 5, 5);
gcc.setBackground(ColorUtil.getInstance().getColor("white"));
gcc.fillRectangle(1, 0, 1, 1);
gcc.fillRectangle(4, 1, 1, 1);
gcc.fillRectangle(0, 3, 1, 1);
gcc.fillRectangle(3, 4, 1, 1);
gcc.dispose();
return xp;
}

public synchronized Image getXPErrorImage(byte xtype) {
if (errorXpDot == null) {
errorXpDot = createXPImage(ColorUtil.getInstance().getColor("red").getRGB());
Expand Down